public class PlayerPlaceBlueprintEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerPlaceBlueprintEvent(Player player,
BoundingInformation boundingInformation,
int terrain,
int blocks,
int constructions,
int objects) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockCount()
Gets the amount of blocks in this blueprint.
|
BoundingInformation |
getBoundingInformation()
Gets the bounding information of the blueprint object.
|
int |
getConstructionCount()
Gets the amount of construction elements (windows, planks, beams etc) in
this blueprint.
|
float |
getMaxExtent()
Gets the max radius of the affected area.
|
int |
getObjectCount()
Gets the amount of objects (i.e. furniture, doors, lamps etc) in this blueprint.
|
Vector3f |
getPosition()
Gets the target world position of the blueprint, or more precisely, the
center position of the affected area.
|
int |
getTerrainCount()
Gets the amount of "terrain blocks" in this blueprint.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic PlayerPlaceBlueprintEvent(Player player, BoundingInformation boundingInformation, int terrain, int blocks, int constructions, int objects)
public BoundingInformation getBoundingInformation()
public Vector3f getPosition()
getBoundingInformation().getCenter()public float getMaxExtent()
public int getTerrainCount()
public int getBlockCount()
public int getConstructionCount()
public int getObjectCount()
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.