IEntityEquipmentSlot
Link to ientityequipmentslot
An IEntityEquipmentSlot is a slot in a player's inventory. That could for example be the mainHand or one of the armor slots.
导入相关包
Link to 导入相关包
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
Link to zengetterszenmethods
Getter | 类型 |
---|---|
Getter index | 类型 int |
Getter slotIndex | 类型 int |
Getter name(名称) | 类型 string |
Compare
Link to compare
You can check if two IEntityEquipmentSlot objects are equal:
Returns a bool.
ZenScript CopyslotOne == slotTwo;
Enumerations
Link to enumerations
The EntityEquipmentSlot Interface has 6 static Methods, each returning the given IEntityEquipmentSlot object.
ZenScript Copycrafttweaker.entity.IEntityEquipmentSlot.mainHand();
crafttweaker.entity.IEntityEquipmentSlot.offhand();
crafttweaker.entity.IEntityEquipmentSlot.feet();
crafttweaker.entity.IEntityEquipmentSlot.legs();
crafttweaker.entity.IEntityEquipmentSlot.chest();
crafttweaker.entity.IEntityEquipmentSlot.head();