本文整理汇总了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) {
}