Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers
ContentTweaker Commands WalkThrough

ICTPlayer

An ICTPlayer is ContentTweaker’s special IPlayer object.
That means all of IPlayer’s methods are also available on this object!

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import mods.contenttweaker.Player;

ZenMethods

IMutableItemStack getHeldItem(Hand hand);

Parameters:

  • Hand hand → Main or Off Hand

Returns the IMutableItemStack held at the given Hand.