本文整理汇总了Java中net.minecraft.client.gui.inventory.GuiEditSign类的典型用法代码示例。如果您正苦于以下问题:Java GuiEditSign类的具体用法?Java GuiEditSign怎么用?Java GuiEditSign使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GuiEditSign类属于net.minecraft.client.gui.inventory包,在下文中一共展示了GuiEditSign类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_146100_a
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
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()));
}
}
示例2: func_71014_a
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
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_));
}
}
示例3: displayGUIEditSign
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
/**
* 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));
}
}
示例4: openEditSign
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void openEditSign(TileEntitySign signTile)
{
this.mc.displayGuiScreen(new GuiEditSign(signTile));
}
示例5: openEditSign
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void openEditSign(TileEntitySign signTile) {
this.mc.displayGuiScreen(new GuiEditSign(signTile));
}
示例6: IGuiEditSign
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public IGuiEditSign() {
super(GuiEditSign.class);
}
示例7: setText
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void setText(String text, int line) {
((GuiEditSign) this.screen).tileSign.signText[line] = new TextComponentString(text);
}
示例8: save
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void save() {
((GuiEditSign) this.screen).tileSign.markDirty();
}
示例9: getDoneButton
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public GuiButton getDoneButton()
{
String field = ObfuscatedField.fromMcp( "net/minecraft/client/gui/inventory/GuiEditSign", "doneBtn" ).srgName;
return ( GuiButton ) ReflectionHelper.getPrivateValue( GuiEditSign.class, this, field );
}
示例10: getEditLine
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public int getEditLine()
{
String field = ObfuscatedField.fromMcp( "net/minecraft/client/gui/inventory/GuiEditSign", "editLine" ).srgName;
return ( Integer ) ReflectionHelper.getPrivateValue( GuiEditSign.class, this, field );
}
示例11: setEditLine
import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void setEditLine( int line )
{
String field = ObfuscatedField.fromMcp( "net/minecraft/client/gui/inventory/GuiEditSign", "editLine" ).srgName;
ReflectionHelper.setPrivateValue( GuiEditSign.class, this, line, field );
}