public class MinecartInteractEvent extends MinecartEvent
EntityMinecart.processInitialInteract(EntityPlayer, EnumHand)
.
player
contains the EntityPlayer that is involved with this minecart interaction.Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EnumHand |
hand |
private EntityPlayer |
player |
Constructor and Description |
---|
MinecartInteractEvent(EntityMinecart minecart,
EntityPlayer player,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
EnumHand |
getHand() |
ItemStack |
getItem() |
EntityPlayer |
getPlayer() |
getMinecart
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityPlayer player
private final EnumHand hand
public MinecartInteractEvent(EntityMinecart minecart, EntityPlayer player, EnumHand hand)
public EntityPlayer getPlayer()
@Nonnull public ItemStack getItem()
public EnumHand getHand()