当前位置: 首页>>代码示例>>Java>>正文


Java GuiEditSign类代码示例

本文整理汇总了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()));
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:12,代码来源:EntityPlayerSP.java

示例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_));
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:9,代码来源:EntityPlayerSP.java

示例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));
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:15,代码来源:EntityPlayerSP.java

示例4: openEditSign

import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void openEditSign(TileEntitySign signTile)
{
    this.mc.displayGuiScreen(new GuiEditSign(signTile));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:EntityPlayerSP.java

示例5: openEditSign

import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void openEditSign(TileEntitySign signTile) {
	this.mc.displayGuiScreen(new GuiEditSign(signTile));
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:4,代码来源:EntityPlayerSP.java

示例6: IGuiEditSign

import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public IGuiEditSign() {
	super(GuiEditSign.class);
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:4,代码来源:IClassHandler.java

示例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);
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:4,代码来源:IClassHandler.java

示例8: save

import net.minecraft.client.gui.inventory.GuiEditSign; //导入依赖的package包/类
public void save() {
	((GuiEditSign) this.screen).tileSign.markDirty();
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:4,代码来源:IClassHandler.java

示例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 );
}
 
开发者ID:spacechase0,项目名称:TextFormatting,代码行数:6,代码来源:SignGui.java

示例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 );
}
 
开发者ID:spacechase0,项目名称:TextFormatting,代码行数:6,代码来源:SignGui.java

示例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 );
}
 
开发者ID:spacechase0,项目名称:TextFormatting,代码行数:6,代码来源:SignGui.java


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