Class FluidIngredient.FluidTagIngredient
java.lang.Object
com.simibubi.create.foundation.fluid.FluidIngredient
com.simibubi.create.foundation.fluid.FluidIngredient.FluidTagIngredient
- All Implemented Interfaces:
Predicate<net.minecraftforge.fluids.FluidStack>
- Enclosing class:
- FluidIngredient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.simibubi.create.foundation.fluid.FluidIngredient
FluidIngredient.FluidStackIngredient, FluidIngredient.FluidTagIngredient -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>Fields inherited from class com.simibubi.create.foundation.fluid.FluidIngredient
amountRequired, EMPTY, matchingFluidStacks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<net.minecraftforge.fluids.FluidStack>protected voidreadInternal(com.google.gson.JsonObject json) protected voidreadInternal(net.minecraft.network.FriendlyByteBuf buffer) protected booleantestInternal(net.minecraftforge.fluids.FluidStack t) protected voidwriteInternal(com.google.gson.JsonObject json) protected voidwriteInternal(net.minecraft.network.FriendlyByteBuf buffer) Methods inherited from class com.simibubi.create.foundation.fluid.FluidIngredient
deserialize, fromFluid, fromFluidStack, fromTag, getMatchingFluidStacks, getRequiredAmount, isFluidIngredient, read, serialize, test, write
-
Field Details
-
tag
protected net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag
-
-
Constructor Details
-
FluidTagIngredient
public FluidTagIngredient()
-
-
Method Details
-
testInternal
protected boolean testInternal(net.minecraftforge.fluids.FluidStack t) - Specified by:
testInternalin classFluidIngredient
-
readInternal
protected void readInternal(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
readInternalin classFluidIngredient
-
writeInternal
protected void writeInternal(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
writeInternalin classFluidIngredient
-
readInternal
protected void readInternal(com.google.gson.JsonObject json) - Specified by:
readInternalin classFluidIngredient
-
writeInternal
protected void writeInternal(com.google.gson.JsonObject json) - Specified by:
writeInternalin classFluidIngredient
-
determineMatchingFluidStacks
- Specified by:
determineMatchingFluidStacksin classFluidIngredient
-