public class PlayerPlaceObjectEvent extends PlayerObjectEvent implements Cancellable
| Constructor and Description |
|---|
PlayerPlaceObjectEvent(Player player,
commons.objects.ObjectElement object) |
PlayerPlaceObjectEvent(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 |
|---|---|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
void |
setObjectPosition(float x,
float y,
float z)
Changes the object position.
|
void |
setObjectPosition(Vector3f position)
Changes the object position.
|
void |
setObjectRotation(Quaternion rotation)
Changes the object rotation.
|
getChunkPositionX, getChunkPositionY, getChunkPositionZ, getObjectDefinition, getObjectInfoID, getObjectPosition, getObjectPositionX, getObjectPositionY, getObjectPositionZ, getObjectRotation, getObjectRotationX, getObjectRotationY, getObjectRotationZ, getObjectStatus, getObjectTypeID, getObjectVariation, getPX, getPY, getPZ, getRX, getRY, getRZgetPlayerpublic PlayerPlaceObjectEvent(Player player, commons.objects.ObjectElement object)
public PlayerPlaceObjectEvent(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 void setObjectPosition(Vector3f position)
position - the new object world position.public void setObjectPosition(float x,
float y,
float z)
x - the new object world x position.y - the new object world y position.z - the new object world z position.public void setObjectRotation(Quaternion rotation)
rotation - the new object rotation. Set to null to reset the rotation
(Quaternion.IDENTITY).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.