Class InventoryComponent

java.lang.Object
com.hypixel.hytale.server.core.inventory.InventoryComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable
Direct Known Subclasses:
ActiveSlotInventoryComponent, InventoryComponent.AbilitySlots, InventoryComponent.Armor, InventoryComponent.Backpack, InventoryComponent.RuneBag, InventoryComponent.Storage

public abstract class InventoryComponent extends Object implements Component<EntityStore>
Base component for all inventory types on an entity. Each inventory type (hotbar, armor, etc.) is a separate ECS component, allowing entities to have any combination of inventories.

The static combined-type arrays (e.g. HOTBAR_FIRST, EVERYTHING) define priority-ordered groupings used by operations that span multiple inventories, such as item insertion or sorting. The array order determines which inventory is tried first.

See Also: