Class Polygon
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.renderers.Polygon
- All Implemented Interfaces:
net.minecraft.client.gui.components.Renderable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float x, float y) static Polygonrectangle(float width, float height) static Polygonregular(int sides, float radius) voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, float partialTick) rotateCCW(double theta) rotateCW(double theta) RadianssetColor(int color) setColor(int a, int r, int g, int b) setFilled(boolean filled) setLineWidth(float width) translate(float dx, float dy) translateX(float dx) translateY(float dy)
-
Constructor Details
-
Polygon
public Polygon() -
Polygon
-
-
Method Details
-
regular
-
rectangle
-
addVertex
-
rotateCW
Radians -
rotateCCW
-
translate
-
translateX
-
translateY
-
setColor
-
setColor
-
setFilled
-
setLineWidth
-
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, float partialTick) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable
-