本文整理汇总了Java中net.minecraft.inventory.ContainerBeacon类的典型用法代码示例。如果您正苦于以下问题:Java ContainerBeacon类的具体用法?Java ContainerBeacon怎么用?Java ContainerBeacon使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ContainerBeacon类属于net.minecraft.inventory包,在下文中一共展示了ContainerBeacon类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_146104_a
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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);
}
示例2: GuiBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
public GuiBeacon(InventoryPlayer playerInventory, IInventory tileBeaconIn)
{
super(new ContainerBeacon(playerInventory, tileBeaconIn));
this.tileBeacon = tileBeaconIn;
this.xSize = 230;
this.ySize = 219;
}
示例3: func_146104_a
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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);
}
示例4: GuiBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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;
}
示例5: GuiBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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;
}
示例6: func_146104_a
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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);
}
示例7: func_82240_a
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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);
}
示例8: displayGUIBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
/**
* 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);
}
示例9: GuiBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
public GuiBeacon(InventoryPlayer par1InventoryPlayer, TileEntityBeacon par2TileEntityBeacon)
{
super(new ContainerBeacon(par1InventoryPlayer, par2TileEntityBeacon));
this.beacon = par2TileEntityBeacon;
this.xSize = 230;
this.ySize = 219;
}
示例10: createContainer
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
return new ContainerBeacon(playerInventory, this);
}
示例11: createContainer
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) {
return new ContainerBeacon(playerInventory, this);
}
示例12: SlotBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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_;
}
示例13: GuiBeacon
import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
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;
}