net.minecraftforge.event.entity.player
Class PlayerInteractEvent
java.lang.Object
net.minecraftforge.event.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.player.PlayerEvent
net.minecraftforge.event.entity.player.PlayerInteractEvent
public class PlayerInteractEvent
- extends PlayerEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.Event |
Event.Result |
Method Summary |
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. |
action
public final PlayerInteractEvent.Action action
x
public final int x
y
public final int y
z
public final int z
face
public final int face
useBlock
public Event.Result useBlock
useItem
public Event.Result useItem
PlayerInteractEvent
public PlayerInteractEvent(EntityPlayer player,
PlayerInteractEvent.Action action,
int x,
int y,
int z,
int face)
setCanceled
public void setCanceled(boolean cancel)
- Description copied from class:
Event
- 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.
The functionality of setting the canceled state is defined on a per-event bases.
- Overrides:
setCanceled
in class Event
- Parameters:
cancel
- The new canceled value