Interface IEntityRenderState
- All Known Implementing Classes:
EntityRenderStateMixin
public interface IEntityRenderState
-
Method Summary
Modifier and TypeMethodDescription@Nullable("EntityCulling mod can prevent the code that sets the entity from running") net.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)
-
Method Details
-
meteor$getEntity
@Nullable("EntityCulling mod can prevent the code that sets the entity from running") @Nullable("EntityCulling mod can prevent the code that sets the entity from running") net.minecraft.entity.Entity meteor$getEntity()Returns 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.
- Returns:
- The entity that the render state refers to
- See Also:
-
meteor$setEntity
void meteor$setEntity(net.minecraft.entity.Entity entity)
-