Skip to content

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.

ModifierTypeName
public staticBuilderCodec<InventoryComponent.Tool>CODEC
ModifierReturn TypeSignature
public staticComponentType<EntityStore, InventoryComponent.Tool>getComponentType()
publicbytegetActiveSlot()
publicvoidsetActiveSlot(byte activeSlot)
publicItemStackgetActiveItem()
publicbooleanisUsingToolsItem()
publicvoidsetUsingToolsItem(boolean usingToolsItem)
publicvoidensureCapacity(short capacity, List<ItemStack> remainder)
publicComponent<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.