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

IEntityEquipmentSlot

An IEntityEquipmentSlot is a slot in a player’s inventory. That could for example be the mainHand or one of the armor slots.

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 crafttweaker.entity.IEntityEquipmentSlot;

ZenGetters/ZenMethods

GetterType
Getter
index
Type
int
Getter
slotIndex
Type
int
Getter
name
Type
string

Compare

You can check if two IEntityEquipmentSlot objects are equal:
Returns a bool.

script.zs
slotOne == slotTwo;

Enumerations

The EntityEquipmentSlot Interface has 6 static Methods, each returning the given IEntityEquipmentSlot object.

script.zs
crafttweaker.entity.IEntityEquipmentSlot.mainHand();
crafttweaker.entity.IEntityEquipmentSlot.offhand();
crafttweaker.entity.IEntityEquipmentSlot.feet();
crafttweaker.entity.IEntityEquipmentSlot.legs();
crafttweaker.entity.IEntityEquipmentSlot.chest();
crafttweaker.entity.IEntityEquipmentSlot.head();