Class FabricUnsealedIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
at.petrak.hexcasting.fabric.recipe.FabricUnsealedIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class FabricUnsealedIngredient
extends net.minecraft.world.item.crafting.Ingredient
-
Nested Class Summary
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 inherited from class net.minecraft.world.item.crafting.Ingredient
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFabricUnsealedIngredient(net.minecraft.world.item.ItemStack stack) -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.crafting.IngredientfromJson(com.google.gson.JsonElement element) static net.minecraft.world.item.crafting.IngredientfromNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf) static FabricUnsealedIngredientof(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()voidtoNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf) Methods inherited from class net.minecraft.world.item.crafting.Ingredient
getItems, getStackingIds, isEmpty, of, of, of, of, of
-
Constructor Details
-
FabricUnsealedIngredient
protected FabricUnsealedIngredient(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) -
toJson
@NotNull public @NotNull com.google.gson.JsonElement toJson()- Overrides:
toJsonin classnet.minecraft.world.item.crafting.Ingredient
-
fromNetwork
public static net.minecraft.world.item.crafting.Ingredient fromNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf) -
fromJson
public static net.minecraft.world.item.crafting.Ingredient fromJson(com.google.gson.JsonElement element) -
toNetwork
public void toNetwork(net.minecraft.network.FriendlyByteBuf friendlyByteBuf) - Overrides:
toNetworkin classnet.minecraft.world.item.crafting.Ingredient
-