Ball of Fur (Actually Additions)
Description
A weighted itemstack output for using a Ball of Fur, dropped by a cat.
Identifier
Refer to this via any of the following:
mods.aa.ball_of_fur
mods.aa.balloffur
mods.aa.ballOfFur
mods.aa.BallOfFur
mods.actuallyadditions.ball_of_fur/* Used as page default */
mods.actuallyadditions.balloffur
mods.actuallyadditions.ballOfFur
mods.actuallyadditions.BallOfFur
Adding Recipes
Recipe Builder
Just like other recipe types, the Ball of Fur also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.actuallyadditions.ball_of_fur.recipeBuilder()
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets how likely this entry is to be rolled. Requires greater than or equal to 0. (Default0
).groovyweight(int)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orde.ellpeck.actuallyadditions.api.recipe.BallOfFurReturn
).groovyregister()
Example
mods.actuallyadditions.ball_of_fur.recipeBuilder()
.output(item('minecraft:clay') * 32)
.weight(15)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.actuallyadditions.ball_of_fur.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.actuallyadditions.ball_of_fur.removeAll()
Example
mods.actuallyadditions.ball_of_fur.removeByOutput(item('minecraft:feather'))
mods.actuallyadditions.ball_of_fur.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.actuallyadditions.ball_of_fur.streamRecipes()