Class FluidIngredient.FluidStackIngredient
java.lang.Object
com.simibubi.create.foundation.fluid.FluidIngredient
com.simibubi.create.foundation.fluid.FluidIngredient.FluidStackIngredient
- All Implemented Interfaces:
Predicate<net.neoforged.neoforge.fluids.FluidStack>
- Enclosing class:
FluidIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.foundation.fluid.FluidIngredient
FluidIngredient.FluidStackIngredient, FluidIngredient.FluidTagIngredient, FluidIngredient.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FluidIngredient.FluidStackIngredient> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, FluidIngredient.FluidStackIngredient> Fields inherited from class com.simibubi.create.foundation.fluid.FluidIngredient
amountRequired, EMPTY, matchingFluidStacks -
Constructor Summary
ConstructorsConstructorDescriptionFluidStackIngredient(net.minecraft.world.level.material.Fluid fluid, int amountRequired) FluidStackIngredient(net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.component.DataComponentPatch tagToMatch, int amountRequired) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<net.neoforged.neoforge.fluids.FluidStack> protected FluidIngredient.TypegetType()protected voidreadInternal(net.minecraft.network.RegistryFriendlyByteBuf buffer) protected booleantestInternal(net.neoforged.neoforge.fluids.FluidStack t) protected voidwriteInternal(net.minecraft.network.RegistryFriendlyByteBuf buffer) Methods inherited from class com.simibubi.create.foundation.fluid.FluidIngredient
fromFluid, fromFluidStack, fromTag, getMatchingFluidStacks, getRequiredAmount, read, test, write
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,FluidIngredient.FluidStackIngredient> STREAM_CODEC
-
-
Constructor Details
-
FluidStackIngredient
public FluidStackIngredient() -
FluidStackIngredient
public FluidStackIngredient(net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.component.DataComponentPatch tagToMatch, int amountRequired) -
FluidStackIngredient
public FluidStackIngredient(net.minecraft.world.level.material.Fluid fluid, int amountRequired)
-
-
Method Details
-
testInternal
protected boolean testInternal(net.neoforged.neoforge.fluids.FluidStack t) - Specified by:
testInternalin classFluidIngredient
-
readInternal
protected void readInternal(net.minecraft.network.RegistryFriendlyByteBuf buffer) - Specified by:
readInternalin classFluidIngredient
-
writeInternal
protected void writeInternal(net.minecraft.network.RegistryFriendlyByteBuf buffer) - Specified by:
writeInternalin classFluidIngredient
-
determineMatchingFluidStacks
- Specified by:
determineMatchingFluidStacksin classFluidIngredient
-
getType
- Specified by:
getTypein classFluidIngredient
-