public class MinecartInteractEvent extends MinecartEvent
EntityMinecartContainer.processInitialInteract(EntityPlayer, EnumHand)
,
EntityMinecartEmpty.processInitialInteract(EntityPlayer, EnumHand)
,
EntityMinecartFurnace.processInitialInteract(EntityPlayer, EnumHand)
,
EntityMinecartHopper.processInitialInteract(EntityPlayer, EnumHand)
,
etc.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
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
public MinecartInteractEvent(EntityMinecart minecart, EntityPlayer player, EnumHand hand)
public EntityPlayer getPlayer()
@Nonnull public ItemStack getItem()
public EnumHand getHand()