Package hiiragi283.core.util
Object HTSpriteRenderHelper
-
- All Implemented Interfaces:
public class HTSpriteRenderHelper
-
-
Field Summary
Fields Modifier and Type Field Description public final static HTSpriteRenderHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static ResourceLocationfixTextureId(ResourceLocation id)final static UnitsetShaderColor(GuiGraphics guiGraphics, Integer color, Function0<Unit> action)final static Unitblit(GuiGraphics guiGraphics, ResourceLocation texture, HTBounds bounds, Float uOffset, Float vOffset, Integer textureWidth, Integer textureHeight)final static Unitblit(GuiGraphics guiGraphics, ResourceLocation texture, Integer x, Integer y, Integer width, Integer height, Float uOffset, Float vOffset, Integer textureWidth, Integer textureHeight)final UnitdrawQuad(GuiGraphics guiGraphics, Float x, Float y, Float width, Float height, Float minU, Float minV, Float maxU, Float maxV)final UnitdrawQuad(Direction direction, VertexConsumer consumer, Matrix4f matrix, PoseStack.Pose pose, TextureAtlasSprite sprite, Integer color, Integer light, Integer overlay)final static UnitdrawFluidBox(PoseStack poseStack, VertexConsumer consumer, TextureAtlasSprite sprite, Integer color, Integer light, Integer overlay, Iterable<Direction> sides)-
-
Method Detail
-
fixTextureId
final static ResourceLocation fixTextureId(ResourceLocation id)
-
setShaderColor
final static Unit setShaderColor(GuiGraphics guiGraphics, Integer color, Function0<Unit> action)
-
blit
final static Unit blit(GuiGraphics guiGraphics, ResourceLocation texture, HTBounds bounds, Float uOffset, Float vOffset, Integer textureWidth, Integer textureHeight)
-
blit
final static Unit blit(GuiGraphics guiGraphics, ResourceLocation texture, Integer x, Integer y, Integer width, Integer height, Float uOffset, Float vOffset, Integer textureWidth, Integer textureHeight)
-
drawQuad
final Unit drawQuad(GuiGraphics guiGraphics, Float x, Float y, Float width, Float height, Float minU, Float minV, Float maxU, Float maxV)
-
drawQuad
final Unit drawQuad(Direction direction, VertexConsumer consumer, Matrix4f matrix, PoseStack.Pose pose, TextureAtlasSprite sprite, Integer color, Integer light, Integer overlay)
-
-
-
-