Class PlantIngredient

java.lang.Object
com.minecolonies.core.recipes.PlantIngredient
All Implemented Interfaces:
net.neoforged.neoforge.common.crafting.ICustomIngredient

public class PlantIngredient extends Object implements net.neoforged.neoforge.common.crafting.ICustomIngredient
An ingredient that can be used in a vanilla recipe to match plantable items. // any plant item { "type": "minecolonies:plant" }
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<PlantIngredient>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Stream<net.minecraft.world.item.ItemStack>
     
    @NotNull net.neoforged.neoforge.common.crafting.IngredientType<?>
     
    boolean
     
    static @NotNull net.minecraft.world.item.crafting.Ingredient
    of()
     
    boolean
    test(@Nullable net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.common.crafting.ICustomIngredient

    toVanilla
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<PlantIngredient> CODEC
  • Method Details

    • of

      @NotNull public static @NotNull net.minecraft.world.item.crafting.Ingredient of()
    • test

      public boolean test(@Nullable @Nullable net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • getItems

      @NotNull public @NotNull Stream<net.minecraft.world.item.ItemStack> getItems()
      Specified by:
      getItems in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • getType

      @NotNull public @NotNull net.neoforged.neoforge.common.crafting.IngredientType<?> getType()
      Specified by:
      getType in interface net.neoforged.neoforge.common.crafting.ICustomIngredient