Class SwitchActiveSlotEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.event.events.ecs.SwitchActiveSlotEvent
- All Implemented Interfaces:
ICancellableEcsEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate byteprivate final intprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionSwitchActiveSlotEvent(int inventorySectionId, int previousSlot, byte newSlot, boolean serverRequest) -
Method Summary
Methods inherited from class com.hypixel.hytale.component.system.CancellableEcsEvent
isCancelled, setCancelled
-
Field Details
-
previousSlot
private final int previousSlot -
inventorySectionId
private final int inventorySectionId -
newSlot
private byte newSlot -
serverRequest
private final boolean serverRequest
-
-
Constructor Details
-
SwitchActiveSlotEvent
public SwitchActiveSlotEvent(int inventorySectionId, int previousSlot, byte newSlot, boolean serverRequest)
-
-
Method Details
-
getPreviousSlot
public int getPreviousSlot() -
getNewSlot
public byte getNewSlot() -
setNewSlot
public void setNewSlot(byte newSlot) -
isServerRequest
public boolean isServerRequest() -
isClientRequest
public boolean isClientRequest() -
getInventorySectionId
public int getInventorySectionId()
-