Contents
Class InventorySetActiveSlotEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.server.core.event.events.ecs.InventorySetActiveSlotEvent
An event that is fired after an entity's active slot in an inventory section has been changed.
-
Constructor Summary
ConstructorsConstructorDescriptionInventorySetActiveSlotEvent(int inventorySectionId, int previousSlot, byte newSlot) Default Constructor for aInventorySetActiveSlotEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionintbyteint
-
Constructor Details
-
InventorySetActiveSlotEvent
public InventorySetActiveSlotEvent(int inventorySectionId, int previousSlot, byte newSlot) Default Constructor for aInventorySetActiveSlotEventinstance.- Parameters:
inventorySectionId- The inventory section ID where the slot change occurred.previousSlot- The index of the previously active slot.newSlot- The index of the newly active slot.
-
-
Method Details
-
getInventorySectionId
public int getInventorySectionId()- Returns:
- the inventory section ID where the slot change occurred.
-
getPreviousSlot
public int getPreviousSlot()- Returns:
- the index of the previously active slot.
-
getNewSlot
public byte getNewSlot()- Returns:
- the index of the newly active slot.
-