Hand
Link to hand
A Hand is an enumeration of the player's two possible hands: main and off
Importing the package
Link to importing-the-package
It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.Hand;
Enumerations
Link to enumerations
Hand can be of those two values:
- main
- off
ZenScript Copyimport mods.contenttweaker.Hand;
Hand.off();
Hand.main();
Hand.fromString("off");
Hand.fromString("main");
Uses
Link to uses
A Hand's main use is in a IItemUse Function.
Comparing two Hand objects
Link to comparing-two-hand-objects
You can compare two Hand objects using the ==
getter.
ZenScript CopyHand.main() == Hand.main()