Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 33 lines 866 B view raw
1package net.minecraft.server; 2 3public class ContainerDispenser extends Container { 4 5 private TileEntityDispenser a; 6 7 public ContainerDispenser(IInventory iinventory, TileEntityDispenser tileentitydispenser) { 8 this.a = tileentitydispenser; 9 10 int i; 11 int j; 12 13 for (i = 0; i < 3; ++i) { 14 for (j = 0; j < 3; ++j) { 15 this.a(new Slot(tileentitydispenser, j + i * 3, 62 + j * 18, 17 + i * 18)); 16 } 17 } 18 19 for (i = 0; i < 3; ++i) { 20 for (j = 0; j < 9; ++j) { 21 this.a(new Slot(iinventory, j + i * 9 + 9, 8 + j * 18, 84 + i * 18)); 22 } 23 } 24 25 for (i = 0; i < 9; ++i) { 26 this.a(new Slot(iinventory, i, 8 + i * 18, 142)); 27 } 28 } 29 30 public boolean b(EntityHuman entityhuman) { 31 return this.a.a_(entityhuman); 32 } 33}