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 Classes
    Modifier and Type
    Class
    Description
    static class 
     

    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

    Constructors
    Constructor
    Description
    NoNBTIngredient(net.minecraft.world.item.ItemStack stack)
     
    NoNBTIngredient(net.minecraft.world.level.ItemLike item)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient>
     
    boolean
     
    boolean
    test(net.minecraft.world.item.ItemStack stack)
     
    com.google.gson.JsonElement
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • 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)
      Specified by:
      test in interface Predicate<net.minecraft.world.item.ItemStack>
      Overrides:
      test in class net.minecraft.world.item.crafting.Ingredient
    • isSimple

      public boolean isSimple()
      Overrides:
      isSimple in class net.minecraft.world.item.crafting.Ingredient
    • toJson

      @Nonnull public com.google.gson.JsonElement toJson()
      Overrides:
      toJson in class net.minecraft.world.item.crafting.Ingredient
    • getSerializer

      @Nonnull public net.minecraftforge.common.crafting.IIngredientSerializer<? extends net.minecraft.world.item.crafting.Ingredient> getSerializer()
      Overrides:
      getSerializer in class net.minecraft.world.item.crafting.Ingredient