Class EntityRenderStateMixin

java.lang.Object
meteordevelopment.meteorclient.mixin.EntityRenderStateMixin
All Implemented Interfaces:
IEntityRenderState

public abstract class EntityRenderStateMixin extends Object implements IEntityRenderState
  • Constructor Details

    • EntityRenderStateMixin

      public EntityRenderStateMixin()
  • Method Details

    • meteor$getEntity

      public @Nullable net.minecraft.world.entity.Entity meteor$getEntity()
      Description copied from interface: IEntityRenderState
      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.

      Specified by:
      meteor$getEntity in interface IEntityRenderState
      Returns:
      The entity that the render state refers to
      See Also:
      • EntityRenderDispatcherMixin.getAndUpdateRenderState$setEntity(EntityRenderState, Entity, float)
    • meteor$setEntity

      public void meteor$setEntity(net.minecraft.world.entity.Entity entity)
      Specified by:
      meteor$setEntity in interface IEntityRenderState