public static class PlayerEvent.Interact extends PlayerEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
PlayerEvent.Interact.Action |
PlayerEvent.Interact, PlayerEvent.Join, PlayerEvent.LeaveEntityEvent.Add, EntityEvent.RemoveEvent.Result| Modifier and Type | Field and Description |
|---|---|
PlayerEvent.Interact.Action |
action |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
position |
Event.Result |
useBlock |
Event.Result |
useItem |
World |
world |
entity| Constructor and Description |
|---|
Interact(World world,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D position,
Entity player,
PlayerEvent.Interact.Action action) |
cancel, isCanceledpublic final World world
public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D position
public final PlayerEvent.Interact.Action action
public Event.Result useBlock
public Event.Result useItem
public Interact(World world, org.apache.commons.math3.geometry.euclidean.threed.Vector3D position, Entity player, PlayerEvent.Interact.Action action)