public class PlayerChestAccessEvent extends PlayerObjectEvent implements Cancellable
PlayerObjectInteractionEvent| Constructor and Description |
|---|
PlayerChestAccessEvent(Player player,
commons.objects.ObjectElement object) |
PlayerChestAccessEvent(Player player,
short objectid,
byte variation,
int cx,
int cy,
int cz,
short px,
short py,
short pz,
short rx,
short ry,
short rz,
int info,
byte status) |
| Modifier and Type | Method and Description |
|---|---|
Chest |
getChest() |
int |
getChestID()
Gets the chest ID (does the same as
PlayerObjectEvent.getObjectInfoID()) |
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getObjectDefinition, getObjectInfoID, getObjectPosition, getObjectPositionX, getObjectPositionY, getObjectPositionZ, getObjectRotation, getObjectRotationX, getObjectRotationY, getObjectRotationZ, getObjectStatus, getObjectTypeID, getObjectVariation, getPX, getPY, getPZ, getRX, getRY, getRZgetPlayerpublic PlayerChestAccessEvent(Player player, commons.objects.ObjectElement object)
public PlayerChestAccessEvent(Player player, short objectid, byte variation, int cx, int cy, int cz, short px, short py, short pz, short rx, short ry, short rz, int info, byte status)
public int getChestID()
PlayerObjectEvent.getObjectInfoID())public Chest getChest()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.