Pets (Bewitchment)
Description
Sets what animals are valid for summoning via the FortuneMeetPet
effect.
Identifier
Refer to this via any of the following:
groovy
mods.bewitchment.pet/* Used as page default */
mods.bewitchment.Pet
Adding Entries
Add the given recipe to the recipe list:
groovymods.bewitchment.pet.add(EntityEntry)
Example
groovy
mods.bewitchment.pet.add(entity('minecraft:cow'))
Removing Entries
Removes the given recipe from the recipe list:
groovymods.bewitchment.pet.remove(EntityEntry)
Removes all registered recipes:
groovymods.bewitchment.pet.removeAll()
Example
groovy
mods.bewitchment.pet.remove(entity('minecraft:ocelot'))
mods.bewitchment.pet.removeAll()
Getting the value of entries
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.bewitchment.pet.streamRecipes()