Interface IEntityRenderState

All Known Implementing Classes:
EntityRenderStateMixin

public interface IEntityRenderState
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.world.entity.Entity
    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.
    void
    meteor$setEntity(net.minecraft.world.entity.Entity entity)
     
  • Method Details

    • meteor$getEntity

      @Nullable net.minecraft.world.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:
      • EntityRenderDispatcherMixin.getAndUpdateRenderState$setEntity(EntityRenderState, Entity, float)
    • meteor$setEntity

      void meteor$setEntity(net.minecraft.world.entity.Entity entity)