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) voidextractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int x, int y, float partialTick) static Polygonrectangle(float width, float height) static Polygonregular(int sides, float radius) 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
-
extractRenderState
public void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int x, int y, float partialTick) - Specified by:
extractRenderStatein interfacenet.minecraft.client.gui.components.Renderable
-