本文整理匯總了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.");
}
示例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);
}
示例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");
}
示例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");
}
示例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");
}
示例6: setIcon
@SideOnly(Side.CLIENT)
public void setIcon(int index, IIcon icon) {
if (icons == null)
icons = new IIcon[types.length];
icons[index] = icon;
}
示例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");
}
示例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");
}
示例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.");
}
示例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);
}
示例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");
}
示例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() ));
}
示例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");
}
示例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));
}
示例15: registerBlockIcons
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
}