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
Modifier and Type | Field and Description |
---|---|
private EntityMinecart |
minecart |
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
private final EntityMinecart minecart
public MinecartEvent(EntityMinecart minecart)
public EntityMinecart getMinecart()