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


Java Side.CLIENT属性代码示例

本文整理汇总了Java中cpw.mods.fml.relauncher.Side.CLIENT属性的典型用法代码示例。如果您正苦于以下问题:Java Side.CLIENT属性的具体用法?Java Side.CLIENT怎么用?Java Side.CLIENT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在cpw.mods.fml.relauncher.Side的用法示例。


在下文中一共展示了Side.CLIENT属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addInformation

@SideOnly(Side.CLIENT)
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
{
	super.addInformation(stack, player, list, par4);

	if (player.capabilities.isCreativeMode)
	{
		list.add(EnumChatFormatting.BLUE + "Quiver: INFINITE / " + this.getMaxDamage() + " Arrows");
	}
	else
	{
		int ammo = this.getMaxDamage() - this.getDamage(stack);
		list.add(EnumChatFormatting.BLUE + "Quiver: " + ammo + " / " + this.getMaxDamage() + " Arrows");
	}

	list.add(EnumChatFormatting.GREEN + "Holds more Arrows.");

	list.add("Craft with up to 8 arrow bundles to reload.");
	list.add("A quiver has been sewn to this bow.");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:21,代码来源:QuiverBow.java

示例2: addInformation

@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
    if(par1ItemStack != null) {
        String mobName = getMobTypeFromStack(par1ItemStack);
        if(mobName != null) {
            par3List.add(getDisplayNameForEntity(mobName));
        }
    }
    super.addInformation(par1ItemStack, par2EntityPlayer, par3List, par4);
}
 
开发者ID:SihenZhang,项目名称:CursedLasso,代码行数:11,代码来源:ItemCursedLasso.java

示例3: registerIcons

@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/SnowCannon");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/SnowCannon_Empty");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:SnowCannon.java

示例4: registerIcons

@SideOnly(Side.CLIENT)
@Override
   public void registerIcons(IIconRegister par1IconRegister) 
{ 
	Icon = par1IconRegister.registerIcon("quiverchevsky:ammo/RedstoneAmmo");
	Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:ammo/RedstoneAmmo_Empty");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:RedstoneMagazine.java

示例5: registerBlockIcons

@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iiconRegister) {
	this.front = iiconRegister.registerIcon(Technical.modName + ":" + "pipeFront");
	this.side0 = iiconRegister.registerIcon(Technical.modName + ":" + "pipeSide0");
	this.side1 = iiconRegister.registerIcon(Technical.modName + ":" + "pipeSide1");
	this.side2 = iiconRegister.registerIcon(Technical.modName + ":" + "pipeSide2");
	this.side3 = iiconRegister.registerIcon(Technical.modName + ":" + "pipeSide3");
}
 
开发者ID:viddeno,项目名称:Technical,代码行数:8,代码来源:Pipe.java

示例6: setIcon

@SideOnly(Side.CLIENT)
public void setIcon(int index, IIcon icon) {
	if (icons == null)
		icons = new IIcon[types.length];

	icons[index] = icon;
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:7,代码来源:PrismarineBlocks.java

示例7: registerIcons

@SideOnly(Side.CLIENT)
@Override
   public void registerIcons(IIconRegister par1IconRegister) 
{ 
	Icon = par1IconRegister.registerIcon("quiverchevsky:ammo/SeedJar");
	Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:ammo/SeedJar_Empty");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:SeedJar.java

示例8: registerIcons

@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/OSP");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/OSP_Empty");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:OSP.java

示例9: addInformation

@SideOnly(Side.CLIENT)
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
{
	super.addInformation(stack, player, list, par4);

	if (player.capabilities.isCreativeMode)
	{
		list.add(EnumChatFormatting.BLUE + "Redstone: INFINITE / " + this.getMaxDamage());
	}
	else
	{
		int ammo = this.getMaxDamage() - this.getDamage(stack);
		list.add(EnumChatFormatting.BLUE + "Redstone: " + ammo + " / " + this.getMaxDamage());
	}

	list.add(EnumChatFormatting.GREEN + "Wither " + this.Wither_Strength + " for " + this.displayInSec(this.Wither_Duration) + " sec on hit.");
	list.add(EnumChatFormatting.GREEN + "Blindness 1 for " + this.displayInSec(this.Blindness_Duration) + " sec on hit.");

	list.add(EnumChatFormatting.RED + "Does not deal direct damage.");

	list.add(EnumChatFormatting.YELLOW + "Crouch-use to drop the current magazine.");
	list.add(EnumChatFormatting.YELLOW + "Craft with a Large Redstone Magazine");
	list.add(EnumChatFormatting.YELLOW + "to reload.");

	list.add("The muzzle is slightly corroded.");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:27,代码来源:RedSprayer.java

示例10: registerBlockIcons

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
	icons = new IIcon[4];
	for (int i = 0; i < icons.length; i++)
		icons[i] = reg.registerIcon(getTextureName() + "_" + i);
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:7,代码来源:FrostedIce.java

示例11: registerIcons

@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)	// We got need for a non-typical icon currently. Will be phased out
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/CrossbowAutoImp");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/CrossbowAutoImp_Empty");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:Crossbow_AutoImp.java

示例12: getSubItems

@Override
@SideOnly(Side.CLIENT)
public void getSubItems(Item item, CreativeTabs par2CreativeTabs, List list) 	// getSubItems
{
	list.add(new ItemStack(item, 1, 0));
	list.add(new ItemStack( item, 1, this.getMaxDamage() ));
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:LapisMagazine.java

示例13: registerIcons

@SideOnly(Side.CLIENT)
@Override
   public void registerIcons(IIconRegister par1IconRegister) 
{ 
	Icon = par1IconRegister.registerIcon("quiverchevsky:ammo/NeedleAmmo");
	Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:ammo/NeedleAmmo_Empty");
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:7,代码来源:NeedleMagazine.java

示例14: getSubItems

@Override
@SideOnly(Side.CLIENT)
@SuppressWarnings({ "rawtypes", "unchecked" })
public void getSubItems(Item item, CreativeTabs tab, List list) {
	for (EntityData data : ModEntityList.getDatasWithEggs())
		list.add(new ItemStack(item, 1, data.id));
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:7,代码来源:ItemEntityEgg.java

示例15: registerBlockIcons

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
}
 
开发者ID:jm-organization,项目名称:connor41-etfuturum2,代码行数:4,代码来源:BlockBanner.java


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