mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
Move items, sounds, potions to new registration system
This commit is contained in:
1 parent
101c72e633
commit
a6b37966a1
15 files changed
+355
-353
No files matched your search
@@ -29,15 +29,10 @@ public abstract class ItemMod extends Item implements IModelRegister {
|
||||
|
||||
public ItemMod(String name) {
|
||||
setCreativeTab(BotaniaCreativeTab.INSTANCE);
|
||||
if(shouldRegister())
|
||||
GameRegistry.register(this, new ResourceLocation(LibMisc.MOD_ID, name));
|
||||
setRegistryName(new ResourceLocation(LibMisc.MOD_ID, name))
|
||||
setUnlocalizedName(name);
|
||||
}
|
||||
|
||||
protected boolean shouldRegister() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getUnlocalizedNameInefficiently(@Nonnull ItemStack par1ItemStack) {
|
||||
|
||||
Reference in new issue
Block a user