Class InventorySetActiveSlotEvent

java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.server.core.event.events.ecs.InventorySetActiveSlotEvent

public class InventorySetActiveSlotEvent extends EcsEvent
An event that is fired after an entity's active slot in an inventory section has been changed.
  • Constructor Details

    • InventorySetActiveSlotEvent

      public InventorySetActiveSlotEvent(int inventorySectionId, int previousSlot, byte newSlot)
      Default Constructor for a InventorySetActiveSlotEvent instance.
      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.