public void func_146100_a(TileEntity p_146100_1_) { if (p_146100_1_ instanceof TileEntitySign) { this.mc.displayGuiScreen(new GuiEditSign((TileEntitySign)p_146100_1_)); } else if (p_146100_1_ instanceof TileEntityCommandBlock) { this.mc.displayGuiScreen(new GuiCommandBlock(((TileEntityCommandBlock)p_146100_1_).func_145993_a())); } }
public void func_71014_a(TileEntity p_71014_1_) { if(p_71014_1_ instanceof TileEntitySign) { this.field_71159_c.func_71373_a(new GuiEditSign((TileEntitySign)p_71014_1_)); } else if(p_71014_1_ instanceof TileEntityCommandBlock) { this.field_71159_c.func_71373_a(new GuiCommandBlock((TileEntityCommandBlock)p_71014_1_)); } }
/** * Displays the GUI for editing a sign. Args: tileEntitySign */ public void displayGUIEditSign(TileEntity par1TileEntity) { if (par1TileEntity instanceof TileEntitySign) { this.mc.displayGuiScreen(new GuiEditSign((TileEntitySign)par1TileEntity)); } else if (par1TileEntity instanceof TileEntityCommandBlock) { this.mc.displayGuiScreen(new GuiCommandBlock((TileEntityCommandBlock)par1TileEntity)); } }
public void openEditSign(TileEntitySign signTile) { this.mc.displayGuiScreen(new GuiEditSign(signTile)); }
public IGuiEditSign() { super(GuiEditSign.class); }
public void setText(String text, int line) { ((GuiEditSign) this.screen).tileSign.signText[line] = new TextComponentString(text); }
public void save() { ((GuiEditSign) this.screen).tileSign.markDirty(); }
public GuiButton getDoneButton() { String field = ObfuscatedField.fromMcp( "net/minecraft/client/gui/inventory/GuiEditSign", "doneBtn" ).srgName; return ( GuiButton ) ReflectionHelper.getPrivateValue( GuiEditSign.class, this, field ); }
public int getEditLine() { String field = ObfuscatedField.fromMcp( "net/minecraft/client/gui/inventory/GuiEditSign", "editLine" ).srgName; return ( Integer ) ReflectionHelper.getPrivateValue( GuiEditSign.class, this, field ); }
public void setEditLine( int line ) { String field = ObfuscatedField.fromMcp( "net/minecraft/client/gui/inventory/GuiEditSign", "editLine" ).srgName; ReflectionHelper.setPrivateValue( GuiEditSign.class, this, line, field ); }