@Deprecated public class ThrowableImpactEvent extends EntityEvent
EntityThrowable
calls its EntityThrowable.onImpact(net.minecraft.util.math.RayTraceResult)
method.
This event is fired via ForgeHooks.onThrowableImpact(net.minecraft.entity.projectile.EntityThrowable, net.minecraft.util.math.RayTraceResult)
.
This event is cancelable. When canceled, EntityThrowable.onImpact(net.minecraft.util.math.RayTraceResult)
will not be called.
Killing or other handling of the entity after event cancellation is up to the modder.
This event is fired on the MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
ThrowableImpactEvent(EntityThrowable throwable,
RayTraceResult ray)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EntityThrowable |
getEntityThrowable()
Deprecated.
|
RayTraceResult |
getRayTraceResult()
Deprecated.
|
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ThrowableImpactEvent(EntityThrowable throwable, RayTraceResult ray)
public EntityThrowable getEntityThrowable()
public RayTraceResult getRayTraceResult()