Proper Reformating

This commit is contained in:
Kam committed 2025-03-13 17:14:45 -04:00
1 parent ce75880aba
commit 180d257024
1179 files changed
+59847 -61583

No files matched your search

@@ -135,8 +135,8 @@ public class ScriptGuiButton extends ScriptGuiComponent implements IButton {
nbt.setIntArray("size", new int[]{this.width, this.height});
}
nbt.setFloat("scale",this.scale);
nbt.setBoolean("enabled",this.enabled);
nbt.setFloat("scale", this.scale);
nbt.setBoolean("enabled", this.enabled);
nbt.setString("label", this.label);
if (this.hasTexture()) {
@@ -90,14 +90,14 @@ public abstract class ScriptGuiComponent implements ICustomGuiComponent {
nbt.setInteger("id", this.id);
nbt.setIntArray("pos", new int[]{this.posX, this.posY});
nbt.setInteger("color", this.color);
nbt.setFloat("alpha",this.alpha);
nbt.setFloat("rotation",this.rotation);
nbt.setFloat("alpha", this.alpha);
nbt.setFloat("rotation", this.rotation);
if (this.hoverText != null) {
NBTTagList list = new NBTTagList();
String[] var3 = this.hoverText;
int var4 = var3.length;
for(int var5 = 0; var5 < var4; ++var5) {
for (int var5 = 0; var5 < var4; ++var5) {
String s = var3[var5];
if (s != null && !s.isEmpty()) {
list.appendTag(new NBTTagString(s));
@@ -123,7 +123,7 @@ public abstract class ScriptGuiComponent implements ICustomGuiComponent {
NBTTagList list = nbt.getTagList("hover", 8);
String[] hoverText = new String[list.tagCount()];
for(int i = 0; i < list.tagCount(); ++i) {
for (int i = 0; i < list.tagCount(); ++i) {
hoverText[i] = list.getStringTagAt(i);
}
@@ -134,7 +134,7 @@ public abstract class ScriptGuiComponent implements ICustomGuiComponent {
}
public static ScriptGuiComponent createFromNBT(NBTTagCompound nbt) {
switch(nbt.getInteger("type")) {
switch (nbt.getInteger("type")) {
case 0:
return (new ScriptGuiButton()).fromNBT(nbt);
case 1:
@@ -60,11 +60,11 @@ public class ScriptGuiLabel extends ScriptGuiComponent implements ILabel {
return this;
}
public boolean getShadow(){
public boolean getShadow() {
return this.shadow;
}
public void setShadow(boolean shadow){
public void setShadow(boolean shadow) {
this.shadow = shadow;
}
@@ -77,7 +77,7 @@ public class ScriptGuiLabel extends ScriptGuiComponent implements ILabel {
nbt.setString("label", this.label);
nbt.setIntArray("size", new int[]{this.width, this.height});
nbt.setFloat("scale", this.scale);
nbt.setBoolean("shadow",this.shadow);
nbt.setBoolean("shadow", this.shadow);
return nbt;
}
@@ -10,10 +10,10 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
int y2;
int thickness = 2;
public ScriptGuiLine(){
public ScriptGuiLine() {
}
public ScriptGuiLine(int id, int x1, int y1, int x2, int y2){
public ScriptGuiLine(int id, int x1, int y1, int x2, int y2) {
this.setPos(x1, y1);
this.setID(id);
this.hoverText = new String[]{""};
@@ -24,7 +24,7 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
this.y2 = y2;
}
public ScriptGuiLine(int id, int x1, int y1, int x2, int y2, int color, int thickness){
public ScriptGuiLine(int id, int x1, int y1, int x2, int y2, int color, int thickness) {
this.setPos(x1, y1);
this.setID(id);
this.hoverText = new String[]{""};
@@ -44,11 +44,11 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
public NBTTagCompound toNBT(NBTTagCompound nbt) {
super.toNBT(nbt);
nbt.setInteger("X1",x1);
nbt.setInteger("Y1",y1);
nbt.setInteger("X2",x2);
nbt.setInteger("Y2",y2);
nbt.setInteger("Thickness",thickness);
nbt.setInteger("X1", x1);
nbt.setInteger("Y1", y1);
nbt.setInteger("X2", x2);
nbt.setInteger("Y2", y2);
nbt.setInteger("Thickness", thickness);
return nbt;
}
@@ -64,35 +64,43 @@ public class ScriptGuiLine extends ScriptGuiComponent implements ILine {
return this;
}
public int getX1(){
public int getX1() {
return this.x1;
}
public int getY1(){
public int getY1() {
return this.y1;
}
public int getX2(){
public int getX2() {
return this.x2;
}
public int getY2(){
public int getY2() {
return this.y2;
}
public int getThickness(){
public int getThickness() {
return this.thickness;
}
public void setX1(int x1){
public void setX1(int x1) {
this.x1 = x1;
}
public void setY1(int y1){
public void setY1(int y1) {
this.y1 = y1;
}
public void setX2(int x2){
public void setX2(int x2) {
this.x2 = x2;
}
public void setY2(int y2){
public void setY2(int y2) {
this.y2 = y2;
}
public void setThickness(int thickness){
public void setThickness(int thickness) {
this.thickness = thickness;
}
}
@@ -78,7 +78,7 @@ public class ScriptGuiScroll extends ScriptGuiComponent implements IScroll {
String[] var3 = this.list;
int var4 = var3.length;
for(int var5 = 0; var5 < var4; ++var5) {
for (int var5 = 0; var5 < var4; ++var5) {
String s = var3[var5];
list.appendTag(new NBTTagString(s));
}
@@ -98,7 +98,7 @@ public class ScriptGuiScroll extends ScriptGuiComponent implements IScroll {
NBTTagList tagList = nbt.getTagList("list", 8);
String[] list = new String[tagList.tagCount()];
for(int i = 0; i < tagList.tagCount(); ++i) {
for (int i = 0; i < tagList.tagCount(); ++i) {
list[i] = tagList.getStringTagAt(i);
}