Package de.cech12.bucketlib.api.crafting
Class EmptyIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
net.minecraftforge.common.crafting.ingredients.AbstractIngredient
de.cech12.bucketlib.api.crafting.EmptyIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class EmptyIngredient
extends net.minecraftforge.common.crafting.ingredients.AbstractIngredient
-
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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EmptyIngredient>protected net.minecraft.world.item.Itemstatic final net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<EmptyIngredient>protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item>Fields inherited from class net.minecraft.world.item.crafting.Ingredient
CODEC_NONEMPTY, EMPTY, VANILLA_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionEmptyIngredient(Optional<net.minecraft.resources.ResourceLocation> itemOptional, Optional<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> tagOptional) EmptyIngredient(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) EmptyIngredient(net.minecraft.world.item.Item item) EmptyIngredient(net.minecraft.world.item.Item item, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack[]getItems()protected voidbooleanisEmpty()booleanisSimple()net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>booleantest(net.minecraft.world.item.ItemStack itemStack) Methods inherited from class net.minecraftforge.common.crafting.ingredients.AbstractIngredient
fromNetwork, fromValues, of, of, of, of, ofMethods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, equals, getStackingIds, invalidateAll, isVanilla, markValid, toNetwork, toString
-
Field Details
-
item
protected net.minecraft.world.item.Item item -
tag
protected net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag -
CODEC
-
SERIALIZER
public static final net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<EmptyIngredient> SERIALIZER
-
-
Constructor Details
-
EmptyIngredient
public EmptyIngredient(net.minecraft.world.item.Item item, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) -
EmptyIngredient
public EmptyIngredient(net.minecraft.world.item.Item item) -
EmptyIngredient
public EmptyIngredient(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag) -
EmptyIngredient
public EmptyIngredient() -
EmptyIngredient
-
-
Method Details
-
test
public boolean test(net.minecraft.world.item.ItemStack itemStack) -
getItems
@Nonnull public net.minecraft.world.item.ItemStack[] getItems()- Overrides:
getItemsin classnet.minecraft.world.item.crafting.Ingredient
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classnet.minecraft.world.item.crafting.Ingredient
-
isSimple
public boolean isSimple()- Specified by:
isSimplein classnet.minecraftforge.common.crafting.ingredients.AbstractIngredient
-
invalidate
protected void invalidate()- Overrides:
invalidatein classnet.minecraft.world.item.crafting.Ingredient
-
serializer
@Nonnull public net.minecraftforge.common.crafting.ingredients.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> serializer()- Specified by:
serializerin classnet.minecraftforge.common.crafting.ingredients.AbstractIngredient
-