Nothing To See Here

https: //github.com/SpitefulFox/Avaritia/commit/4631db28b9e61436ba32d906f8004fa75da02c34
Co-Authored-By: T Brieger <[email protected]>
This commit is contained in:
glowredmanandT Brieger committed 2022-02-05 01:26:00 +01:00
1 parent e367abf5a6
commit eac6314124
4 files changed
+19 -10

No files matched your search

@@ -21,7 +21,7 @@ public class LudicrousBlocks {
*/
public static Block resource_block;
public static Block dire_crafting;
public static Block auto_dire_crafting;
//public static Block auto_dire_crafting;
public static Block neutron_collector;
public static Block compressor;
@@ -31,8 +31,8 @@ public class LudicrousBlocks {
double_craft = GameRegistry.registerBlock(new BlockDoubleCraft(), "Double_Craft");
triple_craft = GameRegistry.registerBlock(new BlockTripleCraft(), "Triple_Craft");
dire_crafting = GameRegistry.registerBlock(new BlockDireCrafting(), "Dire_Crafting");
auto_dire_crafting =GameRegistry.registerBlock(new BlockAutoDireCrafting(), "Auto_Dire_Crafting");
GameRegistry.registerTileEntity(TileEntityDireCrafting.class, "Avaritia_Dire_Craft");
//auto_dire_crafting =GameRegistry.registerBlock(new BlockAutoDireCrafting(), "Auto_Dire_Crafting");
//GameRegistry.registerTileEntity(TileEntityDireCrafting.class, "Avaritia_Dire_Craft");
if(Config.craftingOnly)
return;
@@ -50,8 +50,8 @@ public class Grinder {
GameRegistry.addShapedRecipe(new ItemStack(LudicrousBlocks.resource_block, 1, 1), "CCC", "CCC", "CCC", 'C', new ItemStack(LudicrousItems.resource, 1, 6));
GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 9, 6), "C", 'C', new ItemStack(LudicrousBlocks.resource_block, 1, 1));
GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 13, 8), "CIC", "ICI", "CIC", 'C', new ItemStack(Blocks.coal_block, 1), 'I', new ItemStack(LudicrousItems.resource, 1, 1));
GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 1, 9), " I ", "ISI", " I ", 'I', new ItemStack(LudicrousItems.resource, 1, 4), 'S', new ItemStack(Items.stick));
//GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 13, 8), "CCC", "CIC", "CCC", 'C', new ItemStack(Blocks.coal_block, 1), 'I', new ItemStack(LudicrousItems.resource, 1, 1));
//GameRegistry.addShapedRecipe(new ItemStack(LudicrousItems.resource, 1, 9), " I ", "ISI", " I ", 'I', new ItemStack(LudicrousItems.resource, 1, 4), 'S', new ItemStack(Items.stick));
ExtremeCraftingManager.getInstance().addRecipe(new ItemStack(LudicrousBlocks.neutron_collector, 1),
"IIQQQQQII",
@@ -1,16 +1,17 @@
package fox.spiteful.avaritia.gui;
import org.lwjgl.opengl.GL11;
import fox.spiteful.avaritia.tile.TileEntityAutoDireCrafting;
import fox.spiteful.avaritia.tile.TileEntityDireCrafting;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
public class GUIAutoExtremeCrafting extends GuiContainer {
private static final ResourceLocation tex = new ResourceLocation("avaritia:textures/gui/dire_crafting_gui.png");
private static final ResourceLocation tex = new ResourceLocation("avaritia:textures/gui/dire_autocrafting_gui.png");
public GUIAutoExtremeCrafting(InventoryPlayer par1InventoryPlayer, World par2World, int x, int y, int z, TileEntityAutoDireCrafting table)
{
@@ -30,9 +31,17 @@ public class GUIAutoExtremeCrafting extends GuiContainer {
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture(tex);
/*this.mc.renderEngine.bindTexture(tex);
int foo = (this.width - this.xSize) / 2;
int bar = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(foo, bar, 0, 0, this.ySize, this.ySize);
this.drawTexturedModalRect(foo, bar, 0, 0, this.ySize, this.ySize);*/
mc.getTextureManager().bindTexture(tex);
final Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(guiLeft, guiTop, 0, 0.0, 0.0);
tessellator.addVertexWithUV(guiLeft, guiTop + xSize, 0, 0.0, 1.0);
tessellator.addVertexWithUV(guiLeft + xSize, guiTop + xSize, 0, 1.0, 1.0);
tessellator.addVertexWithUV(guiLeft + xSize, guiTop, 0, 1.0, 0.0);
tessellator.draw();
}
}