public class PlayerInteractEvent extends PlayerEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerInteractEvent.Action |
PlayerEvent.BreakSpeed, PlayerEvent.HarvestCheck
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
PlayerInteractEvent.Action |
action |
int |
face |
Event.Result |
useBlock |
Event.Result |
useItem |
int |
x |
int |
y |
int |
z |
entityPlayer
entityLiving
entity
Constructor and Description |
---|
PlayerInteractEvent(EntityPlayer player,
PlayerInteractEvent.Action action,
int x,
int y,
int z,
int face) |
Modifier and Type | Method and Description |
---|---|
void |
setCanceled(boolean cancel)
Sets the state of this event, not all events are cancelable, and any attempt to
cancel a event that can't be will result in a IllegalArgumentException.
|
getListenerList, getResult, hasResult, isCancelable, isCanceled, setResult
public final PlayerInteractEvent.Action action
public final int x
public final int y
public final int z
public final int face
public Event.Result useBlock
public Event.Result useItem
public PlayerInteractEvent(EntityPlayer player, PlayerInteractEvent.Action action, int x, int y, int z, int face)
public void setCanceled(boolean cancel)
Event
setCanceled
in class Event
cancel
- The new canceled value