java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.renderers.Polygon
All Implemented Interfaces:
net.minecraft.client.gui.components.Renderable

public class Polygon extends Object implements net.minecraft.client.gui.components.Renderable
  • Constructor Details

    • Polygon

      public Polygon()
    • Polygon

      public Polygon(List<org.joml.Vector2f> vertices)
  • Method Details

    • regular

      public static Polygon regular(int sides, float radius)
    • rectangle

      public static Polygon rectangle(float width, float height)
    • addVertex

      public Polygon addVertex(float x, float y)
    • rotateCW

      public Polygon rotateCW(double theta)
      Radians
    • rotateCCW

      public Polygon rotateCCW(double theta)
    • translate

      public Polygon translate(float dx, float dy)
    • translateX

      public Polygon translateX(float dx)
    • translateY

      public Polygon translateY(float dy)
    • setColor

      public Polygon setColor(int color)
    • setColor

      public Polygon setColor(int a, int r, int g, int b)
    • setFilled

      public Polygon setFilled(boolean filled)
    • setLineWidth

      public Polygon setLineWidth(float width)
    • render

      public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, float partialTick)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable