public containerBasicTraderShop( tileEntityBasicTrader tile_entity, InventoryPlayer player_inventory) { this.tile_entity = tile_entity; // battery Slot // this.addSlotToContainer(new SlotSpecific(tile_entity, 0, 154, 6, IItemElectric.class)); // Transaction Item this.addSlotToContainer(new Slot(tile_entity, 0, 80, 9)); // Gold Coin Slot this.addSlotToContainer(new Slot(tile_entity, 1, 32, 34)); // Diamond Coin Slot this.addSlotToContainer(new Slot(tile_entity, 2, 80, 34)); // Emerald Coin Slot this.addSlotToContainer(new Slot(tile_entity, 3, 125, 34)); int var3; for (var3 = 0; var3 < 3; ++var3) { for (int var4 = 0; var4 < 9; ++var4) { this.addSlotToContainer( new Slot(player_inventory, var4 + var3 * 9 + 9, 8 + var4 * 18, 84 + var3 * 18)); } } for (var3 = 0; var3 < 9; ++var3) { this.addSlotToContainer(new Slot(player_inventory, var3, 8 + var3 * 18, 142)); } tile_entity.openChest(); }
@Override public boolean canInteractWith(EntityPlayer player) { return tile_entity.isUseableByPlayer(player); }