Code reformat & Optimized imports

This commit is contained in:
noil 2020-12-27 16:54:45 -05:00
parent f3391a87cc
commit cc4f69ad0d
6 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,6 @@
package me.rigamortis.seppuku.impl.config;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import me.rigamortis.seppuku.Seppuku;
import me.rigamortis.seppuku.api.config.Configurable;

View File

@ -94,7 +94,7 @@ public class ModuleConfig extends Configurable {
} else if (value.getValue() instanceof Enum) {
moduleJsonObject.addProperty(value.getName(), ((Enum) value.getValue()).name());
} else if (value.getValue() instanceof Color) {
moduleJsonObject.addProperty(value.getName(), Integer.toHexString(((Color)value.getValue()).getRGB()).toUpperCase());
moduleJsonObject.addProperty(value.getName(), Integer.toHexString(((Color) value.getValue()).getRGB()).toUpperCase());
}
});
}

View File

@ -180,7 +180,7 @@ public final class ColorsComponent extends ResizableHudComponent {
this.currentColorComponent.setH(10);
// draw bg
RenderUtil.drawRect(this.currentColorComponent.getX(), this.currentColorComponent.getY(), this.currentColorComponent.getX() + this.currentColorComponent.getW(), this.currentColorComponent.getY() + this.currentColorComponent.getH(), 0xFF101010);
RenderUtil.drawRect(this.currentColorComponent.getX(), this.currentColorComponent.getY(), this.currentColorComponent.getX() + this.currentColorComponent.getW(), this.currentColorComponent.getY() + this.currentColorComponent.getH(), 0xFF101010);
this.currentColorComponent.render(mouseX, mouseY, partialTicks);
}

View File

@ -7,7 +7,6 @@ import me.rigamortis.seppuku.api.util.RenderUtil;
import me.rigamortis.seppuku.api.util.Timer;
import me.rigamortis.seppuku.api.value.Value;
import me.rigamortis.seppuku.impl.gui.hud.GuiHudEditor;
import net.minecraft.util.math.Vec2f;
import org.lwjgl.input.Keyboard;
import java.awt.*;

View File

@ -9,7 +9,10 @@ import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.*;
import net.minecraft.entity.item.EntityBoat;
import net.minecraft.entity.item.EntityEnderCrystal;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.item.EntityMinecart;
import net.minecraft.entity.monster.IMob;
import net.minecraft.entity.passive.IAnimals;
import net.minecraft.entity.player.EntityPlayer;

View File

@ -563,7 +563,8 @@ public final class WallHackModule extends Module {
ret = this.itemsColor.getValue().getRGB();
}
if (entity instanceof EntityEnderCrystal) {
ret = this.crystalsColor.getValue().getRGB();;
ret = this.crystalsColor.getValue().getRGB();
;
}
if (entity instanceof EntityEnderPearl) {
ret = this.pearlsColor.getValue().getRGB();