public class MinecartUpdateEvent extends MinecartEvent
EntityMinecart.onUpdate()
.pos
contains the coordinate of the track the entity is on {if applicable}.Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
MinecartUpdateEvent(EntityMinecart minecart,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPos() |
getMinecart
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public MinecartUpdateEvent(EntityMinecart minecart, BlockPos pos)
public BlockPos getPos()