当前位置: 首页>>代码示例>>Java>>正文


Java ContainerBeacon类代码示例

本文整理汇总了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);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:19,代码来源:EntityPlayerMP.java

示例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;
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:GuiBeacon.java

示例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);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:9,代码来源:EntityPlayerMP.java

示例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;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:8,代码来源:GuiBeacon.java

示例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;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:8,代码来源:GuiBeacon.java

示例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);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:9,代码来源:EntityPlayerMP.java

示例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);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:EntityPlayerMP.java

示例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);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:12,代码来源:EntityPlayerMP.java

示例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;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:GuiBeacon.java

示例10: createContainer

import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn)
{
    return new ContainerBeacon(playerInventory, this);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:TileEntityBeacon.java

示例11: createContainer

import net.minecraft.inventory.ContainerBeacon; //导入依赖的package包/类
public Container createContainer(InventoryPlayer playerInventory, EntityPlayer playerIn) {
  return new ContainerBeacon(playerInventory, this);
}
 
开发者ID:PrinceOfAmber,项目名称:Cyclic,代码行数:4,代码来源:TileEntityBeaconPowered.java

示例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_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:SlotBeacon.java

示例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;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:GuiBeacon.java


注:本文中的net.minecraft.inventory.ContainerBeacon类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。