Package com.minecolonies.core.recipes
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 ClassesNested 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
FieldsFields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPlantIngredient(Stream<? extends net.minecraft.world.item.crafting.Ingredient.Value> itemLists) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PlantIngredient@NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>@NotNull com.google.gson.JsonElementtoJson()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
-
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
-
toJson
@NotNull public @NotNull com.google.gson.JsonElement toJson()- Overrides:
toJsonin classnet.minecraft.world.item.crafting.Ingredient
-
getSerializer
@NotNull public @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.Ingredient
-