Java 类net.minecraft.client.gui.inventory.GuiBeacon 实例源码
项目:BaseClient
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:RuneCraftery
文件:GuiBeaconButton.java
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);
}
}
项目:DecompiledMinecraft
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:BaseClient
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:CustomWorldGen
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:ExpandedRailsMod
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:Zombe-Modpack
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:Backmemed
文件:EntityPlayerSP.java
/**
* 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));
}
}
项目:Resilience-Client-Source
文件:EntityPlayerSP.java
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
this.mc.displayGuiScreen(new GuiBeacon(this.inventory, p_146104_1_));
}
项目:Cauldron
文件:EntityPlayerSP.java
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
this.mc.displayGuiScreen(new GuiBeacon(this.inventory, p_146104_1_));
}
项目:Cauldron
文件:EntityPlayerSP.java
public void func_146104_a(TileEntityBeacon p_146104_1_)
{
this.mc.displayGuiScreen(new GuiBeacon(this.inventory, p_146104_1_));
}
项目:RuneCraftery
文件:EntityPlayerSP.java
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_));
}
项目:RuneCraftery
文件:GuiBeaconButtonConfirm.java
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_;
}
项目:RuneCraftery
文件:GuiBeaconButtonCancel.java
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_;
}
项目:RuneCraftery
文件:GuiBeaconButtonPower.java
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_;
}
项目:RuneCraftery
文件:EntityPlayerSP.java
/**
* Displays the GUI for interacting with a beacon.
*/
public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
{
this.mc.displayGuiScreen(new GuiBeacon(this.inventory, par1TileEntityBeacon));
}
项目:BetterNutritionMod
文件:EntityPlayerSP.java
/**
* Displays the GUI for interacting with a beacon.
*/
public void displayGUIBeacon(TileEntityBeacon par1TileEntityBeacon)
{
this.mc.displayGuiScreen(new GuiBeacon(this.inventory, par1TileEntityBeacon));
}