Class PlantIngredient

java.lang.Object
net.minecraft.world.item.crafting.Ingredient
com.minecolonies.core.recipes.PlantIngredient
All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>

public class PlantIngredient extends net.minecraft.world.item.crafting.Ingredient
An ingredient that can be used in a vanilla recipe to match plantable items. // any plant item { "type": "minecolonies:plant" }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class net.minecraft.world.item.crafting.Ingredient

    net.minecraft.world.item.crafting.Ingredient.ItemValue, net.minecraft.world.item.crafting.Ingredient.TagValue, net.minecraft.world.item.crafting.Ingredient.Value
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     

    Fields inherited from class net.minecraft.world.item.crafting.Ingredient

    EMPTY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PlantIngredient(Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> itemLists)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull PlantIngredient
     
    @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    @NotNull com.google.gson.JsonElement
     

    Methods inherited from class net.minecraft.world.item.crafting.Ingredient

    checkInvalidation, fromJson, fromJson, fromNetwork, fromValues, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isSimple, isVanilla, markValid, merge, of, of, of, of, of, test, toNetwork, valueFromJson

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
  • Constructor Details

    • PlantIngredient

      protected PlantIngredient(Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> itemLists)
  • Method Details

    • getInstance

      @NotNull public static @NotNull PlantIngredient getInstance()
    • toJson

      @NotNull public @NotNull com.google.gson.JsonElement toJson()
      Overrides:
      toJson in class net.minecraft.world.item.crafting.Ingredient
    • getSerializer

      @NotNull public @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()
      Overrides:
      getSerializer in class net.minecraft.world.item.crafting.Ingredient