MinecraftModDevelopmentMods / BetterAgriculture

8 stars 6 forks source link

QoL for forking: Arrays instead of hardcoding #22

Closed nearlyNonexistent closed 6 years ago

nearlyNonexistent commented 8 years ago

EntityMobCow1, EntityMobCow2, etc type variables should be replaced with an easier to read method. I propose: every entity gets a handler which stores all the details about it (EntityMobSpawnProb shouldn't be a huge list like it is for instance, instead directly associated with its handler) and those handlers are in an array like so:

EntityMob["Cow"][0] = vanilla cow EntityMob["Cow][1] = start of list of modded cows