Made color and alpha components global among ScriptGui classes.

This commit is contained in:
luisc committed 2022-01-30 05:20:45 -06:00
1 parent be61bd4e17
commit e5e1aa1972
16 files changed
+168 -98

No files matched your search

@@ -8,7 +8,6 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
int y1;
int x2;
int y2;
int color = 0;
int thickness = 2;
public ScriptGuiLine(){
@@ -49,7 +48,6 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
nbt.setInteger("Y1",y1);
nbt.setInteger("X2",x2);
nbt.setInteger("Y2",y2);
nbt.setInteger("Color",color);
nbt.setInteger("Thickness",thickness);
return nbt;
@@ -61,7 +59,6 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
y1 = nbt.getInteger("Y1");
x2 = nbt.getInteger("X2");
y2 = nbt.getInteger("Y2");
color = nbt.getInteger("Color");
thickness = nbt.getInteger("Thickness");
return this;
@@ -79,9 +76,6 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
public int getY2(){
return this.y2;
}
public int getColor(){
return this.color;
}
public int getThickness(){
return this.thickness;
}
@@ -98,9 +92,6 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
public void setY2(int y2){
this.y2 = y2;
}
public void setColor(int color){
this.color = color;
}
public void setThickness(int thickness){
this.thickness = thickness;
}