本文整理汇总了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));
}
}
示例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);
}
}
示例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));
}
}
示例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));
}
}
示例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));
}
}
示例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_));
}
示例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_));
}
示例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_;
}
示例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_;
}
示例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_;
}
示例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));
}