public void func_146102_a(TileEntityDispenser p_146102_1_) { // CraftBukkit start - Inventory open hook Container container = CraftEventFactory.callInventoryOpenEvent(this, new ContainerDispenser(this.inventory, p_146102_1_)); if (container == null) { p_146102_1_.closeInventory(); // Cauldron - prevent chests from being stuck in open state on clients return; } // CraftBukkit end this.getNextWindowId(); this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, p_146102_1_ instanceof TileEntityDropper ? 10 : 3, p_146102_1_.getInventoryName(), p_146102_1_.getSizeInventory(), p_146102_1_.hasCustomInventoryName())); this.openContainer = container; // CraftBukkit - Use container we passed to event this.openContainer.windowId = this.currentWindowId; this.openContainer.addCraftingToCrafters(this); }
public void func_146102_a(TileEntityDispenser p_146102_1_) { this.getNextWindowId(); this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, p_146102_1_ instanceof TileEntityDropper ? 10 : 3, p_146102_1_.getInventoryName(), p_146102_1_.getSizeInventory(), p_146102_1_.isInventoryNameLocalized())); this.openContainer = new ContainerDispenser(this.inventory, p_146102_1_); this.openContainer.windowId = this.currentWindowId; this.openContainer.addCraftingToCrafters(this); }
public void func_146102_a(TileEntityDispenser p_146102_1_) { this.getNextWindowId(); this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, p_146102_1_ instanceof TileEntityDropper ? 10 : 3, p_146102_1_.getInventoryName(), p_146102_1_.getSizeInventory(), p_146102_1_.hasCustomInventoryName())); this.openContainer = new ContainerDispenser(this.inventory, p_146102_1_); this.openContainer.windowId = this.currentWindowId; this.openContainer.addCraftingToCrafters(this); }
public void func_71006_a(TileEntityDispenser p_71006_1_) { this.func_71117_bO(); this.field_71135_a.func_72567_b(new Packet100OpenWindow(this.field_71139_cq, p_71006_1_ instanceof TileEntityDropper?10:3, p_71006_1_.func_70303_b(), p_71006_1_.func_70302_i_(), p_71006_1_.func_94042_c())); this.field_71070_bA = new ContainerDispenser(this.field_71071_by, p_71006_1_); this.field_71070_bA.field_75152_c = this.field_71139_cq; this.field_71070_bA.func_75132_a(this); }
/** * Displays the dipsenser GUI for the passed in dispenser entity. Args: TileEntityDispenser */ public void displayGUIDispenser(TileEntityDispenser par1TileEntityDispenser) { this.incrementWindowID(); this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, par1TileEntityDispenser instanceof TileEntityDropper ? 10 : 3, par1TileEntityDispenser.getInvName(), par1TileEntityDispenser.getSizeInventory(), par1TileEntityDispenser.isInvNameLocalized())); this.openContainer = new ContainerDispenser(this.inventory, par1TileEntityDispenser); this.openContainer.windowId = this.currentWindowId; this.openContainer.addCraftingToCrafters(this); }
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) { return new ContainerDispenser(playerInventory, this); }
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv) { super(new ContainerDispenser(playerInv, dispenserInv)); this.playerInventory = playerInv; this.dispenserInventory = dispenserInv; }
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) { this.fillWithLoot(playerIn); return new ContainerDispenser(playerInventory, this); }
public GuiObsidianDispener(InventoryPlayer playerInv, IInventory dispenserInv) { super(new ContainerDispenser(playerInv, dispenserInv)); this.playerInventory = playerInv; this.dispenserInventory = dispenserInv; }
@Override public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) { this.addLoot(playerIn); return new ContainerDispenser(playerInventory, this); }
public GuiDispenser(InventoryPlayer par1InventoryPlayer, TileEntityDispenser par2TileEntityDispenser) { super(new ContainerDispenser(par1InventoryPlayer, par2TileEntityDispenser)); this.field_147089_u = par2TileEntityDispenser; }
public GuiDispenser(InventoryPlayer p_i1098_1_, TileEntityDispenser p_i1098_2_) { super(new ContainerDispenser(p_i1098_1_, p_i1098_2_)); this.tileDispenser = p_i1098_2_; }
public GuiDispenser(InventoryPlayer p_i1098_1_, TileEntityDispenser p_i1098_2_) { super(new ContainerDispenser(p_i1098_1_, p_i1098_2_)); this.field_94078_r = p_i1098_2_; }
public GuiDispenser(InventoryPlayer par1InventoryPlayer, TileEntityDispenser par2TileEntityDispenser) { super(new ContainerDispenser(par1InventoryPlayer, par2TileEntityDispenser)); this.theDispenser = par2TileEntityDispenser; }