Package net.createmod.catnip.gui.element
Class BoxElement
java.lang.Object
net.createmod.catnip.gui.element.AbstractRenderElement
net.createmod.catnip.gui.element.BoxElement
- All Implemented Interfaces:
FadableScreenElement,RenderElement,ScreenElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.createmod.catnip.gui.element.AbstractRenderElement
AbstractRenderElement.SimpleRenderElement -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends BoxElement>
TflatBorder(int color) <T extends BoxElement>
TflatBorder(Color color) <T extends BoxElement>
TgradientBorder(int top, int bot) <T extends BoxElement>
TgradientBorder(Couple<Color> colors) <T extends BoxElement>
TgradientBorder(Color top, Color bot) voidrender(com.mojang.blaze3d.vertex.PoseStack ms) protected voidrenderBox(com.mojang.blaze3d.vertex.PoseStack ms) <T extends BoxElement>
TwithBackground(int color) <T extends BoxElement>
TwithBackground(Color color) <T extends BoxElement>
TwithBorderOffset(int offset) Methods inherited from class net.createmod.catnip.gui.element.AbstractRenderElement
at, at, getHeight, getWidth, getX, getY, getZ, withAlpha, withBoundsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.createmod.catnip.gui.element.FadableScreenElement
renderMethods inherited from interface net.createmod.catnip.gui.element.RenderElement
render
-
Field Details
-
background
-
borderTop
-
borderBot
-
borderOffset
protected int borderOffset
-
-
Constructor Details
-
BoxElement
public BoxElement()
-
-
Method Details
-
withBackground
-
withBackground
-
flatBorder
-
flatBorder
-
gradientBorder
-
gradientBorder
-
gradientBorder
-
withBorderOffset
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack ms) -
renderBox
protected void renderBox(com.mojang.blaze3d.vertex.PoseStack ms)
-