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

项目:Cauldron    文件:EntityPlayerMP.java   
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
    // CraftBukkit start - Inventory open hook
    Container container = CraftEventFactory.callInventoryOpenEvent(this, new ContainerBeacon(this.inventory, p_146104_1_));

    if (container == null)
    {
        p_146104_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, 7, p_146104_1_.getInventoryName(), p_146104_1_.getSizeInventory(), p_146104_1_.hasCustomInventoryName()));
    this.openContainer = container; // CraftBukkit - Use container we passed to event
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:DecompiledMinecraft    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
    super(new ContainerBeacon(playerInventory, tileBeaconIn));
    this.tileBeacon = tileBeaconIn;
    this.xSize = 230;
    this.ySize = 219;
}
项目:BaseClient    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
    super(new ContainerBeacon(playerInventory, tileBeaconIn));
    this.tileBeacon = tileBeaconIn;
    this.xSize = 230;
    this.ySize = 219;
}
项目:BaseClient    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
    super(new ContainerBeacon(playerInventory, tileBeaconIn));
    this.tileBeacon = tileBeaconIn;
    this.xSize = 230;
    this.ySize = 219;
}
项目:Backmemed    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
    super(new ContainerBeacon(playerInventory, tileBeaconIn));
    this.tileBeacon = tileBeaconIn;
    this.xSize = 230;
    this.ySize = 219;
}
项目:CustomWorldGen    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
    super(new ContainerBeacon(playerInventory, tileBeaconIn));
    this.tileBeacon = tileBeaconIn;
    this.xSize = 230;
    this.ySize = 219;
}
项目:Resilience-Client-Source    文件:EntityPlayerMP.java   
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 7, p_146104_1_.getInventoryName(), p_146104_1_.getSizeInventory(), p_146104_1_.isInventoryNameLocalized()));
    this.openContainer = new ContainerBeacon(this.inventory, p_146104_1_);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Resilience-Client-Source    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer par1InventoryPlayer, TileEntityBeacon par2TileEntityBeacon)
{
    super(new ContainerBeacon(par1InventoryPlayer, par2TileEntityBeacon));
    this.field_147024_w = par2TileEntityBeacon;
    this.field_146999_f = 230;
    this.field_147000_g = 219;
}
项目:ExpandedRailsMod    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
    super(new ContainerBeacon(playerInventory, tileBeaconIn));
    this.tileBeacon = tileBeaconIn;
    this.xSize = 230;
    this.ySize = 219;
}
项目:Cauldron    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer p_i1078_1_, TileEntityBeacon p_i1078_2_)
{
    super(new ContainerBeacon(p_i1078_1_, p_i1078_2_));
    this.tileBeacon = p_i1078_2_;
    this.xSize = 230;
    this.ySize = 219;
}
项目:Cauldron    文件:EntityPlayerMP.java   
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
    this.getNextWindowId();
    this.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(this.currentWindowId, 7, p_146104_1_.getInventoryName(), p_146104_1_.getSizeInventory(), p_146104_1_.hasCustomInventoryName()));
    this.openContainer = new ContainerBeacon(this.inventory, p_146104_1_);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:Cauldron    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer p_i1078_1_, TileEntityBeacon p_i1078_2_)
{
    super(new ContainerBeacon(p_i1078_1_, p_i1078_2_));
    this.tileBeacon = p_i1078_2_;
    this.xSize = 230;
    this.ySize = 219;
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
public void func_82240_a(TileEntityBeacon p_82240_1_) {
   this.func_71117_bO();
   this.field_71135_a.func_72567_b(new Packet100OpenWindow(this.field_71139_cq, 7, p_82240_1_.func_70303_b(), p_82240_1_.func_70302_i_(), p_82240_1_.func_94042_c()));
   this.field_71070_bA = new ContainerBeacon(this.field_71071_by, p_82240_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 GUI for interacting with a beacon.
 */
public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
{
    this.incrementWindowID();
    this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, 7, par1TileEntityBeacon.getInvName(), par1TileEntityBeacon.getSizeInventory(), par1TileEntityBeacon.isInvNameLocalized()));
    this.openContainer = new ContainerBeacon(this.inventory, par1TileEntityBeacon);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:RuneCraftery    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer par1InventoryPlayer, TileEntityBeacon par2TileEntityBeacon)
{
    super(new ContainerBeacon(par1InventoryPlayer, par2TileEntityBeacon));
    this.beacon = par2TileEntityBeacon;
    this.xSize = 230;
    this.ySize = 219;
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
/**
 * Displays the GUI for interacting with a beacon.
 */
public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
{
    this.incrementWindowID();
    this.playerNetServerHandler.sendPacketToPlayer(new Packet100OpenWindow(this.currentWindowId, 7, par1TileEntityBeacon.getInvName(), par1TileEntityBeacon.getSizeInventory(), par1TileEntityBeacon.isInvNameLocalized()));
    this.openContainer = new ContainerBeacon(this.inventory, par1TileEntityBeacon);
    this.openContainer.windowId = this.currentWindowId;
    this.openContainer.addCraftingToCrafters(this);
}
项目:BetterNutritionMod    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer par1InventoryPlayer, TileEntityBeacon par2TileEntityBeacon)
{
    super(new ContainerBeacon(par1InventoryPlayer, par2TileEntityBeacon));
    this.beacon = par2TileEntityBeacon;
    this.xSize = 230;
    this.ySize = 219;
}
项目:DecompiledMinecraft    文件:TileEntityBeacon.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
项目:DecompiledMinecraft    文件:TileEntityBeacon.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
项目:BaseClient    文件:TileEntityBeacon.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
项目:BaseClient    文件:TileEntityBeacon.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
项目:Backmemed    文件:TileEntityBeacon.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
项目:CustomWorldGen    文件:TileEntityBeacon.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
项目:Cyclic    文件:TileEntityBeaconPowered.java   
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) {
  return new ContainerBeacon(playerInventory, this);
}
项目:RuneCraftery    文件:SlotBeacon.java   
public SlotBeacon(ContainerBeacon p_i1801_1_, IInventory p_i1801_2_, int p_i1801_3_, int p_i1801_4_, int p_i1801_5_) {
   super(p_i1801_2_, p_i1801_3_, p_i1801_4_, p_i1801_5_);
   this.field_82876_a = p_i1801_1_;
}
项目:RuneCraftery    文件:GuiBeacon.java   
public GuiBeacon(InventoryPlayer p_i1078_1_, TileEntityBeacon p_i1078_2_) {
   super(new ContainerBeacon(p_i1078_1_, p_i1078_2_));
   this.field_82323_o = p_i1078_2_;
   this.field_74194_b = 230;
   this.field_74195_c = 219;
}