Class NoNBTIngredient
java.lang.Object
net.minecraft.world.item.crafting.Ingredient
me.desht.pneumaticcraft.api.crafting.ingredient.NoNBTIngredient
- All Implemented Interfaces:
Predicate<net.minecraft.world.item.ItemStack>
public class NoNBTIngredient
extends net.minecraft.world.item.crafting.Ingredient
Like a vanilla ingredient, but requires the item must have no NBT whatsoever
-
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
ConstructorsConstructorDescriptionNoNBTIngredient(net.minecraft.world.item.ItemStack stack) NoNBTIngredient(net.minecraft.world.level.ItemLike item) -
Method Summary
Methods inherited from class net.minecraft.world.item.crafting.Ingredient
checkInvalidation, fromJson, fromJson, fromNetwork, fromValues, getItems, getStackingIds, invalidate, invalidateAll, isEmpty, isVanilla, markValid, merge, of, of, of, of, of, toNetwork, valueFromJson
-
Constructor Details
-
NoNBTIngredient
public NoNBTIngredient(net.minecraft.world.item.ItemStack stack) -
NoNBTIngredient
public NoNBTIngredient(net.minecraft.world.level.ItemLike item)
-
-
Method Details
-
test
public boolean test(@Nullable net.minecraft.world.item.ItemStack stack) -
isSimple
public boolean isSimple()- Overrides:
isSimplein classnet.minecraft.world.item.crafting.Ingredient
-
toJson
@Nonnull public com.google.gson.JsonElement toJson()- Overrides:
toJsonin classnet.minecraft.world.item.crafting.Ingredient
-
getSerializer
@Nonnull public net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()- Overrides:
getSerializerin classnet.minecraft.world.item.crafting.Ingredient
-