Class CTFluidIngredient

java.lang.Object
com.blamejared.crafttweaker.api.fluid.CTFluidIngredient
All Implemented Interfaces:
CommandStringDisplayable
Direct Known Subclasses:
CTFluidIngredient.CompoundFluidIngredient, CTFluidIngredient.FluidStackIngredient, CTFluidIngredient.FluidTagWithAmountIngredient

@ZenRegister public abstract class CTFluidIngredient extends Object implements CommandStringDisplayable
FluidIngredient that facilitates accepting either a single, or multiple IFluidStacks, s or Many<KnownTag<net.minecraft.world.level.material.Fluid>>s.
  • Field Details

  • Method Details

    • getCommandString

      public abstract String getCommandString()
      Description copied from interface: CommandStringDisplayable
      Returns the BEP to get this thingy
      Specified by:
      getCommandString in interface CommandStringDisplayable
    • mapTo

      public abstract <T> T mapTo(Function<IFluidStack,T> fluidMapper, BiFunction<net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>,Integer,T> tagMapper, Function<Stream<T>,T> compoundMapper)
    • matches

      public abstract boolean matches(net.minecraft.world.level.material.Fluid fluid)
    • matches

      public abstract boolean matches(IFluidStack fluidStack)
    • matches

      public abstract boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag)
    • matches

      public abstract boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag, int amount)
    • dissolve

      protected abstract void dissolve()
    • getMatchingStacks

      public abstract List<IFluidStack> getMatchingStacks()
    • contains

      public boolean contains(CTFluidIngredient other)
    • asCompound

      public CTFluidIngredient asCompound(CTFluidIngredient other)