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

项目:Cauldron    文件:EntityPlayerMP.java   
public void func_146093_a(TileEntityHopper p_146093_1_)
{
    // CraftBukkit start - Inventory open hook
    Container container = CraftEventFactory.callInventoryOpenEvent(this, new ContainerHopper(this.inventory, p_146093_1_));

    if (container == null)
    {
        p_146093_1_.closeInventory(); // Cauldron - prevent chest from being stuck in open state on clients
        return;
    }

    // CraftBukkit end
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 9, p_146093_1_.getInventoryName(), p_146093_1_.getSizeInventory(), p_146093_1_.hasCustomInventoryName()));
    this.openContainer = container; // CraftBukkit - Use container we passed to event
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_)
{
    // CraftBukkit start - Inventory open hook
    Container container = CraftEventFactory.callInventoryOpenEvent(this, new ContainerHopper(this.inventory, p_96125_1_));

    if (container == null)
    {
        p_96125_1_.closeInventory(); // Cauldron - prevent chest from being stuck in open state on clients
        return;
    }

    // CraftBukkit end
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 9, p_96125_1_.getInventoryName(), p_96125_1_.getSizeInventory(), p_96125_1_.hasCustomInventoryName()));
    this.openContainer = container; // CraftBukkit - Use container we passed to event
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:DecompiledMinecraft    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer playerInv, IInventory hopperInv)
{
    super(new ContainerHopper(playerInv, hopperInv, Minecraft.getMinecraft().thePlayer));
    this.playerInventory = playerInv;
    this.hopperInventory = hopperInv;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:BaseClient    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer playerInv, IInventory hopperInv)
{
    super(new ContainerHopper(playerInv, hopperInv, Minecraft.getMinecraft().thePlayer));
    this.playerInventory = playerInv;
    this.hopperInventory = hopperInv;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:BaseClient    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer playerInv, IInventory hopperInv)
{
    super(new ContainerHopper(playerInv, hopperInv, Minecraft.getMinecraft().thePlayer));
    this.playerInventory = playerInv;
    this.hopperInventory = hopperInv;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:Backmemed    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer playerInv, IInventory hopperInv)
{
    super(new ContainerHopper(playerInv, hopperInv, Minecraft.getMinecraft().player));
    this.playerInventory = playerInv;
    this.hopperInventory = hopperInv;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:CustomWorldGen    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer playerInv, IInventory hopperInv)
{
    super(new ContainerHopper(playerInv, hopperInv, Minecraft.getMinecraft().thePlayer));
    this.playerInventory = playerInv;
    this.hopperInventory = hopperInv;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:Resilience-Client-Source    文件:EntityPlayerMP.java   
public void func_146093_a(TileEntityHopper p_146093_1_)
{
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 9, p_146093_1_.getInventoryName(), p_146093_1_.getSizeInventory(), p_146093_1_.isInventoryNameLocalized()));
    this.openContainer = new ContainerHopper(this.inventory, p_146093_1_);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Resilience-Client-Source    文件:EntityPlayerMP.java   
public void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
{
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 9, par1EntityMinecartHopper.getInventoryName(), par1EntityMinecartHopper.getSizeInventory(), par1EntityMinecartHopper.isInventoryNameLocalized()));
    this.openContainer = new ContainerHopper(this.inventory, par1EntityMinecartHopper);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Resilience-Client-Source    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer par1InventoryPlayer, IInventory par2IInventory)
{
    super(new ContainerHopper(par1InventoryPlayer, par2IInventory));
    this.field_147084_v = par1InventoryPlayer;
    this.field_147083_w = par2IInventory;
    this.field_146291_p = false;
    this.field_147000_g = 133;
}
项目:ExpandedRailsMod    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer playerInv, IInventory hopperInv)
{
    super(new ContainerHopper(playerInv, hopperInv, Minecraft.getMinecraft().thePlayer));
    this.playerInventory = playerInv;
    this.hopperInventory = hopperInv;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:Cauldron    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer p_i1092_1_, IInventory p_i1092_2_)
{
    super(new ContainerHopper(p_i1092_1_, p_i1092_2_));
    this.field_147084_v = p_i1092_1_;
    this.field_147083_w = p_i1092_2_;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void func_146093_a(TileEntityHopper p_146093_1_)
{
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 9, p_146093_1_.getInventoryName(), p_146093_1_.getSizeInventory(), p_146093_1_.hasCustomInventoryName()));
    this.openContainer = new ContainerHopper(this.inventory, p_146093_1_);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void displayGUIHopperMinecart(EntityMinecartHopper p_96125_1_)
{
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 9, p_96125_1_.getInventoryName(), p_96125_1_.getSizeInventory(), p_96125_1_.hasCustomInventoryName()));
    this.openContainer = new ContainerHopper(this.inventory, p_96125_1_);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Cauldron    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer p_i1092_1_, IInventory p_i1092_2_)
{
    super(new ContainerHopper(p_i1092_1_, p_i1092_2_));
    this.field_147084_v = p_i1092_1_;
    this.field_147083_w = p_i1092_2_;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void func_94064_a(TileEntityHopper p_94064_1_) {
   this.func_71117_bO();
   this.field_71135_a.func_72567_b(new Packet100OpenWindow(this.field_71139_cq, 9, p_94064_1_.func_70303_b(), p_94064_1_.func_70302_i_(), p_94064_1_.func_94042_c()));
   this.field_71070_bA = new ContainerHopper(this.field_71071_by, p_94064_1_);
   this.field_71070_bA.field_75152_c = this.field_71139_cq;
   this.field_71070_bA.func_75132_a(this);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void func_96125_a(EntityMinecartHopper p_96125_1_) {
   this.func_71117_bO();
   this.field_71135_a.func_72567_b(new Packet100OpenWindow(this.field_71139_cq, 9, p_96125_1_.func_70303_b(), p_96125_1_.func_70302_i_(), p_96125_1_.func_94042_c()));
   this.field_71070_bA = new ContainerHopper(this.field_71071_by, p_96125_1_);
   this.field_71070_bA.field_75152_c = this.field_71139_cq;
   this.field_71070_bA.func_75132_a(this);
}
项目:RuneCraftery    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer p_i1092_1_, IInventory p_i1092_2_) {
   super(new ContainerHopper(p_i1092_1_, p_i1092_2_));
   this.field_94081_r = p_i1092_1_;
   this.field_94080_s = p_i1092_2_;
   this.field_73885_j = false;
   this.field_74195_c = 133;
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void displayGUIHopper(TileEntityHopper par1TileEntityHopper)
{
    this.incrementWindowID();
    this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, 9, par1TileEntityHopper.getInvName(), par1TileEntityHopper.getSizeInventory(), par1TileEntityHopper.isInvNameLocalized()));
    this.openContainer = new ContainerHopper(this.inventory, par1TileEntityHopper);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
{
    this.incrementWindowID();
    this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, 9, par1EntityMinecartHopper.getInvName(), par1EntityMinecartHopper.getSizeInventory(), par1EntityMinecartHopper.isInvNameLocalized()));
    this.openContainer = new ContainerHopper(this.inventory, par1EntityMinecartHopper);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:RuneCraftery    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer par1InventoryPlayer, IInventory par2IInventory)
{
    super(new ContainerHopper(par1InventoryPlayer, par2IInventory));
    this.field_94081_r = par1InventoryPlayer;
    this.field_94080_s = par2IInventory;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
public void displayGUIHopper(TileEntityHopper par1TileEntityHopper)
{
    this.incrementWindowID();
    this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, 9, par1TileEntityHopper.getInvName(), par1TileEntityHopper.getSizeInventory(), par1TileEntityHopper.isInvNameLocalized()));
    this.openContainer = new ContainerHopper(this.inventory, par1TileEntityHopper);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
public void displayGUIHopperMinecart(EntityMinecartHopper par1EntityMinecartHopper)
{
    this.incrementWindowID();
    this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, 9, par1EntityMinecartHopper.getInvName(), par1EntityMinecartHopper.getSizeInventory(), par1EntityMinecartHopper.isInvNameLocalized()));
    this.openContainer = new ContainerHopper(this.inventory, par1EntityMinecartHopper);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:BetterNutritionMod    文件:GuiHopper.java   
public GuiHopper(InventoryPlayer par1InventoryPlayer, IInventory par2IInventory)
{
    super(new ContainerHopper(par1InventoryPlayer, par2IInventory));
    this.field_94081_r = par1InventoryPlayer;
    this.field_94080_s = par2IInventory;
    this.allowUserInput = false;
    this.ySize = 133;
}
项目:DecompiledMinecraft    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:DecompiledMinecraft    文件:TileEntityHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:DecompiledMinecraft    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:DecompiledMinecraft    文件:TileEntityHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:BaseClient    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:BaseClient    文件:TileEntityHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:BaseClient    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:BaseClient    文件:TileEntityHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:Backmemed    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:Backmemed    文件:TileEntityHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    this.fillWithLoot(playerIn);
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:CustomWorldGen    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:CustomWorldGen    文件:TileEntityHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    this.fillWithLoot(playerIn);
    return new ContainerHopper(playerInventory, this, playerIn);
}
项目:ExpandedRailsMod    文件:EntityMinecartHopper.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerHopper(playerInventory, this, playerIn);
}