InventoryChangeEvent
Package: com.hypixel.hytale.server.core.inventory
public class InventoryChangeEvent extends EcsEventECS event fired when an inventory component’s item container changes. Carries the component type that changed, the inventory component instance, the affected item container, and the transaction that caused the change. Dispatched by the various InventoryChangeEventSystem implementations during entity ticking.
Constructors
Section titled “Constructors”| Modifier | Signature |
|---|---|
public | InventoryChangeEvent(ComponentType<EntityStore, ? extends InventoryComponent> componentType, InventoryComponent inventory, ItemContainer itemContainer, Transaction transaction) |
Methods
Section titled “Methods”| Modifier | Return Type | Signature |
|---|---|---|
public | ComponentType<EntityStore, ? extends InventoryComponent> | getComponentType() |
public | InventoryComponent | getInventory() |
public | ItemContainer | getItemContainer() |
public | Transaction | getTransaction() |
Relationships
Section titled “Relationships”- Extends
EcsEvent - Dispatched by InventorySystems inner event systems
- References InventoryComponent and
ItemContainer
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.