InventoryComponent.Tool
Package: com.hypixel.hytale.server.core.inventory
public static class InventoryComponent.Tool extends InventoryComponent implements Component<EntityStore>Tool inventory section with active slot and wielding state tracking. The usingToolsItem flag indicates whether the entity is currently using a tool item versus a hotbar item. Extends InventoryComponent.
Static Fields
Section titled “Static Fields”| Modifier | Type | Name |
|---|---|---|
public static | BuilderCodec<InventoryComponent.Tool> | CODEC |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public static | ComponentType<EntityStore, InventoryComponent.Tool> | getComponentType() |
public | byte | getActiveSlot() |
public | void | setActiveSlot(byte activeSlot) |
public | ItemStack | getActiveItem() |
public | boolean | isUsingToolsItem() |
public | void | setUsingToolsItem(boolean usingToolsItem) |
public | void | ensureCapacity(short capacity, List<ItemStack> remainder) |
public | Component<EntityStore> | clone() |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.