public class MinecartCollisionEvent extends MinecartEvent
collider
contains the Entity the Minecart collided with.
This event is not Cancelable
.
This event does not have a result. HasResult
This event is fired on the MinecraftForge#EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
MinecartCollisionEvent(EntityMinecart minecart,
Entity collider) |
Modifier and Type | Method and Description |
---|---|
Entity |
getCollider() |
getMinecart
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public MinecartCollisionEvent(EntityMinecart minecart, Entity collider)
public Entity getCollider()