Class PBTextureRenderer
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.render.badge.PlayerBadgeRenderer<PlayerBadge>
io.github.thecsdev.tcdcommons.api.client.render.badge.PBTextureRenderer
A
PlayerBadgeRenderer
that uses UITexture
s for rendering.-
Field Summary
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.render.badge.PlayerBadgeRenderer
badgeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal @Nullable UITexture
Returns theUITexture
thisPBTextureRenderer
renders.void
render
(net.minecraft.client.gui.DrawContext pencil, int x, int y, int width, int height, int mouseX, int mouseY, float deltaTime) Renders thisPlayerBadge
on the client-sideScreen
.Methods inherited from class io.github.thecsdev.tcdcommons.api.client.render.badge.PlayerBadgeRenderer
getBadgeType
-
Field Details
-
texture
-
-
Constructor Details
-
PBTextureRenderer
-
-
Method Details
-
getTexture
Returns theUITexture
thisPBTextureRenderer
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 thisPlayerBadge
on the client-sideScreen
.- Specified by:
render
in classPlayerBadgeRenderer<PlayerBadge>
- Parameters:
pencil
- The renderingDrawContext
.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 thePlayerBadge
on the screen.height
- The height of thePlayerBadge
on the screen.deltaTime
- The time elapsed since the last frame was rendered.
-