Java 类net.minecraft.inventory.ContainerDispenser 实例源码

项目:Cauldron    文件:EntityPlayerMP.java   
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);
}
项目:Resilience-Client-Source    文件:EntityPlayerMP.java   
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);
}
项目:Cauldron    文件:EntityPlayerMP.java   
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);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
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);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
/**
 * 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);
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
/**
 * 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);
}
项目:DecompiledMinecraft    文件:TileEntityDispenser.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerDispenser(playerInventory, this);
}
项目:DecompiledMinecraft    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:DecompiledMinecraft    文件:TileEntityDispenser.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerDispenser(playerInventory, this);
}
项目:BaseClient    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:BaseClient    文件:TileEntityDispenser.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerDispenser(playerInventory, this);
}
项目:BaseClient    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:BaseClient    文件:TileEntityDispenser.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerDispenser(playerInventory, this);
}
项目:Backmemed    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:Backmemed    文件:TileEntityDispenser.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    this.fillWithLoot(playerIn);
    return new ContainerDispenser(playerInventory, this);
}
项目:CustomWorldGen    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:CustomWorldGen    文件:TileEntityDispenser.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    this.fillWithLoot(playerIn);
    return new ContainerDispenser(playerInventory, this);
}
项目:CrystalMod    文件:GuiObsidianDispener.java   
public GuiObsidianDispener(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:Cyclic    文件:EntityMinecartDropper.java   
@Override
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) {
  this.addLoot(playerIn);
  return new ContainerDispenser(playerInventory, this);
}
项目:Cyclic    文件:EntityGoldMinecartDispenser.java   
@Override
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) {
  this.addLoot(playerIn);
  return new ContainerDispenser(playerInventory, this);
}
项目:Resilience-Client-Source    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer par1InventoryPlayer, TileEntityDispenser par2TileEntityDispenser)
{
    super(new ContainerDispenser(par1InventoryPlayer, par2TileEntityDispenser));
    this.field_147089_u = par2TileEntityDispenser;
}
项目:ExpandedRailsMod    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer playerInv, IInventory dispenserInv)
{
    super(new ContainerDispenser(playerInv, dispenserInv));
    this.playerInventory = playerInv;
    this.dispenserInventory = dispenserInv;
}
项目:Cauldron    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer p_i1098_1_, TileEntityDispenser p_i1098_2_)
{
    super(new ContainerDispenser(p_i1098_1_, p_i1098_2_));
    this.tileDispenser = p_i1098_2_;
}
项目:Cauldron    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer p_i1098_1_, TileEntityDispenser p_i1098_2_)
{
    super(new ContainerDispenser(p_i1098_1_, p_i1098_2_));
    this.tileDispenser = p_i1098_2_;
}
项目:RuneCraftery    文件:GuiDispenser.java   
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_;
}
项目:RuneCraftery    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer par1InventoryPlayer, TileEntityDispenser par2TileEntityDispenser)
{
    super(new ContainerDispenser(par1InventoryPlayer, par2TileEntityDispenser));
    this.theDispenser = par2TileEntityDispenser;
}
项目:BetterNutritionMod    文件:GuiDispenser.java   
public GuiDispenser(InventoryPlayer par1InventoryPlayer, TileEntityDispenser par2TileEntityDispenser)
{
    super(new ContainerDispenser(par1InventoryPlayer, par2TileEntityDispenser));
    this.theDispenser = par2TileEntityDispenser;
}