Class PlayerBadgeRenderer<T extends PlayerBadge>
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.render.badge.PlayerBadgeRenderer<T>
- Direct Known Subclasses:
PBTextureRenderer
A
PlayerBadgeRenderer
is a unique component that tells
the game how a given PlayerBadge
is supposed to be rendered.
Because PlayerBadge
s are present on both sides (client and server),
and rendering is a client-side-only thing, the rendering has been
separated into a separate component called PlayerBadgeRenderer
.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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
.
-
Field Details
-
badgeType
-
-
Constructor Details
-
PlayerBadgeRenderer
-
-
Method Details
-
getBadgeType
-
render
public abstract 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
.- 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.
-