Unified build script (#175)

* Update build script
* Update build script to import fix for shadow in dev and sources artifacts
* Update fixed build script to shadow csv dependency in dev jar as well
* Moved jitpack
* Move new files
This commit is contained in:
Johann Bernhardt authored and GitHub committed 2021-11-22 08:56:35 -08:00
1 parent 43b71b1de6
commit a7ca6c8527
188 files changed
+646 -968

No files matched your search

@@ -0,0 +1,53 @@
package codechicken.nei.config;
import codechicken.nei.Image;
import codechicken.nei.LayoutManager;
import codechicken.nei.guihook.GuiContainerManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
public class OptionUtilities extends OptionStringSet
{
public OptionUtilities(String name)
{
super(name);
options.add("time");
options.add("rain");
options.add("heal");
options.add("delete");
options.add("magnet");
options.add("gamemode");
options.add("enchant");
options.add("potion");
options.add("item");
groups.put("gamemode", "creative");
groups.put("gamemode", "creative+");
groups.put("gamemode", "adventure");
}
@Override
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;
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));
}
}