Class CTFluidIngredient.FluidTagWithAmountIngredient
java.lang.Object
com.blamejared.crafttweaker.api.fluid.CTFluidIngredient
com.blamejared.crafttweaker.api.fluid.CTFluidIngredient.FluidTagWithAmountIngredient
- All Implemented Interfaces:
CommandStringDisplayable
- Enclosing class:
CTFluidIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.blamejared.crafttweaker.api.fluid.CTFluidIngredient
CTFluidIngredient.CompoundFluidIngredient, CTFluidIngredient.FluidStackIngredient, CTFluidIngredient.FluidTagWithAmountIngredient -
Field Summary
Fields inherited from class com.blamejared.crafttweaker.api.fluid.CTFluidIngredient
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionFluidTagWithAmountIngredient(Many<KnownTag<net.minecraft.world.level.material.Fluid>> tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddissolve()Returns the BEP to get this thingy<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) booleanmatches(IFluidStack fluidStack) booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag) booleanmatches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag, int amount) booleanmatches(net.minecraft.world.level.material.Fluid fluid) Methods inherited from class com.blamejared.crafttweaker.api.fluid.CTFluidIngredient
asCompound, contains
-
Constructor Details
-
FluidTagWithAmountIngredient
-
-
Method Details
-
getCommandString
Description copied from interface:CommandStringDisplayableReturns the BEP to get this thingy- Specified by:
getCommandStringin interfaceCommandStringDisplayable- Specified by:
getCommandStringin classCTFluidIngredient
-
mapTo
public <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) - Specified by:
mapToin classCTFluidIngredient
-
matches
public boolean matches(net.minecraft.world.level.material.Fluid fluid) - Specified by:
matchesin classCTFluidIngredient
-
matches
- Specified by:
matchesin classCTFluidIngredient
-
matches
public boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag) - Specified by:
matchesin classCTFluidIngredient
-
matches
public boolean matches(net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluidTag, int amount) - Specified by:
matchesin classCTFluidIngredient
-
dissolve
protected void dissolve()- Specified by:
dissolvein classCTFluidIngredient
-
getMatchingStacks
- Specified by:
getMatchingStacksin classCTFluidIngredient
-