Class ForgeUnsealedIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.AbstractIngredient
at.petrak.hexcasting.forge.recipe.ForgeUnsealedIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class ForgeUnsealedIngredient
extends net.minecraftforge.common.crafting.AbstractIngredient
-
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
Fields inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForgeUnsealedIngredient(net.minecraft.world.item.ItemStack stack) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>booleanisSimple()static ForgeUnsealedIngredientof(net.minecraft.world.item.ItemStack stack) Creates a new ingredient matching the given stackbooleantest(net.minecraft.world.item.ItemStack input) @NotNull com.google.gson.JsonElementtoJson()Methods inherited from class net.minecraftforge.common.crafting.AbstractIngredient
fromJson, fromNetwork, fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, toNetwork, valueFromJson
-
Constructor Details
-
ForgeUnsealedIngredient
protected ForgeUnsealedIngredient(net.minecraft.world.item.ItemStack stack)
-
-
Method Details
-
of
Creates a new ingredient matching the given stack -
test
public boolean test(@Nullable net.minecraft.world.item.ItemStack input) -
isSimple
public boolean isSimple()- Specified by:
isSimplein classnet.minecraftforge.common.crafting.AbstractIngredient
-
getSerializer
@NotNull public @NotNull net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()- Specified by:
getSerializerin classnet.minecraftforge.common.crafting.AbstractIngredient
-
toJson
@NotNull public @NotNull com.google.gson.JsonElement toJson()- Specified by:
toJsonin classnet.minecraftforge.common.crafting.AbstractIngredient
-