diff --git a/Changelog.txt b/Changelog.txt index ac3d2fe..bfe454b 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,7 @@ +1.3.9: +-Changed: Scribes are no longer picky about having the EXACT stack size for a recipe, just the minimum +-Changed: GUI for scribe - completely redesigned! :D +-Changed: Scribe is now instantaneous 1.3.8: -Added: Dependency on Forge 11.15.1.1722 or newer -Added: Capabilities Compatibility to all TileEntities diff --git a/src/main/java/com/oitsjustjose/criss_cross/container/ContainerCropomator.java b/src/main/java/com/oitsjustjose/criss_cross/container/ContainerCropomator.java index 1a731a9..c6a3f32 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/container/ContainerCropomator.java +++ b/src/main/java/com/oitsjustjose/criss_cross/container/ContainerCropomator.java @@ -29,8 +29,8 @@ public class ContainerCropomator extends Container lastProcessTime = 0; lastCatalystInUseTime = 0; - this.addSlotToContainer(new Slot(cropomator, 0, 56, 17)); // input - this.addSlotToContainer(new Slot(cropomator, 1, 56, 53)); // catalyst + this.addSlotToContainer(new Slot(cropomator, 0, 56, 35)); // input + this.addSlotToContainer(new Slot(cropomator, 1, 8, 56)); // catalyst this.addSlotToContainer(new MachineOutputSlot(player, cropomator, 2, 116, 35)); this.addInventorySlots(); } diff --git a/src/main/java/com/oitsjustjose/criss_cross/container/ContainerElectroextractor.java b/src/main/java/com/oitsjustjose/criss_cross/container/ContainerElectroextractor.java index dd85d24..ff62bfc 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/container/ContainerElectroextractor.java +++ b/src/main/java/com/oitsjustjose/criss_cross/container/ContainerElectroextractor.java @@ -29,8 +29,8 @@ public class ContainerElectroextractor extends Container lastCrushTime = 0; lastFuelTime = 0; - this.addSlotToContainer(new Slot(electroextractor, 0, 56, 17)); // input - this.addSlotToContainer(new Slot(electroextractor, 1, 56, 53)); // fuelitem + this.addSlotToContainer(new Slot(electroextractor, 0, 56, 35)); // input + this.addSlotToContainer(new Slot(electroextractor, 1, 8, 56)); // fuelitem this.addSlotToContainer(new MachineOutputSlot(player, electroextractor, 2, 116, 35)); this.addInventorySlots(); } diff --git a/src/main/java/com/oitsjustjose/criss_cross/gui/GUICropomator.java b/src/main/java/com/oitsjustjose/criss_cross/gui/GUICropomator.java index 44c6d12..4539d94 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/gui/GUICropomator.java +++ b/src/main/java/com/oitsjustjose/criss_cross/gui/GUICropomator.java @@ -13,7 +13,7 @@ import net.minecraft.util.StatCollector; public class GUICropomator extends GuiContainer { - public static final ResourceLocation backgroundTexture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/cropomator.png"); + public static final ResourceLocation texture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/cropomator.png"); private TileCropomator cropomator; @@ -34,17 +34,21 @@ public class GUICropomator extends GuiContainer protected void drawGuiContainerBackgroundLayer(float partialTickTime, int mouseX, int mouseY) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - this.mc.renderEngine.bindTexture(backgroundTexture); + this.mc.renderEngine.bindTexture(texture); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); if (this.cropomator.isUsingFuel()) { - int i1 = this.cropomator.getBurnTimeRemainingScaled(13); - this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 1); + //draws burn meter + int i1 = this.cropomator.getBurnTimeRemainingScaled(46); + //args: x, y, textureX, textureY, width, height + this.drawTexturedModalRect(k + 8, l + 51 - i1, 176, 17, 16, i1 - 1); + //draws progress bar i1 = this.cropomator.getProgressScaled(24); - this.drawTexturedModalRect(k + 79, l + 34, 176, 14, i1 + 1, 16); + //args: x, y, textureX, textureY, width, height + this.drawTexturedModalRect(k + 79, l + 34, 176, 0, i1 + 1, 16); } } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/criss_cross/gui/GUIElectroextractor.java b/src/main/java/com/oitsjustjose/criss_cross/gui/GUIElectroextractor.java index 4180612..2113840 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/gui/GUIElectroextractor.java +++ b/src/main/java/com/oitsjustjose/criss_cross/gui/GUIElectroextractor.java @@ -13,7 +13,7 @@ import net.minecraft.util.StatCollector; public class GUIElectroextractor extends GuiContainer { - public static final ResourceLocation backgroundTexture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/electroextractor.png"); + public static final ResourceLocation texture = new ResourceLocation(Lib.MODID.toLowerCase(), "textures/gui/electroextractor.png"); private TileElectroextractor electroextractor; @@ -34,17 +34,21 @@ public class GUIElectroextractor extends GuiContainer protected void drawGuiContainerBackgroundLayer(float partialTickTime, int mouseX, int mouseY) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - this.mc.renderEngine.bindTexture(backgroundTexture); + this.mc.renderEngine.bindTexture(texture); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize); if (this.electroextractor.isUsingFuel()) { - int i1 = this.electroextractor.getBurnTimeRemainingScaled(13); - this.drawTexturedModalRect(k + 56, l + 36 + 12 - i1, 176, 12 - i1, 14, i1 + 1); + //draws burn meter + int i1 = this.electroextractor.getBurnTimeRemainingScaled(46); + //args: x, y, textureX, textureY, width, height + this.drawTexturedModalRect(k + 8, l + 51 - i1, 176, 17, 16, i1 - 1); + //draws progress bar i1 = this.electroextractor.getProgressScaled(24); - this.drawTexturedModalRect(k + 79, l + 34, 176, 14, i1 + 1, 16); + //args: x, y, textureX, textureY, width, height + this.drawTexturedModalRect(k + 79, l + 34, 176, 0, i1 + 1, 16); } } } \ No newline at end of file diff --git a/src/main/java/com/oitsjustjose/criss_cross/jei/CropomatorCategory.java b/src/main/java/com/oitsjustjose/criss_cross/jei/CropomatorCategory.java index 9a30bad..5dd93bc 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/jei/CropomatorCategory.java +++ b/src/main/java/com/oitsjustjose/criss_cross/jei/CropomatorCategory.java @@ -1,7 +1,5 @@ package com.oitsjustjose.criss_cross.jei; -import javax.annotation.Nonnull; - import com.oitsjustjose.criss_cross.gui.GUICropomator; import com.oitsjustjose.criss_cross.lib.Config; import com.oitsjustjose.criss_cross.lib.Lib; @@ -22,33 +20,26 @@ public class CropomatorCategory implements IRecipeCategory private static final int OUTPUT_SLOT = 1; private static final int FUEL_SLOT = 2; - IDrawableStatic fuelDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUICropomator.backgroundTexture, 176, 0, 14, 14); - IDrawableStatic progressDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUICropomator.backgroundTexture, 177, 14, 23, 16); + IDrawableStatic fuelDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUICropomator.texture, 176, 17, 16, 46); + IDrawableStatic progressDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUICropomator.texture, 177, 0, 23, 16); - @Nonnull - private final IDrawable background = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUICropomator.backgroundTexture, 55, 16, 82, 54); - @Nonnull + private final IDrawable background = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUICropomator.texture, 7, 6, 130, 67); protected final IDrawableAnimated fuel = JEIPluginManager.jeiHelper.getGuiHelper().createAnimatedDrawable(fuelDrawable, Config.cropomatorProcessTime, IDrawableAnimated.StartDirection.TOP, true); - @Nonnull protected final IDrawableAnimated progress = JEIPluginManager.jeiHelper.getGuiHelper().createAnimatedDrawable(progressDrawable, Config.cropomatorProcessTime, IDrawableAnimated.StartDirection.LEFT, false); - @Nonnull private final String localizedName = StatCollector.translateToLocal("recipe.cropomator"); - @Nonnull @Override public String getUid() { return Lib.CROPOMATOR_UID; } - @Nonnull @Override public String getTitle() { return localizedName; } - @Nonnull @Override public IDrawable getBackground() { @@ -64,18 +55,16 @@ public class CropomatorCategory implements IRecipeCategory @Override public void drawAnimations(Minecraft minecraft) { - fuel.draw(minecraft, 1, 20); - progress.draw(minecraft, 25, 18); + fuel.draw(minecraft, 1, 0); + progress.draw(minecraft, 73, 28); } @Override - @SuppressWarnings("unchecked") - public void setRecipe(@Nonnull IRecipeLayout recipeLayout, @Nonnull IRecipeWrapper recipeWrapper) + public void setRecipe(IRecipeLayout recipeLayout, IRecipeWrapper recipeWrapper) { - - recipeLayout.getItemStacks().init(INPUT_SLOT, true, 0, 0); - recipeLayout.getItemStacks().init(OUTPUT_SLOT, false, 60, 18); - recipeLayout.getItemStacks().init(FUEL_SLOT, true, 0, 36); + recipeLayout.getItemStacks().init(INPUT_SLOT, true, 48, 28); + recipeLayout.getItemStacks().init(OUTPUT_SLOT, false, 108, 28); + recipeLayout.getItemStacks().init(FUEL_SLOT, true, 0, 49); if (recipeWrapper instanceof CropomatorRecipeJEI) { diff --git a/src/main/java/com/oitsjustjose/criss_cross/jei/ElectroextractorCategory.java b/src/main/java/com/oitsjustjose/criss_cross/jei/ElectroextractorCategory.java index b83ed37..9554f0b 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/jei/ElectroextractorCategory.java +++ b/src/main/java/com/oitsjustjose/criss_cross/jei/ElectroextractorCategory.java @@ -1,7 +1,5 @@ package com.oitsjustjose.criss_cross.jei; -import javax.annotation.Nonnull; - import com.oitsjustjose.criss_cross.gui.GUIElectroextractor; import com.oitsjustjose.criss_cross.lib.Config; import com.oitsjustjose.criss_cross.lib.Lib; @@ -22,33 +20,26 @@ public class ElectroextractorCategory implements IRecipeCategory private static final int OUTPUT_SLOT = 1; private static final int FUEL_SLOT = 2; - IDrawableStatic fuelDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIElectroextractor.backgroundTexture, 176, 0, 14, 14); - IDrawableStatic progressDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIElectroextractor.backgroundTexture, 177, 14, 23, 16); + IDrawableStatic fuelDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIElectroextractor.texture, 176, 17, 16, 46); + IDrawableStatic progressDrawable = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIElectroextractor.texture, 177, 0, 23, 16); - @Nonnull + private final IDrawable background = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIElectroextractor.texture, 7, 6, 130, 67); protected final IDrawableAnimated fuel = JEIPluginManager.jeiHelper.getGuiHelper().createAnimatedDrawable(fuelDrawable, Config.electroextractorProcessTime, IDrawableAnimated.StartDirection.TOP, true); - @Nonnull protected final IDrawableAnimated progress = JEIPluginManager.jeiHelper.getGuiHelper().createAnimatedDrawable(progressDrawable, Config.electroextractorProcessTime, IDrawableAnimated.StartDirection.LEFT, false); - @Nonnull - private final IDrawable background = JEIPluginManager.jeiHelper.getGuiHelper().createDrawable(GUIElectroextractor.backgroundTexture, 55, 16, 82, 54); - @Nonnull private final String localizedName = StatCollector.translateToLocal("recipe.electroextractor"); - @Nonnull @Override public String getUid() { return Lib.ELECTROEXTRACTOR_UID; } - @Nonnull @Override public String getTitle() { return localizedName; } - @Nonnull @Override public IDrawable getBackground() { @@ -64,18 +55,16 @@ public class ElectroextractorCategory implements IRecipeCategory @Override public void drawAnimations(Minecraft minecraft) { - fuel.draw(minecraft, 1, 20); - progress.draw(minecraft, 25, 18); + fuel.draw(minecraft, 1, 0); + progress.draw(minecraft, 73, 28); } @Override - @SuppressWarnings("unchecked") - public void setRecipe(@Nonnull IRecipeLayout recipeLayout, @Nonnull IRecipeWrapper recipeWrapper) + public void setRecipe(IRecipeLayout recipeLayout, IRecipeWrapper recipeWrapper) { - - recipeLayout.getItemStacks().init(INPUT_SLOT, true, 0, 0); - recipeLayout.getItemStacks().init(OUTPUT_SLOT, false, 60, 18); - recipeLayout.getItemStacks().init(FUEL_SLOT, true, 0, 36); + recipeLayout.getItemStacks().init(INPUT_SLOT, true, 48, 28); + recipeLayout.getItemStacks().init(OUTPUT_SLOT, false, 108, 28); + recipeLayout.getItemStacks().init(FUEL_SLOT, true, 0, 49); if (recipeWrapper instanceof ElectroextractorRecipeJEI) { diff --git a/src/main/java/com/oitsjustjose/criss_cross/jei/WoodchipperRecipeMaker.java b/src/main/java/com/oitsjustjose/criss_cross/jei/WoodchipperRecipeMaker.java index 7528b4d..c49d7a1 100644 --- a/src/main/java/com/oitsjustjose/criss_cross/jei/WoodchipperRecipeMaker.java +++ b/src/main/java/com/oitsjustjose/criss_cross/jei/WoodchipperRecipeMaker.java @@ -4,15 +4,12 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import javax.annotation.Nonnull; - import com.oitsjustjose.criss_cross.recipes.machine.WoodchipperRecipes; import net.minecraft.item.ItemStack; public class WoodchipperRecipeMaker { - @Nonnull public static List getRecipes() { Map woodchipperMap = WoodchipperRecipes.getInstance().getRecipeList(); diff --git a/src/main/resources/assets/crisscross/textures/gui/cropomator.png b/src/main/resources/assets/crisscross/textures/gui/cropomator.png index 1586ab7..9af0ca9 100644 Binary files a/src/main/resources/assets/crisscross/textures/gui/cropomator.png and b/src/main/resources/assets/crisscross/textures/gui/cropomator.png differ diff --git a/src/main/resources/assets/crisscross/textures/gui/electroextractor.png b/src/main/resources/assets/crisscross/textures/gui/electroextractor.png index 0440995..dae3d8a 100644 Binary files a/src/main/resources/assets/crisscross/textures/gui/electroextractor.png and b/src/main/resources/assets/crisscross/textures/gui/electroextractor.png differ