當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。