Class RenderLivingEvent.Pre<T extends LivingEntity,M extends EntityModel<T>>
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderLivingEvent<T,M>
net.neoforged.neoforge.client.event.RenderLivingEvent.Pre<T,M>
- Type Parameters:
T
- the living entity that is being renderedM
- the model for the living entity
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
RenderLivingEvent<T extends LivingEntity,
M extends EntityModel<T>>
public static class RenderLivingEvent.Pre<T extends LivingEntity,M extends EntityModel<T>>
extends RenderLivingEvent<T,M>
implements net.neoforged.bus.api.ICancellableEvent
Fired before an entity is rendered.
This can be used to render additional effects or suppress rendering.
This event is cancelable, and does not
.
If this event is cancelled, then the entity will not be rendered and the corresponding
invalid reference
have a result
RenderLivingEvent.Post
will not be fired.
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.RenderLivingEvent
RenderLivingEvent.Post<T extends LivingEntity,
M extends EntityModel<T>>, RenderLivingEvent.Pre<T extends LivingEntity, M extends EntityModel<T>> -
Constructor Summary
ConstructorDescriptionPre
(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight) -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.RenderLivingEvent
getEntity, getMultiBufferSource, getPackedLight, getPartialTick, getPoseStack, getRenderer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
@Internal public Pre(LivingEntity entity, LivingEntityRenderer<T, M> renderer, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight)
-