Class EntityRenderStateMixin
java.lang.Object
meteordevelopment.meteorclient.mixin.EntityRenderStateMixin
- All Implemented Interfaces:
IEntityRenderState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.entity.EntityReturns the entity that the render state refers to; necessary in scenarios when you want to perform an entity rendering task with data that isn't present in the render state.voidmeteor$setEntity(net.minecraft.entity.Entity entity)
-
Constructor Details
-
EntityRenderStateMixin
public EntityRenderStateMixin()
-
-
Method Details
-
meteor$getEntity
public net.minecraft.entity.Entity meteor$getEntity()Description copied from interface:IEntityRenderStateReturns the entity that the render state refers to; necessary in scenarios when you want to perform an entity rendering task with data that isn't present in the render state.The entity is only set after the render state is retrieved in EntityRenderDispatcher#render, so make sure not to call this before that point (e.g. mixing into an updateRenderState method), otherwise the entity returned will not be the same one that the render state is referring to.
- Specified by:
meteor$getEntityin interfaceIEntityRenderState- Returns:
- The entity that the render state refers to
- See Also:
-
meteor$setEntity
public void meteor$setEntity(net.minecraft.entity.Entity entity) - Specified by:
meteor$setEntityin interfaceIEntityRenderState
-