类 RenderLivingEvent<T extends LivingEntity,M extends EntityModel<T>>

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderLivingEvent<T,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,M extends EntityModel<T>> 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).

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

  • 构造器详细资料

  • 方法详细资料

    • getEntity

      public LivingEntity getEntity()
      返回:
      the living entity being rendered
    • getRenderer

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

      public float getPartialTick()
      返回 the partial tick。
      返回:
      the partial tick
    • 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
      另请参阅: