Casting Basin (Tinkers' Construct)
Description
Pours out fluid into a basin to solidify it into a solid, optionally with a cast itemstack.
Identifier
Refer to this via any of the following:
mods.tconstruct.casting_basin/* Used as page default */
mods.tconstruct.castingbasin
mods.tconstruct.castingBasin
mods.tconstruct.CastingBasin
mods.tconstruct.basin
mods.tconstruct.Basin
mods.tinkersconstruct.casting_basin
mods.tinkersconstruct.castingbasin
mods.tinkersconstruct.castingBasin
mods.tinkersconstruct.CastingBasin
mods.tinkersconstruct.basin
mods.tinkersconstruct.Basin
mods.ticon.casting_basin
mods.ticon.castingbasin
mods.ticon.castingBasin
mods.ticon.CastingBasin
mods.ticon.basin
mods.ticon.Basin
Adding Recipes
Add the given recipe to the recipe list:
groovymods.tconstruct.casting_basin.add(ICastingRecipe)
Recipe Builder
Just like other recipe types, the Casting Basin also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.tconstruct.casting_basin.recipeBuilder()
FluidStackList
. Sets the fluid inputs of the recipe. Requires exactly 1.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
IIngredient
. The item to use as a cast. null for no cast.groovycast(IIngredient)
int
. The time in ticks it takes for the recipe to complete. Requires greater than or equal to 1. (Default200
).groovycoolingTime(int)
boolean
. Whether the cast item is destroyed. (Defaultfalse
).groovyconsumesCast() consumesCast(boolean)
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
orslimeknights.tconstruct.library.smeltery.ICastingRecipe
).groovyregister()
Example
mods.tconstruct.casting_basin.recipeBuilder()
.fluidInput(fluid('water'))
.output(item('minecraft:dirt'))
.cast(item('minecraft:cobblestone'))
.coolingTime(40)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.tconstruct.casting_basin.remove(ICastingRecipe)
Removes all recipes that use the given item as a cast:
groovymods.tconstruct.casting_basin.removeByCast(IIngredient)
Removes all recipes that match the given input:
groovymods.tconstruct.casting_basin.removeByInput(FluidStack)
Removes all recipes that match the given output:
groovymods.tconstruct.casting_basin.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.tconstruct.casting_basin.removeAll()
Example
mods.tconstruct.casting_basin.removeByCast(item('minecraft:planks:0'))
mods.tconstruct.casting_basin.removeByInput(fluid('clay'))
mods.tconstruct.casting_basin.removeByOutput(item('minecraft:iron_block'))
mods.tconstruct.casting_basin.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.tconstruct.casting_basin.streamRecipes()