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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasCompound(CTFluidIngredient other) booleancontains(CTFluidIngredient other) protected abstract voiddissolve()abstract StringReturns the BEP to get this thingyabstract List<IFluidStack> abstract <T> TmapTo(Function<IFluidStack, T> fluidMapper, BiFunction<net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>, Integer, T> tagMapper, Function<Stream<T>, T> compoundMapper) abstract booleanmatches(IFluidStack fluidStack) abstract booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag) abstract booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag, int amount) abstract booleanmatches(net.minecraft.world.level.material.Fluid fluid)
-
Field Details
-
EMPTY
-
-
Method Details
-
getCommandString
Description copied from interface:CommandStringDisplayableReturns the BEP to get this thingy- Specified by:
getCommandStringin interfaceCommandStringDisplayable
-
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
-
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
-
contains
-
asCompound
-