Added Custom GUI Lines, with configurable thickness & color. Draws a line between one point defined by (x1,y1), and another defined by (x2,y2)

This commit is contained in:
luisc committed 2022-01-28 03:21:00 -06:00
1 parent fcaafe4b26
commit 8b24dad211
7 files changed
+212 -10

No files matched your search

@@ -44,6 +44,10 @@ public interface ICustomGui {
IScroll addScroll(int var1, int var2, int var3, int var4, int var5, String[] var6);
ILine addLine(int id, int x1, int y1, int x2, int y2, int color, int thickness);
ILine addLine(int id, int x1, int y1, int x2, int y2);
IItemSlot addItemSlot(int var1, int var2);
IItemSlot addItemSlot(int var1, int var2, IItemStack var3);
@@ -0,0 +1,17 @@
package noppes.npcs.scripted.interfaces;
public interface ILine extends ICustomGuiComponent {
int getX1();
int getY1();
int getX2();
int getY2();
int getColor();
int getThickness();
void setX1(int x1);
void setY1(int y1);
void setX2(int x2);
void setY2(int y2);
void setColor(int color);
void setThickness(int thickness);
}