MinecartInteractEvent is fired when a player interacts with a minecart.
This event is fired whenever a player interacts with a minecart in
EntityMinecartContainer.processInitialInteract(EntityPlayer, ItemStack, EnumHand)
,
EntityMinecartEmpty.processInitialInteract(EntityPlayer, ItemStack, EnumHand)
,
EntityMinecartFurnace.processInitialInteract(EntityPlayer, ItemStack, EnumHand)
,
EntityMinecartHopper.processInitialInteract(EntityPlayer, ItemStack, EnumHand)
,
etc.
player
contains the EntityPlayer that is involved with this minecart interaction.
This event is
Cancelable
.
If this event is canceled, the player does not interact with the minecart.
This event does not have a result.
HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.