mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-20 04:09:45 +00:00
Update buildscript & apply automatic formatting rules
This commit is contained in:
1 parent
a7683b885d
commit
f7a900e910
173 files changed
+4581
-5321
No files matched your search
@@ -11,10 +11,8 @@ import net.minecraft.item.ItemStack;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
|
||||
public class OptionUtilities extends OptionStringSet
|
||||
{
|
||||
public OptionUtilities(String name)
|
||||
{
|
||||
public class OptionUtilities extends OptionStringSet {
|
||||
public OptionUtilities(String name) {
|
||||
super(name);
|
||||
options.add("time");
|
||||
options.add("rain");
|
||||
@@ -31,23 +29,28 @@ public class OptionUtilities extends OptionStringSet
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawIcons()
|
||||
{
|
||||
public void drawIcons() {
|
||||
int x = buttonX();
|
||||
LayoutManager.drawIcon(x+4, 4, new Image(120, 24, 12, 12)); x+=24;
|
||||
LayoutManager.drawIcon(x+4, 4, new Image(120, 12, 12, 12)); x+=24;
|
||||
LayoutManager.drawIcon(x+4, 4, new Image(168, 24, 12, 12)); x+=24;
|
||||
LayoutManager.drawIcon(x+4, 4, new Image(144, 12, 12, 12)); x+=24;
|
||||
LayoutManager.drawIcon(x+4, 4, new Image(180, 24, 12, 12)); x+=24;
|
||||
LayoutManager.drawIcon(x+4, 4, new Image(132, 12, 12, 12)); x+=24;
|
||||
LayoutManager.drawIcon(x + 4, 4, new Image(120, 24, 12, 12));
|
||||
x += 24;
|
||||
LayoutManager.drawIcon(x + 4, 4, new Image(120, 12, 12, 12));
|
||||
x += 24;
|
||||
LayoutManager.drawIcon(x + 4, 4, new Image(168, 24, 12, 12));
|
||||
x += 24;
|
||||
LayoutManager.drawIcon(x + 4, 4, new Image(144, 12, 12, 12));
|
||||
x += 24;
|
||||
LayoutManager.drawIcon(x + 4, 4, new Image(180, 24, 12, 12));
|
||||
x += 24;
|
||||
LayoutManager.drawIcon(x + 4, 4, new Image(132, 12, 12, 12));
|
||||
x += 24;
|
||||
RenderHelper.enableGUIStandardItemLighting();
|
||||
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
|
||||
ItemStack sword = new ItemStack(Items.diamond_sword);
|
||||
sword.addEnchantment(Enchantment.sharpness, 1);
|
||||
GuiContainerManager.drawItem(x+2, 2, sword);
|
||||
x+=24;
|
||||
GuiContainerManager.drawItem(x+2, 2, new ItemStack(Items.potionitem));
|
||||
x+=24;
|
||||
GuiContainerManager.drawItem(x+2, 2, new ItemStack(Blocks.stone));
|
||||
GuiContainerManager.drawItem(x + 2, 2, sword);
|
||||
x += 24;
|
||||
GuiContainerManager.drawItem(x + 2, 2, new ItemStack(Items.potionitem));
|
||||
x += 24;
|
||||
GuiContainerManager.drawItem(x + 2, 2, new ItemStack(Blocks.stone));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user