[API] API-ify Soul Cage so integration with other mods is easier.
TehNut opened this issue ยท 6 comments
Requested by @ProfessorProspector for https://github.com/TechReborn/TechReborn
Preferably I could just extend a BaseCage and tell it when to handle the mob spawning. Something like canSpawn() and I could return true if it has enough energy and stuff.
I'm not sure how feasible doing it all through the API is. But I can move some checks into their own methods. So you'd extend TileEntityCage
and override getCooldown()
(to change spawn speed), getSpawnAmount()
(to change amount of mobs spawned), and canSpawn()
(if spawning is allowed). Other than those three methods (and any helper methods you need for your own stuff), the rest should be able to be left untouched.