Class RenderPlayerEvent

Direct Known Subclasses:
RenderPlayerEvent.Post, RenderPlayerEvent.Pre

public abstract class RenderPlayerEvent extends PlayerEvent
Fired when a player is being rendered. See the two subclasses for listening for before and after rendering.
See Also:
  • Field Details

    • renderer

      private final PlayerRenderer renderer
    • partialTick

      private final float partialTick
    • poseStack

      private final PoseStack poseStack
    • multiBufferSource

      private final MultiBufferSource multiBufferSource
    • packedLight

      private final int packedLight
  • Constructor Details

  • Method Details

    • getRenderer

      public PlayerRenderer getRenderer()
      Returns the player entity renderer.
      Returns:
      the player entity renderer
    • getPartialTick

      public float getPartialTick()
      Returns the partial tick.
      Returns:
      the partial tick
    • getPoseStack

      public PoseStack getPoseStack()
      Returns the pose stack used for rendering.
      Returns:
      the pose stack used for rendering
    • getMultiBufferSource

      public MultiBufferSource getMultiBufferSource()
      Returns the source of rendering buffers.
      Returns:
      the source of rendering buffers
    • getPackedLight

      public int getPackedLight()
      Returns the amount of packed (sky and block) light for rendering.
      Returns:
      the amount of packed (sky and block) light for rendering
      See Also: