This commit is contained in:
Electroblob
2018-02-26 18:37:52 +00:00
parent 13444f1de3
commit 6f776fbae6
8 changed files with 15 additions and 17 deletions
@@ -21,7 +21,8 @@ import net.minecraftforge.fml.common.registry.RegistryBuilder;
// because it makes the text go bold, but also because it stops anyone fiddling with your fields). "Why would I want to
// initialise things within the registry events?", I hear you ask - well, for one, custom registries don't like it if
// you haven't created the registry before you start calling constructors of classes extending IForgeRegistryEntry.Impl,
// and secondly,
// and secondly, you might want to initialise objects based on certain conditions - perhaps a config option, or whether
// another mod is installed. This, presumably, is why everyone at forge is encouraging us to use @ObjectHolder.
@ObjectHolder(Wizardry.MODID)
@Mod.EventBusSubscriber
public final class Spells {