public class MinecartEvent extends EntityEvent
Event
as its parameter, the method will minecart
contains the minecart entity involved with this event.MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
MinecartEvent(EntityMinecart minecart) |
Modifier and Type | Method and Description |
---|---|
EntityMinecart |
getMinecart() |
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public MinecartEvent(EntityMinecart minecart)
public EntityMinecart getMinecart()