mirror of
https://github.com/GTNewHorizons/ironchest.git
synced 2026-11-28 07:55:42 +00:00
Added support for Inventory Tweaks
This commit is contained in:
1 parent
c2646a5d69
commit
0277783f5e
1 file changed
+3
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package cpw.mods.ironchest;
|
||||
|
||||
import invtweaks.api.container.ChestContainer;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
@@ -17,6 +18,7 @@ import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
@ChestContainer(isLargeChest = true)
|
||||
public class ContainerIronChest extends Container {
|
||||
private IronChestType type;
|
||||
private EntityPlayer player;
|
||||
@@ -116,6 +118,7 @@ public class ContainerIronChest extends Container {
|
||||
return player;
|
||||
}
|
||||
|
||||
@ChestContainer.RowSizeCallback
|
||||
public int getNumColumns() {
|
||||
return type.getRowLength();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user