java.lang.Object
io.github.thecsdev.tcdcommons.api.client.render.badge.PlayerBadgeRenderer<PlayerBadge>
io.github.thecsdev.tcdcommons.api.client.render.badge.PBTextureRenderer

public final class PBTextureRenderer extends PlayerBadgeRenderer<PlayerBadge>
A PlayerBadgeRenderer that uses UITextures for rendering.
  • Field Details

    • texture

      protected final UITexture texture
  • Constructor Details

    • PBTextureRenderer

      public PBTextureRenderer(UITexture texture)
  • Method Details

    • getTexture

      @Nullable public final @Nullable UITexture getTexture()
      Returns the UITexture this PBTextureRenderer renders.
    • render

      public void render(net.minecraft.client.gui.DrawContext pencil, int x, int y, int width, int height, int mouseX, int mouseY, float deltaTime)
      Description copied from class: PlayerBadgeRenderer
      Renders this PlayerBadge on the client-side Screen.
      Specified by:
      render in class PlayerBadgeRenderer<PlayerBadge>
      Parameters:
      pencil - The rendering DrawContext.
      x - The starting on-screen X position where to start drawing the badge.
      y - The starting on-screen Y position where to start drawing the badge.
      width - The width of the PlayerBadge on the screen.
      height - The height of the PlayerBadge on the screen.
      deltaTime - The time elapsed since the last frame was rendered.