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.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
ThrowableImpactEvent(EntityThrowable throwable,
RayTraceResult ray) |
| Modifier and Type | Method and Description |
|---|---|
EntityThrowable |
getEntityThrowable() |
RayTraceResult |
getRayTraceResult() |
getEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic ThrowableImpactEvent(EntityThrowable throwable, RayTraceResult ray)
public EntityThrowable getEntityThrowable()
public RayTraceResult getRayTraceResult()