A Hand is an enumeration of the player's two possible hands: main and off

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;

Hand can be of those two values:

  • main
  • off
ZenScript
Copy
import mods.contenttweaker.Hand;

Hand.off();
Hand.main();
Hand.fromString("off");
Hand.fromString("main");

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
Copy
Hand.main() == Hand.main()