Package com.minecolonies.core.recipes
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 -
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<net.minecraft.world.item.ItemStack> getItems()@NotNull net.neoforged.neoforge.common.crafting.IngredientType<?> getType()booleanisSimple()static @NotNull net.minecraft.world.item.crafting.Ingredientof()booleantest(@Nullable net.minecraft.world.item.ItemStack stack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.crafting.ICustomIngredient
toVanilla
-
Field Details
-
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:
testin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
getItems
- Specified by:
getItemsin interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
isSimple
public boolean isSimple()- Specified by:
isSimplein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-
getType
@NotNull public @NotNull net.neoforged.neoforge.common.crafting.IngredientType<?> getType()- Specified by:
getTypein interfacenet.neoforged.neoforge.common.crafting.ICustomIngredient
-