Class EntityRenderStateMixin

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

public abstract class EntityRenderStateMixin extends Object implements IEntityRenderState
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable("EntityCulling mod can prevent the code that sets the entity from running") 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)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EntityRenderStateMixin

      public EntityRenderStateMixin()
  • Method Details

    • meteor$getEntity

      @Nullable("EntityCulling mod can prevent the code that sets the entity from running") public @Nullable("EntityCulling mod can prevent the code that sets the entity from running") 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