Skip to content

River Grate (Factory Tech)

Description

Slowly produces the output entries while in a river biome surrounded by water, and between y 60 and 70.

Identifier

Refer to this via any of the following:

groovy
mods.factorytech.river_grate/* Used as page default */
mods.factorytech.rivergrate
mods.factorytech.riverGrate
mods.factorytech.RiverGrate

Adding Entries

  • Add the given recipe to the recipe list:

    groovy
    mods.factorytech.river_grate.add(MachineRecipes.MachineRecipe<Double, ItemStack>)

Recipe Builder

Just like other recipe types, the River Grate also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

Recipe Builder
  • Create the Recipe Builder.

    groovy
    mods.factorytech.river_grate.recipeBuilder()

  • ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(Collection<ItemStack>)
  • double. Sets the weight compared to other entries. Requires greater than or equal to 0. (Default 0.0d).

    groovy
    weight(double)
  • boolean. Sets if the recipe can use stone parts. (Default false).

    groovy
    allowStoneParts()
    allowStoneParts(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. (returns null or dalapo.factech.auxiliary.MachineRecipes$MachineRecipe<java.lang.Double, net.minecraft.item.ItemStack>).

    groovy
    register()

Example
groovy
mods.factorytech.river_grate.recipeBuilder()
    .output(item('minecraft:diamond'))
    .weight(10)
    .register()

mods.factorytech.river_grate.recipeBuilder()
    .output(item('minecraft:clay'))
    .allowStoneParts()
    .weight(30)
    .register()

Removing Entries

  • Removes the given recipe from the recipe list:

    groovy
    mods.factorytech.river_grate.remove(MachineRecipes.MachineRecipe<Double, ItemStack>)
  • Removes all recipes that match the given output:

    groovy
    mods.factorytech.river_grate.removeByOutput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.factorytech.river_grate.removeAll()
Example
groovy
mods.factorytech.river_grate.removeByOutput(item('minecraft:fish'))
mods.factorytech.river_grate.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:

    groovy
    mods.factorytech.river_grate.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.