• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java GuiBeacon类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.client.gui.inventory.GuiBeacon的典型用法代码示例。如果您正苦于以下问题:Java GuiBeacon类的具体用法?Java GuiBeacon怎么用?Java GuiBeacon使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GuiBeacon类属于net.minecraft.client.gui.inventory包,在下文中一共展示了GuiBeacon类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: displayGUIChest

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
/**
 * Displays the GUI for interacting with a chest inventory. Args: chestInventory
 */
public void displayGUIChest(IInventory chestInventory) {
	String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject) chestInventory).getGuiID()
			: "minecraft:container";

	if ("minecraft:chest".equals(s)) {
		this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
	} else if ("minecraft:hopper".equals(s)) {
		this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory));
	} else if ("minecraft:furnace".equals(s)) {
		this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory));
	} else if ("minecraft:brewing_stand".equals(s)) {
		this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory));
	} else if ("minecraft:beacon".equals(s)) {
		this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory));
	} else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s)) {
		this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
	} else {
		this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory));
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:24,代码来源:EntityPlayerSP.java


示例2: func_73737_a

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
public void func_73737_a(Minecraft p_73737_1_, int p_73737_2_, int p_73737_3_) {
   if(this.field_73748_h) {
      p_73737_1_.func_110434_K().func_110577_a(GuiBeacon.func_110427_g());
      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
      this.field_82253_i = p_73737_2_ >= this.field_73746_c && p_73737_3_ >= this.field_73743_d && p_73737_2_ < this.field_73746_c + this.field_73747_a && p_73737_3_ < this.field_73743_d + this.field_73745_b;
      short var4 = 219;
      int var5 = 0;
      if(!this.field_73742_g) {
         var5 += this.field_73747_a * 2;
      } else if(this.field_82256_n) {
         var5 += this.field_73747_a * 1;
      } else if(this.field_82253_i) {
         var5 += this.field_73747_a * 3;
      }

      this.func_73729_b(this.field_73746_c, this.field_73743_d, var5, var4, this.field_73747_a, this.field_73745_b);
      if(!GuiBeacon.func_110427_g().equals(this.field_82259_k)) {
         p_73737_1_.func_110434_K().func_110577_a(this.field_82259_k);
      }

      this.func_73729_b(this.field_73746_c + 2, this.field_73743_d + 2, this.field_82257_l, this.field_82258_m, 18, 18);
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:24,代码来源:GuiBeaconButton.java


示例3: displayGUIChest

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
/**
 * Displays the GUI for interacting with a chest inventory. Args: chestInventory
 */
public void displayGUIChest(IInventory chestInventory)
{
    String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject)chestInventory).getGuiID() : "minecraft:container";

    if ("minecraft:chest".equals(s))
    {
        this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
    }
    else if ("minecraft:hopper".equals(s))
    {
        this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory));
    }
    else if ("minecraft:furnace".equals(s))
    {
        this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory));
    }
    else if ("minecraft:brewing_stand".equals(s))
    {
        this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory));
    }
    else if ("minecraft:beacon".equals(s))
    {
        this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory));
    }
    else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s))
    {
        this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
    }
    else
    {
        this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory));
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:37,代码来源:EntityPlayerSP.java


示例4: displayGUIChest

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
/**
 * Displays the GUI for interacting with a chest inventory.
 */
public void displayGUIChest(IInventory chestInventory)
{
    String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject)chestInventory).getGuiID() : "minecraft:container";

    if ("minecraft:chest".equals(s))
    {
        this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
    }
    else if ("minecraft:hopper".equals(s))
    {
        this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory));
    }
    else if ("minecraft:furnace".equals(s))
    {
        this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory));
    }
    else if ("minecraft:brewing_stand".equals(s))
    {
        this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory));
    }
    else if ("minecraft:beacon".equals(s))
    {
        this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory));
    }
    else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s))
    {
        this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
    }
    else
    {
        this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory));
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:37,代码来源:EntityPlayerSP.java


示例5: displayGUIChest

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
/**
 * Displays the GUI for interacting with a chest inventory.
 */
public void displayGUIChest(IInventory chestInventory)
{
    String s = chestInventory instanceof IInteractionObject ? ((IInteractionObject)chestInventory).getGuiID() : "minecraft:container";

    if ("minecraft:chest".equals(s))
    {
        this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
    }
    else if ("minecraft:hopper".equals(s))
    {
        this.mc.displayGuiScreen(new GuiHopper(this.inventory, chestInventory));
    }
    else if ("minecraft:furnace".equals(s))
    {
        this.mc.displayGuiScreen(new GuiFurnace(this.inventory, chestInventory));
    }
    else if ("minecraft:brewing_stand".equals(s))
    {
        this.mc.displayGuiScreen(new GuiBrewingStand(this.inventory, chestInventory));
    }
    else if ("minecraft:beacon".equals(s))
    {
        this.mc.displayGuiScreen(new GuiBeacon(this.inventory, chestInventory));
    }
    else if (!"minecraft:dispenser".equals(s) && !"minecraft:dropper".equals(s))
    {
        if ("minecraft:shulker_box".equals(s))
        {
            this.mc.displayGuiScreen(new GuiShulkerBox(this.inventory, chestInventory));
        }
        else
        {
            this.mc.displayGuiScreen(new GuiChest(this.inventory, chestInventory));
        }
    }
    else
    {
        this.mc.displayGuiScreen(new GuiDispenser(this.inventory, chestInventory));
    }
}
 
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:44,代码来源:EntityPlayerSP.java


示例6: func_146104_a

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
    this.mc.displayGuiScreen(new GuiBeacon(this.inventory, p_146104_1_));
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:EntityPlayerSP.java


示例7: func_82240_a

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
public void func_82240_a(TileEntityBeacon p_82240_1_) {
   this.field_71159_c.func_71373_a(new GuiBeacon(this.field_71071_by, p_82240_1_));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:EntityPlayerSP.java


示例8: GuiBeaconButtonConfirm

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
public GuiBeaconButtonConfirm(GuiBeacon p_i1075_1_, int p_i1075_2_, int p_i1075_3_, int p_i1075_4_) {
   super(p_i1075_2_, p_i1075_3_, p_i1075_4_, GuiBeacon.func_110427_g(), 90, 220);
   this.field_82264_k = p_i1075_1_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:GuiBeaconButtonConfirm.java


示例9: GuiBeaconButtonCancel

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
public GuiBeaconButtonCancel(GuiBeacon p_i1074_1_, int p_i1074_2_, int p_i1074_3_, int p_i1074_4_) {
   super(p_i1074_2_, p_i1074_3_, p_i1074_4_, GuiBeacon.func_110427_g(), 112, 220);
   this.field_82260_k = p_i1074_1_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:GuiBeaconButtonCancel.java


示例10: GuiBeaconButtonPower

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
public GuiBeaconButtonPower(GuiBeacon p_i1076_1_, int p_i1076_2_, int p_i1076_3_, int p_i1076_4_, int p_i1076_5_, int p_i1076_6_) {
   super(p_i1076_2_, p_i1076_3_, p_i1076_4_, GuiContainer.field_110408_a, 0 + Potion.field_76425_a[p_i1076_5_].func_76392_e() % 8 * 18, 198 + Potion.field_76425_a[p_i1076_5_].func_76392_e() / 8 * 18);
   this.field_82263_k = p_i1076_1_;
   this.field_82261_l = p_i1076_5_;
   this.field_82262_m = p_i1076_6_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:7,代码来源:GuiBeaconButtonPower.java


示例11: displayGUIBeacon

import net.minecraft.client.gui.inventory.GuiBeacon; //导入依赖的package包/类
/**
 * Displays the GUI for interacting with a beacon.
 */
public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
{
    this.mc.displayGuiScreen(new GuiBeacon(this.inventory, par1TileEntityBeacon));
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:EntityPlayerSP.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GcInfoBuilder类代码示例发布时间:2022-05-22
下一篇:
Java XMLWriter类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap