Move setRegistryName out of item/block constructors
This commit is contained in:
parent
b259afc7df
commit
d48e4e5ae8
78 changed files with 92 additions and 206 deletions
|
@ -24,7 +24,6 @@ public class ItemActivationCrystal extends ItemBindableBase implements IVariantP
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".activationCrystal.");
|
||||
setRegistryName(Constants.BloodMagicItem.ACTIVATION_CRYSTAL.getRegName());
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ public class ItemAltarMaker extends Item implements IAltarManipulator, IVariantP
|
|||
{
|
||||
super();
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".altarMaker");
|
||||
setRegistryName(Constants.BloodMagicItem.ALTAR_MAKER.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setMaxStackSize(1);
|
||||
setFull3D();
|
||||
|
|
|
@ -28,7 +28,6 @@ public class ItemArcaneAshes extends Item implements IVariantProvider
|
|||
public ItemArcaneAshes()
|
||||
{
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".arcaneAshes");
|
||||
setRegistryName(Constants.BloodMagicItem.ARCANE_ASHES.getRegName());
|
||||
setMaxStackSize(1);
|
||||
setMaxDamage(19); //Allows for 20 uses
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
|
|
|
@ -29,7 +29,6 @@ public class ItemBloodOrb extends ItemBindableBase implements IBloodOrb, IBindab
|
|||
public ItemBloodOrb()
|
||||
{
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".orb.");
|
||||
setRegistryName(Constants.BloodMagicItem.BLOOD_ORB.getRegName());
|
||||
this.setMaxDamage(0);
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,6 @@ public class ItemBloodShard extends Item implements IVariantProvider
|
|||
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".bloodShard.");
|
||||
setRegistryName(Constants.BloodMagicItem.BLOOD_SHARD.getRegName());
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ public class ItemBoundAxe extends ItemBoundTool implements IMeshProvider
|
|||
public ItemBoundAxe()
|
||||
{
|
||||
super("axe", 7, EFFECTIVE_ON);
|
||||
setRegistryName(Constants.BloodMagicItem.BOUND_AXE.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -45,7 +45,6 @@ public class ItemBoundPickaxe extends ItemBoundTool implements IMeshProvider
|
|||
public ItemBoundPickaxe()
|
||||
{
|
||||
super("pickaxe", 5, EFFECTIVE_ON);
|
||||
setRegistryName(Constants.BloodMagicItem.BOUND_PICKAXE.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -44,7 +44,6 @@ public class ItemBoundShovel extends ItemBoundTool implements IMeshProvider
|
|||
public ItemBoundShovel()
|
||||
{
|
||||
super("shovel", 1, EFFECTIVE_ON);
|
||||
setRegistryName(Constants.BloodMagicItem.BOUND_SHOVEL.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -46,7 +46,6 @@ public class ItemBoundSword extends ItemSword implements IBindable, IActivatable
|
|||
super(ModItems.boundToolMaterial);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".bound.sword");
|
||||
setRegistryName(Constants.BloodMagicItem.BOUND_SWORD.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ public class ItemBucketEssence extends ItemBucket
|
|||
super(ModBlocks.lifeEssence);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".bucket.lifeEssence");
|
||||
setRegistryName(Constants.BloodMagicItem.BUCKET_ESSENCE.getRegName());
|
||||
setContainerItem(Items.bucket);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
|
|
@ -46,7 +46,6 @@ public class ItemComponent extends Item implements IVariantProvider
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".baseComponent.");
|
||||
setRegistryName(Constants.BloodMagicItem.COMPONENT.getRegName());
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
|
||||
|
|
|
@ -37,7 +37,6 @@ public class ItemDemonCrystal extends Item implements IDiscreteDemonWill, IVaria
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".demonCrystal.");
|
||||
setRegistryName(Constants.BloodMagicItem.DEMON_CRYSTAL.getRegName());
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ public class ItemExperienceBook extends Item implements IVariantProvider
|
|||
public ItemExperienceBook()
|
||||
{
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".experienceTome");
|
||||
setRegistryName(Constants.BloodMagicItem.EXPERIENCE_TOME.getRegName());
|
||||
setMaxStackSize(1);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
|
|
@ -34,7 +34,6 @@ public class ItemInscriptionTool extends ItemBindableBase implements IVariantPro
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".scribe.");
|
||||
setRegistryName(Constants.BloodMagicItem.INSCRIPTION_TOOL.getRegName());
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ public class ItemLavaCrystal extends ItemBindableBase implements IFuelHandler, I
|
|||
{
|
||||
super();
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".lavaCrystal");
|
||||
setRegistryName(Constants.BloodMagicItem.LAVA_CRYSTAL.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,6 @@ public class ItemRitualDiviner extends Item implements IVariantProvider
|
|||
public ItemRitualDiviner()
|
||||
{
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".ritualDiviner");
|
||||
setRegistryName(Constants.BloodMagicItem.RITUAL_DIVINER.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(1);
|
||||
|
|
|
@ -49,7 +49,6 @@ public class ItemSacrificialDagger extends Item implements IVariantProvider
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".sacrificialDagger.");
|
||||
setRegistryName(Constants.BloodMagicItem.SACRIFICIAL_DAGGER.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(1);
|
||||
|
|
|
@ -27,7 +27,6 @@ public class ItemSlate extends Item implements IVariantProvider
|
|||
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".slate.");
|
||||
setRegistryName(Constants.BloodMagicItem.SLATE.getRegName());
|
||||
setHasSubtypes(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ public class ItemTelepositionFocus extends ItemBindableBase implements IVariantP
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".focus.");
|
||||
setRegistryName(Constants.BloodMagicItem.TELEPOSITION_FOCUS.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setMaxStackSize(1);
|
||||
setHasSubtypes(true);
|
||||
|
|
|
@ -36,7 +36,6 @@ public class ItemUpgradeTome extends Item implements IVariantProvider
|
|||
|
||||
setCreativeTab(BloodMagic.tabUpgradeTome);
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".upgradeTome");
|
||||
setRegistryName(Constants.BloodMagicItem.UPGRADE_TOME.getRegName());
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(1);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ public class ItemUpgradeTrainer extends Item implements IUpgradeTrainer, IVarian
|
|||
|
||||
setCreativeTab(BloodMagic.tabUpgradeTome);
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".upgradeTrainer");
|
||||
setRegistryName(Constants.BloodMagicItem.UPGRADE_TRAINER.getRegName());
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(1);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,6 @@ public class ItemPackSacrifice extends ItemArmor implements IAltarManipulator, I
|
|||
super(ArmorMaterial.CHAIN, 0, EntityEquipmentSlot.CHEST);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".pack.sacrifice");
|
||||
setRegistryName(Constants.BloodMagicItem.SACRIFICE_PACK.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ public class ItemPackSelfSacrifice extends ItemArmor implements IAltarManipulato
|
|||
super(ArmorMaterial.CHAIN, 0, EntityEquipmentSlot.CHEST);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".pack.selfSacrifice");
|
||||
setRegistryName(Constants.BloodMagicItem.SELF_SACRIFICE_PACK.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,6 @@ public class ItemNodeRouter extends Item implements INodeRenderer, IVariantProvi
|
|||
public ItemNodeRouter()
|
||||
{
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".nodeRouter");
|
||||
setRegistryName(Constants.BloodMagicItem.NODE_ROUTER.getRegName());
|
||||
setMaxStackSize(1);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@ public class ItemRouterFilter extends Item implements IItemFilterProvider, IVari
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".itemFilter.");
|
||||
setRegistryName(Constants.BloodMagicItem.ROUTER_FILTER.getRegName());
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ public class ItemSigilAir extends ItemSigilBase implements ISentientSwordEffectP
|
|||
public ItemSigilAir()
|
||||
{
|
||||
super("air", 50);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_AIR.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -19,7 +19,6 @@ public class ItemSigilBloodLight extends ItemSigilBase
|
|||
public ItemSigilBloodLight()
|
||||
{
|
||||
super("bloodLight", 10);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_BLOOD_LIGHT.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,6 @@ public class ItemSigilCompression extends ItemSigilToggleableBase
|
|||
public ItemSigilCompression()
|
||||
{
|
||||
super("compression", 200);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_COMPRESSION.getRegName());
|
||||
}
|
||||
|
||||
// TODO REWRITE all compression stuff if someone has time
|
||||
|
|
|
@ -25,7 +25,6 @@ public class ItemSigilDivination extends ItemSigilBase implements IAltarReader
|
|||
public ItemSigilDivination()
|
||||
{
|
||||
super("divination");
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_DIVINATION.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,6 @@ public class ItemSigilElementalAffinity extends ItemSigilToggleableBase
|
|||
public ItemSigilElementalAffinity()
|
||||
{
|
||||
super("elementalAffinity", 200);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_ELEMENTAL_AFFINITY.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -16,7 +16,6 @@ public class ItemSigilEnderSeverance extends ItemSigilToggleableBase
|
|||
public ItemSigilEnderSeverance()
|
||||
{
|
||||
super("enderSeverance", 200);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_ENDER_SEVERANCE.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,6 @@ public class ItemSigilFastMiner extends ItemSigilToggleableBase
|
|||
public ItemSigilFastMiner()
|
||||
{
|
||||
super("fastMiner", 100);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_FAST_MINER.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -17,7 +17,6 @@ public class ItemSigilGreenGrove extends ItemSigilToggleableBase
|
|||
public ItemSigilGreenGrove()
|
||||
{
|
||||
super("greenGrove", 150);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_GREEN_GROVE.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,6 @@ public class ItemSigilHaste extends ItemSigilToggleableBase
|
|||
public ItemSigilHaste()
|
||||
{
|
||||
super("haste", 250);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_HASTE.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -24,7 +24,6 @@ public class ItemSigilLava extends ItemSigilBase
|
|||
public ItemSigilLava()
|
||||
{
|
||||
super("lava", 1000);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_LAVA.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -15,7 +15,6 @@ public class ItemSigilMagnetism extends ItemSigilToggleableBase
|
|||
public ItemSigilMagnetism()
|
||||
{
|
||||
super("magnetism", 50);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_MAGNETISM.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,6 @@ public class ItemSigilPhantomBridge extends ItemSigilToggleableBase
|
|||
public ItemSigilPhantomBridge()
|
||||
{
|
||||
super("phantomBridge", 100);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_PHANTOM_BRIDGE.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -26,7 +26,6 @@ public class ItemSigilSeer extends ItemSigilBase implements IAltarReader
|
|||
public ItemSigilSeer()
|
||||
{
|
||||
super("seer");
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_SEER.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -15,7 +15,6 @@ public class ItemSigilSuppression extends ItemSigilToggleableBase
|
|||
public ItemSigilSuppression()
|
||||
{
|
||||
super("suppression", 400);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_SUPPRESION.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,7 +25,6 @@ public class ItemSigilTeleposition extends ItemSigilBase
|
|||
public ItemSigilTeleposition()
|
||||
{
|
||||
super("teleposition");
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_TELEPOSITION.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,7 +27,6 @@ public class ItemSigilTransposition extends ItemSigilBase
|
|||
public ItemSigilTransposition()
|
||||
{
|
||||
super("transposition", 1000);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_TRANSPOSITION.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -22,7 +22,6 @@ public class ItemSigilVoid extends ItemSigilBase
|
|||
public ItemSigilVoid()
|
||||
{
|
||||
super("void", 50);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_VOID.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,7 +27,6 @@ public class ItemSigilWater extends ItemSigilBase
|
|||
public ItemSigilWater()
|
||||
{
|
||||
super("water", 100);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_WATER.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,6 @@ public class ItemSigilWhirlwind extends ItemSigilToggleableBase
|
|||
public ItemSigilWhirlwind()
|
||||
{
|
||||
super("whirlwind", 250);
|
||||
setRegistryName(Constants.BloodMagicItem.SIGIL_WHIRLWIND.getRegName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,7 +28,6 @@ public class ItemMonsterSoul extends Item implements IDemonWill, IVariantProvide
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".monsterSoul.");
|
||||
setRegistryName(Constants.BloodMagicItem.MONSTER_SOUL.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(1);
|
||||
|
|
|
@ -24,7 +24,6 @@ public class ItemSentientArmourGem extends Item
|
|||
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".sentientArmourGem");
|
||||
setRegistryName(Constants.BloodMagicItem.SENTIENT_ARMOR_GEM.getRegName());
|
||||
setMaxStackSize(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ public class ItemSentientBow extends ItemBow implements IMultiWillTool//, IMeshP
|
|||
{
|
||||
super();
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".sentientBow");
|
||||
setRegistryName(Constants.BloodMagicItem.SENTIENT_BOW.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
this.addPropertyOverride(new ResourceLocation("pull"), new IItemPropertyGetter()
|
||||
{
|
||||
|
|
|
@ -72,7 +72,6 @@ public class ItemSentientSword extends ItemSword implements IDemonWillWeapon, IM
|
|||
super(ModItems.soulToolMaterial);
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".sentientSword");
|
||||
setRegistryName(Constants.BloodMagicItem.SENTIENT_SWORD.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ public class ItemSoulGem extends Item implements IDemonWillGem, IMeshProvider, I
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".soulGem.");
|
||||
setRegistryName(Constants.BloodMagicItem.SOUL_GEM.getRegName());
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(1);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
|
|
|
@ -34,7 +34,6 @@ public class ItemSoulSnare extends Item implements IVariantProvider
|
|||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".soulSnare.");
|
||||
setRegistryName(Constants.BloodMagicItem.SOUL_SNARE.getRegName());
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
setHasSubtypes(true);
|
||||
setMaxStackSize(16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue