public class PlayerElementInteractionEvent extends PlayerEvent implements Cancellable
World3DModel.setInteractable(boolean) is
set to true).| Constructor and Description |
|---|
PlayerElementInteractionEvent(Player player,
WorldElement worldElement) |
| Modifier and Type | Method and Description |
|---|---|
WorldElement |
getWorldElement()
Gets the world element the player was interacting with.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic PlayerElementInteractionEvent(Player player, WorldElement worldElement)
public WorldElement getWorldElement()
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.