类 RenderLivingEvent<T extends LivingEntity,S extends LivingEntityRenderState,M extends EntityModel<? super S>>

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderLivingEvent<T,S,M>
类型参数:
T - the living entity that is being rendered
M - the model for the living entity
直接已知子类:
RenderLivingEvent.Post, RenderLivingEvent.Pre

public abstract class RenderLivingEvent<T extends LivingEntity,S extends LivingEntityRenderState,M extends EntityModel<? super S>> extends net.minecraftforge.eventbus.api.Event
Fired when a LivingEntity is rendered. See the two subclasses to listen for before and after rendering.

Despite this event's use of generic type parameters, this is not a GenericEvent, and should not be treated as such (such as using generic-specific listeners, which may cause a ClassCastException).

另请参阅:
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getState

      public S getState()
      返回:
      the living entity being rendered
    • getRenderer

      public LivingEntityRenderer<T,S,M> getRenderer()
      返回:
      the renderer for the living entity
    • getPoseStack

      public PoseStack getPoseStack()
      返回 the pose stack used for rendering。
      返回:
      the pose stack used for rendering
    • getMultiBufferSource

      public MultiBufferSource getMultiBufferSource()
      返回 the source of rendering buffers。
      返回:
      the source of rendering buffers
    • getPackedLight

      public int getPackedLight()
      返回 the amount of packed (sky and block) light for rendering。
      返回:
      the amount of packed (sky and block) light for rendering
      另请参阅: