Class NamespaceFluidIngredient

java.lang.Object
net.neoforged.neoforge.fluids.crafting.FluidIngredient
dev.latvian.mods.kubejs.fluid.NamespaceFluidIngredient
All Implemented Interfaces:
Predicate<net.neoforged.neoforge.fluids.FluidStack>

public class NamespaceFluidIngredient extends net.neoforged.neoforge.fluids.crafting.FluidIngredient
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<NamespaceFluidIngredient>
     
    final String
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,NamespaceFluidIngredient>
     

    Fields inherited from class net.neoforged.neoforge.fluids.crafting.FluidIngredient

    CODEC_NON_EMPTY, LIST_CODEC, LIST_CODEC_NON_EMPTY, MAP_CODEC_NONEMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected Stream<net.neoforged.neoforge.fluids.FluidStack>
     
    net.neoforged.neoforge.fluids.crafting.FluidIngredientType<?>
     
    int
     
    boolean
     
    boolean
    test(net.neoforged.neoforge.fluids.FluidStack fs)
     

    Methods inherited from class net.neoforged.neoforge.fluids.crafting.FluidIngredient

    empty, getStacks, hasNoFluids, isEmpty, of, of, of, single, single, single, tag

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • CODEC

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

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,NamespaceFluidIngredient> STREAM_CODEC
    • namespace

      public final String namespace
  • Constructor Details

    • NamespaceFluidIngredient

      public NamespaceFluidIngredient(String namespace)
  • Method Details

    • getType

      public net.neoforged.neoforge.fluids.crafting.FluidIngredientType<?> getType()
      Specified by:
      getType in class net.neoforged.neoforge.fluids.crafting.FluidIngredient
    • test

      public boolean test(net.neoforged.neoforge.fluids.FluidStack fs)
      Specified by:
      test in interface Predicate<net.neoforged.neoforge.fluids.FluidStack>
      Specified by:
      test in class net.neoforged.neoforge.fluids.crafting.FluidIngredient
    • generateStacks

      protected Stream<net.neoforged.neoforge.fluids.FluidStack> generateStacks()
      Specified by:
      generateStacks in class net.neoforged.neoforge.fluids.crafting.FluidIngredient
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in class net.neoforged.neoforge.fluids.crafting.FluidIngredient
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class net.neoforged.neoforge.fluids.crafting.FluidIngredient
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class net.neoforged.neoforge.fluids.crafting.FluidIngredient