Class RegExFluidIngredient

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

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

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

    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<RegExFluidIngredient> CODEC
    • STREAM_CODEC

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

      public final Pattern pattern
    • patternString

      public final String patternString
  • Constructor Details

    • RegExFluidIngredient

      public RegExFluidIngredient(Pattern pattern)
  • 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