public final class PlayerChangeObjectStatusEvent extends PlayerObjectEvent implements Cancellable
| Constructor and Description |
|---|
PlayerChangeObjectStatusEvent(Player player,
commons.objects.ObjectElement object,
byte newstatus) |
PlayerChangeObjectStatusEvent(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,
byte newstatus) |
| Modifier and Type | Method and Description |
|---|---|
byte |
getNewObjectStatus()
Gets the new object status.
|
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 PlayerChangeObjectStatusEvent(Player player, commons.objects.ObjectElement object, byte newstatus)
public PlayerChangeObjectStatusEvent(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, byte newstatus)
public byte getNewObjectStatus()
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.