Class EmptyIngredient

java.lang.Object
org.moddingx.libx.crafting.ingredient.EmptyIngredient
All Implemented Interfaces:
net.neoforged.neoforge.common.crafting.ICustomIngredient

public class EmptyIngredient extends Object implements net.neoforged.neoforge.common.crafting.ICustomIngredient
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<EmptyIngredient>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EmptyIngredient>
     
    static final net.neoforged.neoforge.common.crafting.IngredientType<EmptyIngredient>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    net.neoforged.neoforge.common.crafting.IngredientType<?>
     
    int
     
    boolean
     
    Stream<net.minecraft.core.Holder<net.minecraft.world.item.Item>>
     
    boolean
    test(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class Object

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

    Methods inherited from interface net.neoforged.neoforge.common.crafting.ICustomIngredient

    display, toVanilla
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<EmptyIngredient> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, EmptyIngredient> STREAM_CODEC
    • TYPE

      public static final net.neoforged.neoforge.common.crafting.IngredientType<EmptyIngredient> TYPE
  • Constructor Details

    • EmptyIngredient

      public EmptyIngredient()
  • Method Details

    • test

      public boolean test(@Nonnull net.minecraft.world.item.ItemStack stack)
      Specified by:
      test in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • items

      @Nonnull public Stream<net.minecraft.core.Holder<net.minecraft.world.item.Item>> items()
      Specified by:
      items in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • getType

      @Nonnull public net.neoforged.neoforge.common.crafting.IngredientType<?> getType()
      Specified by:
      getType in interface net.neoforged.neoforge.common.crafting.ICustomIngredient
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object