Casting Table (Tinkers' Construct)
Description
Pours out fluid onto a table to solidify it into a solid, optionally with a cast itemstack.
Identifier
Refer to this via any of the following:
mods.tconstruct.casting_table/* Used as page default */
mods.tconstruct.castingtable
mods.tconstruct.castingTable
mods.tconstruct.CastingTable
mods.tconstruct.table
mods.tconstruct.Table
mods.tinkersconstruct.casting_table
mods.tinkersconstruct.castingtable
mods.tinkersconstruct.castingTable
mods.tinkersconstruct.CastingTable
mods.tinkersconstruct.table
mods.tinkersconstruct.Table
mods.ticon.casting_table
mods.ticon.castingtable
mods.ticon.castingTable
mods.ticon.CastingTable
mods.ticon.table
mods.ticon.Table
Adding Recipes
Add the given recipe to the recipe list:
groovymods.tconstruct.casting_table.add(ICastingRecipe)
Recipe Builder
Just like other recipe types, the Casting Table also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.tconstruct.casting_table.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_table.recipeBuilder()
.fluidInput(fluid('lava') * 50)
.output(item('minecraft:diamond'))
.coolingTime(750)
.consumesCast(true)
.cast(ore('gemEmerald'))
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.tconstruct.casting_table.remove(ICastingRecipe)
Removes all recipes that use the given item as a cast:
groovymods.tconstruct.casting_table.removeByCast(IIngredient)
Removes all recipes that match the given input:
groovymods.tconstruct.casting_table.removeByInput(FluidStack)
Removes all recipes that match the given output:
groovymods.tconstruct.casting_table.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.tconstruct.casting_table.removeAll()
Example
mods.tconstruct.casting_table.removeByCast(item('minecraft:bucket'))
mods.tconstruct.casting_table.removeByInput(fluid('iron'))
mods.tconstruct.casting_table.removeByOutput(item('minecraft:gold_ingot'))
mods.tconstruct.casting_table.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_table.streamRecipes()