mirror of
https://github.com/seppukudevelopment/seppuku
synced 2024-12-26 00:22:06 +00:00
Code reformat & Optimized imports
This commit is contained in:
parent
f3391a87cc
commit
cc4f69ad0d
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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.*;
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user