@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
Modifier and Type | Field and Description |
---|---|
private RayTraceResult |
ray
Deprecated.
|
private EntityThrowable |
throwable
Deprecated.
|
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
private final EntityThrowable throwable
private final RayTraceResult ray
public ThrowableImpactEvent(EntityThrowable throwable, RayTraceResult ray)
public EntityThrowable getEntityThrowable()
public RayTraceResult getRayTraceResult()