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