public class SwitchActiveSlotEvent extends CancellableEcsEvent
Event fired when switchactiveslot occurs. Listen for this event using EventBus.register.
java.lang.Object > CancellableEcsEvent > SwitchActiveSlotEvent
Field Summary
newSlot
private
byte
newSlot
Field newSlot.
Method Detail
SwitchActiveSlotEvent
public
public
SwitchActiveSlotEvent
(final int inventorySectionId, final int previousSlot, final byte newSlot, final boolean serverRequest)
Method SwitchActiveSlotEvent.
- Parameters:
final intinventorySectionIdfinal intpreviousSlotfinal bytenewSlotfinal booleanserverRequest
getPreviousSlot
public
int
getPreviousSlot
()
Method getPreviousSlot.
getNewSlot
public
byte
getNewSlot
()
Method getNewSlot.
setNewSlot
public
void
setNewSlot
(final byte newSlot)
Method setNewSlot.
- Parameters:
final bytenewSlot
isServerRequest
public
boolean
isServerRequest
()
Method isServerRequest.
isClientRequest
public
boolean
isClientRequest
()
Method isClientRequest.
getInventorySectionId
public
int
getInventorySectionId
()
Method getInventorySectionId.