diff options
| author | Lance5057 <Lance5057@gmail.com> | 2017-08-22 01:35:44 -0500 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2017-08-22 01:35:44 -0500 |
| commit | 6af565ab07a802518345df7f06772df56f6e205f (patch) | |
| tree | 22583ec6d1b519eba68e0471e90f310f249819f0 /src/main/java/lance5057/tDefense/armor | |
| parent | ae504d76e9cc77465978cea71759f85d55c7e0da (diff) | |
1.4.1.1a update
Diffstat (limited to 'src/main/java/lance5057/tDefense/armor')
| -rw-r--r-- | src/main/java/lance5057/tDefense/armor/items/straps/StrapsContainer.java | 11 | ||||
| -rw-r--r-- | src/main/java/lance5057/tDefense/armor/items/straps/StrapsGui.java | 3 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/main/java/lance5057/tDefense/armor/items/straps/StrapsContainer.java b/src/main/java/lance5057/tDefense/armor/items/straps/StrapsContainer.java index 7d5b408..96a2aed 100644 --- a/src/main/java/lance5057/tDefense/armor/items/straps/StrapsContainer.java +++ b/src/main/java/lance5057/tDefense/armor/items/straps/StrapsContainer.java @@ -33,16 +33,7 @@ public class StrapsContainer extends Container // ITEM INVENTORY - you'll need to adjust the slot locations to match your texture file // I have them set vertically in columns of 4 to the right of the player model - for (i = 0; i < ItemStrapsInv.INVSIZE; ++i) - { - // You can make a custom Slot if you need different behavior, - // such as only certain item types can be put into this slot - // We made a custom slot to prevent our inventory-storing item - // from being stored within itself, but if you want to allow that and - // you followed my advice at the end of the above step, then you - // could get away with using the vanilla Slot class - this.addSlotToContainer(new Slot(this.inventory, i, 80 + (18 * (int)(i/4)), 8 + (18*(i%4)))); - } + this.addSlotToContainer(new Slot(this.inventory, 0, 80, 8+23)); // If you want, you can add ARMOR SLOTS here as well, but you need to // make a public version of SlotArmor. I won't be doing that in this tutorial. diff --git a/src/main/java/lance5057/tDefense/armor/items/straps/StrapsGui.java b/src/main/java/lance5057/tDefense/armor/items/straps/StrapsGui.java index acd6868..5cd229e 100644 --- a/src/main/java/lance5057/tDefense/armor/items/straps/StrapsGui.java +++ b/src/main/java/lance5057/tDefense/armor/items/straps/StrapsGui.java @@ -3,6 +3,7 @@ package lance5057.tDefense.armor.items.straps; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; +import lance5057.tDefense.Reference; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.RenderHelper; @@ -24,7 +25,7 @@ public class StrapsGui extends GuiContainer * I have provided a sample texture file that works with this tutorial. Download it * from Forge_Tutorials/textures/gui/ */ - private static final ResourceLocation iconLocation = new ResourceLocation("inventoryitemmod", "textures/gui/inventoryitem.png"); + private static final ResourceLocation iconLocation = new ResourceLocation(Reference.MOD_ID, "textures/gui/straps_helm.png"); /** The inventory to render on screen */ private final ItemStrapsInv inventory; |
