Uses of Class
net.minecraft.world.level.material.Fluid
Packages that use Fluid
Package
Description
Classes for NeoForge's own data generation.
-
Uses of Fluid in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon with type parameters of type FluidModifier and TypeFieldDescriptionFluidPredicate.Builder.fluids
FluidPredicate.fluids
The field for thefluids
record component.Methods in net.minecraft.advancements.critereon that return types with arguments of type FluidModifier and TypeMethodDescriptionFluidPredicate.fluids()
Returns the value of thefluids
record component.Methods in net.minecraft.advancements.critereon with parameters of type FluidMethod parameters in net.minecraft.advancements.critereon with type arguments of type FluidModifier and TypeMethodDescriptionConstructor parameters in net.minecraft.advancements.critereon with type arguments of type FluidModifierConstructorDescriptionFluidPredicate
(Optional<HolderSet<Fluid>> fluids, Optional<StatePropertiesPredicate> properties) Creates an instance of aFluidPredicate
record class. -
Uses of Fluid in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return types with arguments of type Fluid -
Uses of Fluid in net.minecraft.client.particle
Fields in net.minecraft.client.particle declared as FluidMethods in net.minecraft.client.particle that return FluidConstructors in net.minecraft.client.particle with parameters of type FluidModifierConstructorDescription(package private)
CoolingDripHangParticle
(ClientLevel p_106068_, double p_106069_, double p_106070_, double p_106071_, Fluid p_106072_, ParticleOptions p_106073_) (package private)
DripHangParticle
(ClientLevel pLevel, double pX, double pY, double pZ, Fluid pType, ParticleOptions pFallingParticle) (package private)
DripLandParticle
(ClientLevel p_106102_, double p_106103_, double p_106104_, double p_106105_, Fluid p_106106_) protected
DripParticle
(ClientLevel pLevel, double pX, double pY, double pZ, Fluid pType) (package private)
DripstoneFallAndLandParticle
(ClientLevel p_171930_, double p_171931_, double p_171932_, double p_171933_, Fluid p_171934_, ParticleOptions p_171935_) (package private)
FallAndLandParticle
(ClientLevel pLevel, double pX, double pY, double pZ, Fluid pType, ParticleOptions pLandParticle) (package private)
FallingParticle
(ClientLevel pLevel, double pX, double pY, double pZ, Fluid pType) (package private)
FallingParticle
(ClientLevel pLevel, double pX, double pY, double pZ, Fluid pType, int pLifetime) (package private)
HoneyFallAndLandParticle
(ClientLevel p_106146_, double p_106147_, double p_106148_, double p_106149_, Fluid p_106150_, ParticleOptions p_106151_) -
Uses of Fluid in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer with type parameters of type FluidModifier and TypeFieldDescriptionprivate static final Map
<Fluid, RenderType> ItemBlockRenderTypes.TYPE_BY_FLUID
Deprecated.Methods in net.minecraft.client.renderer with parameters of type FluidModifier and TypeMethodDescriptionstatic void
ItemBlockRenderTypes.setRenderLayer
(Fluid fluid, RenderType type) Helper to set the RenderType for Fluids -
Uses of Fluid in net.minecraft.client.renderer.block
Methods in net.minecraft.client.renderer.block with parameters of type FluidModifier and TypeMethodDescriptionprivate float
LiquidBlockRenderer.calculateAverageHeight
(BlockAndTintGetter pLevel, Fluid pFluid, float pCurrentHeight, float pHeight1, float pHeight2, BlockPos pPos) private float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter pLevel, Fluid pFluid, BlockPos pPos) private float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter pLevel, Fluid pFluid, BlockPos pPos, BlockState pBlockState, FluidState pFluidState) -
Uses of Fluid in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type FluidModifier and TypeFieldDescriptionstatic final DefaultedRegistry
<Fluid> BuiltInRegistries.FLUID
static final ResourceKey
<Registry<Fluid>> Registries.FLUID
-
Uses of Fluid in net.minecraft.server.level
Fields in net.minecraft.server.level with type parameters of type FluidModifier and TypeFieldDescriptionprivate final LevelTicks
<Fluid> ServerLevel.fluidTicks
private final WorldGenTickAccess
<Fluid> WorldGenRegion.fluidTicks
Methods in net.minecraft.server.level that return types with arguments of type FluidMethods in net.minecraft.server.level with parameters of type Fluid -
Uses of Fluid in net.minecraft.tags
Fields in net.minecraft.tags with type parameters of type FluidMethods in net.minecraft.tags that return types with arguments of type Fluid -
Uses of Fluid in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type FluidMethod parameters in net.minecraft.world.entity with type arguments of type FluidModifier and TypeMethodDescriptiondouble
Entity.getFluidHeight
(TagKey<Fluid> pFluidTag) Deprecated.boolean
Entity.isEyeInFluid
(TagKey<Fluid> pFluidTag) Deprecated.protected void
LivingEntity.jumpInLiquid
(TagKey<Fluid> pFluidTag) Deprecated.protected void
Mob.jumpInLiquid
(TagKey<Fluid> pFluidTag) Deprecated.boolean
Entity.updateFluidHeightAndDoFluidPushing
(TagKey<Fluid> pFluidTag, double pMotionScale) Deprecated. -
Uses of Fluid in net.minecraft.world.entity.animal
Method parameters in net.minecraft.world.entity.animal with type arguments of type FluidModifier and TypeMethodDescriptionprotected void
Bee.jumpInLiquid
(TagKey<Fluid> pFluidTag) Deprecated. -
Uses of Fluid in net.minecraft.world.entity.monster
Method parameters in net.minecraft.world.entity.monster with type arguments of type FluidModifier and TypeMethodDescriptionprotected void
MagmaCube.jumpInLiquid
(TagKey<Fluid> pFluidTag) Deprecated. -
Uses of Fluid in net.minecraft.world.item
Fields in net.minecraft.world.item declared as FluidConstructors in net.minecraft.world.item with parameters of type FluidModifierConstructorDescriptionBucketItem
(Fluid pContent, Item.Properties pProperties) MobBucketItem
(EntityType<?> pType, Fluid pContent, SoundEvent pEmptySound, Item.Properties pProperties) -
Uses of Fluid in net.minecraft.world.level
Methods in net.minecraft.world.level that return types with arguments of type FluidMethods in net.minecraft.world.level with parameters of type FluidModifier and TypeMethodDescriptiondefault void
LevelAccessor.scheduleTick
(BlockPos pPos, Fluid pFluid, int pDelay) default void
LevelAccessor.scheduleTick
(BlockPos pPos, Fluid pFluid, int pDelay, TickPriority pPriority) -
Uses of Fluid in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block declared as FluidModifier and TypeFieldDescriptionprivate final Fluid
PointedDripstoneBlock.FluidInfo.fluid
The field for thefluid
record component.Methods in net.minecraft.world.level.block that return FluidModifier and TypeMethodDescriptionPointedDripstoneBlock.FluidInfo.fluid()
Returns the value of thefluid
record component.static Fluid
PointedDripstoneBlock.getCauldronFillFluidType
(ServerLevel pLevel, BlockPos pPos) private static Fluid
PointedDripstoneBlock.getDripFluid
(Level pLevel, Fluid pFluid) Methods in net.minecraft.world.level.block with parameters of type FluidModifier and TypeMethodDescriptionprotected boolean
EndGatewayBlock.canBeReplaced
(BlockState pState, Fluid pFluid) protected boolean
EndPortalBlock.canBeReplaced
(BlockState pState, Fluid pFluid) private static boolean
PointedDripstoneBlock.canFillCauldron
(Fluid p_154159_) boolean
BarrierBlock.canPlaceLiquid
(Player pPlayer, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
KelpBlock.canPlaceLiquid
(Player pPlayer, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
KelpPlantBlock.canPlaceLiquid
(Player pPlayer, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
LiquidBlockContainer.canPlaceLiquid
(Player pPlayer, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
SeagrassBlock.canPlaceLiquid
(Player p_296226_, BlockGetter p_296449_, BlockPos p_154511_, BlockState p_154512_, Fluid p_295712_) default boolean
SimpleWaterloggedBlock.canPlaceLiquid
(Player pPlayer, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
SlabBlock.canPlaceLiquid
(Player pPlayer, BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) boolean
TallSeagrassBlock.canPlaceLiquid
(Player p_296027_, BlockGetter p_154753_, BlockPos p_154754_, BlockState p_154755_, Fluid p_154756_) protected boolean
AbstractCauldronBlock.canReceiveStalactiteDrip
(Fluid pFluid) protected boolean
CauldronBlock.canReceiveStalactiteDrip
(Fluid pFluid) protected boolean
LayeredCauldronBlock.canReceiveStalactiteDrip
(Fluid pFluid) private static BlockPos
PointedDripstoneBlock.findFillableCauldronBelowStalactiteTip
(Level pLevel, BlockPos pPos, Fluid pFluid) private static Fluid
PointedDripstoneBlock.getDripFluid
(Level pLevel, Fluid pFluid) protected void
AbstractCauldronBlock.receiveStalactiteDrip
(BlockState pState, Level pLevel, BlockPos pPos, Fluid pFluid) protected void
CauldronBlock.receiveStalactiteDrip
(BlockState pState, Level pLevel, BlockPos pPos, Fluid pFluid) protected void
LayeredCauldronBlock.receiveStalactiteDrip
(BlockState pState, Level pLevel, BlockPos pPos, Fluid pFluid) private static void
PointedDripstoneBlock.spawnDripParticle
(Level pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) Constructors in net.minecraft.world.level.block with parameters of type FluidModifierConstructorDescription(package private)
FluidInfo
(BlockPos pos, Fluid fluid, BlockState sourceState) Creates an instance of aFluidInfo
record class. -
Uses of Fluid in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type FluidModifier and TypeMethodDescriptionboolean
BlockBehaviour.BlockStateBase.canBeReplaced
(Fluid pFluid) protected boolean
BlockBehaviour.canBeReplaced
(BlockState pState, Fluid pFluid) -
Uses of Fluid in net.minecraft.world.level.chunk
Fields in net.minecraft.world.level.chunk with type parameters of type FluidModifier and TypeFieldDescriptionprivate final SerializableTickContainer
<Fluid> ChunkAccess.TicksToSave.fluids
The field for thefluids
record component.private final LevelChunkTicks
<Fluid> LevelChunk.fluidTicks
private final ProtoChunkTicks
<Fluid> ProtoChunk.fluidTicks
UpgradeData.neighborFluidTicks
Methods in net.minecraft.world.level.chunk that return types with arguments of type FluidModifier and TypeMethodDescriptionChunkAccess.TicksToSave.fluids()
Returns the value of thefluids
record component.abstract TickContainerAccess
<Fluid> ChunkAccess.getFluidTicks()
ImposterProtoChunk.getFluidTicks()
LevelChunk.getFluidTicks()
ProtoChunk.getFluidTicks()
ProtoChunk.unpackFluidTicks()
-
Uses of Fluid in net.minecraft.world.level.levelgen.blockpredicates
Fields in net.minecraft.world.level.levelgen.blockpredicates with type parameters of type FluidMethods in net.minecraft.world.level.levelgen.blockpredicates with parameters of type FluidModifier and TypeMethodDescriptionstatic BlockPredicate
BlockPredicate.matchesFluids
(Vec3i pOffset, Fluid... pFluids) static BlockPredicate
BlockPredicate.matchesFluids
(Fluid... pFluids) Method parameters in net.minecraft.world.level.levelgen.blockpredicates with type arguments of type FluidModifier and TypeMethodDescriptionstatic BlockPredicate
BlockPredicate.matchesFluids
(Vec3i pOffset, List<Fluid> pFluids) Constructor parameters in net.minecraft.world.level.levelgen.blockpredicates with type arguments of type FluidModifierConstructorDescriptionMatchingFluidsPredicate
(Vec3i p_204695_, HolderSet<Fluid> p_204696_) -
Uses of Fluid in net.minecraft.world.level.levelgen.carver
Fields in net.minecraft.world.level.levelgen.carver with type parameters of type Fluid -
Uses of Fluid in net.minecraft.world.level.material
Subclasses of Fluid in net.minecraft.world.level.materialModifier and TypeClassDescriptionclass
class
class
static class
static class
class
static class
static class
Fields in net.minecraft.world.level.material declared as FluidFields in net.minecraft.world.level.material with type parameters of type FluidModifier and TypeFieldDescriptionprivate final Holder.Reference
<Fluid> Fluid.builtInRegistryHolder
protected final StateDefinition
<Fluid, FluidState> Fluid.stateDefinition
Methods in net.minecraft.world.level.material with type parameters of type FluidMethods in net.minecraft.world.level.material that return FluidModifier and TypeMethodDescriptionabstract Fluid
FlowingFluid.getFlowing()
LavaFluid.getFlowing()
WaterFluid.getFlowing()
abstract Fluid
FlowingFluid.getSource()
LavaFluid.getSource()
WaterFluid.getSource()
FluidState.getType()
Methods in net.minecraft.world.level.material that return types with arguments of type FluidModifier and TypeMethodDescriptionFluid.builtInRegistryHolder()
Deprecated.Fluid.getStateDefinition()
FluidState.getTags()
FluidState.holder()
Methods in net.minecraft.world.level.material with parameters of type FluidModifier and TypeMethodDescriptionboolean
EmptyFluid.canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState pState, BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) boolean
FluidState.canBeReplacedWith
(BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) boolean
LavaFluid.canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) boolean
WaterFluid.canBeReplacedWith
(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) private boolean
FlowingFluid.canHoldFluid
(BlockGetter pLevel, BlockPos pPos, BlockState pState, Fluid pFluid) private boolean
FlowingFluid.canPassThrough
(BlockGetter pLevel, Fluid pFluid, BlockPos pPos, BlockState pState, Direction pDirection, BlockPos pSpreadPos, BlockState pSpreadState, FluidState pFluidState) protected boolean
FlowingFluid.canSpreadTo
(BlockGetter pLevel, BlockPos pFromPos, BlockState pFromBlockState, Direction pDirection, BlockPos pToPos, BlockState pToBlockState, FluidState pToFluidState, Fluid pFluid) boolean
boolean
boolean
boolean
boolean
FluidState.isSourceOfType
(Fluid pFluid) private boolean
FlowingFluid.isWaterHole
(BlockGetter pLevel, Fluid pFluid, BlockPos pPos, BlockState pState, BlockPos pSpreadPos, BlockState pSpreadState) Method parameters in net.minecraft.world.level.material with type arguments of type FluidModifier and TypeMethodDescriptionprotected void
FlowingFluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> pBuilder) protected void
Fluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> pBuilder) protected void
LavaFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> pBuilder) protected void
WaterFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> pBuilder) boolean
Deprecated.boolean
boolean
Constructors in net.minecraft.world.level.material with parameters of type FluidModifierConstructorDescriptionFluidState
(Fluid p_76149_, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> p_325993_, com.mojang.serialization.MapCodec<FluidState> p_76151_) -
Uses of Fluid in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type Fluid -
Uses of Fluid in net.neoforged.neoforge.client.model
Fields in net.neoforged.neoforge.client.model declared as FluidMethods in net.neoforged.neoforge.client.model with parameters of type FluidModifier and TypeMethodDescriptionReturns a new ModelDynBucket representing the given fluid, but with the same other properties (flipGas, tint, coverIsMask).Constructors in net.neoforged.neoforge.client.model with parameters of type FluidModifierConstructorDescriptionprivate
DynamicFluidContainerModel
(Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity) -
Uses of Fluid in net.neoforged.neoforge.client.model.generators.loaders
Methods in net.neoforged.neoforge.client.model.generators.loaders with parameters of type FluidModifier and TypeMethodDescription -
Uses of Fluid in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common with type parameters of type FluidModifier and TypeFieldDescriptionTags.Fluids.BEETROOT_SOUP
Holds all fluids related to Beetroot Soup.Tags.Fluids.EXPERIENCE
Holds all fluids related to experience.static final DeferredHolder
<Fluid, Fluid> NeoForgeMod.FLOWING_MILK
static final DeferredHolder
<Fluid, Fluid> NeoForgeMod.FLOWING_MILK
Tags.Fluids.GASEOUS
Holds all fluids that are gaseous at room temperature.Tags.Fluids.HIDDEN_FROM_RECIPE_VIEWERS
Tag that holds all fluids that recipe viewers should not show to users.Tags.Fluids.HONEY
Holds all fluids related to honey.Tags.Fluids.LAVA
Holds all fluids related to lava.static final DeferredHolder
<Fluid, Fluid> NeoForgeMod.MILK
static final DeferredHolder
<Fluid, Fluid> NeoForgeMod.MILK
Tags.Fluids.MILK
Holds all fluids related to milk.Tags.Fluids.MUSHROOM_STEW
Holds all fluids related to Mushroom Stew.Tags.Fluids.POTION
Holds all fluids related to potions.Tags.Fluids.RABBIT_STEW
Holds all fluids related to Rabbit Stew.Tags.Fluids.SUSPICIOUS_STEW
Holds all fluids related to Suspicious Stew.Tags.Fluids.WATER
Holds all fluids related to water.Methods in net.neoforged.neoforge.common that return types with arguments of type FluidMethods in net.neoforged.neoforge.common with parameters of type FluidModifier and TypeMethodDescriptionstatic FluidType
CommonHooks.getVanillaFluidType
(Fluid fluid) Returns a vanilla fluid type for the given fluid. -
Uses of Fluid in net.neoforged.neoforge.common.data.internal
Methods in net.neoforged.neoforge.common.data.internal that return types with arguments of type FluidModifier and TypeMethodDescriptionNeoForgeFluidTagsProvider.tagWithOptionalLegacy
(TagKey<Fluid> tag) Method parameters in net.neoforged.neoforge.common.data.internal with type arguments of type FluidModifier and TypeMethodDescriptionNeoForgeFluidTagsProvider.tagWithOptionalLegacy
(TagKey<Fluid> tag) -
Uses of Fluid in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return Fluid -
Uses of Fluid in net.neoforged.neoforge.fluids
Subclasses of Fluid in net.neoforged.neoforge.fluidsModifier and TypeClassDescriptionclass
Base implementation of aFlowingFluid
for mods to use.static class
static class
Fields in net.neoforged.neoforge.fluids declared as FluidModifier and TypeFieldDescriptionfinal Fluid
CauldronFluidContent.fluid
Fluid stored inside the cauldron.private final Fluid
FluidStack.fluid
Fields in net.neoforged.neoforge.fluids with type parameters of type FluidModifier and TypeFieldDescriptionBaseFlowingFluid.flowing
BaseFlowingFluid.Properties.flowing
FluidStack.FLUID_NON_EMPTY_CODEC
private static final Map
<Fluid, CauldronFluidContent> CauldronFluidContent.FLUID_TO_CAULDRON
BaseFlowingFluid.Properties.still
BaseFlowingFluid.still
Methods in net.neoforged.neoforge.fluids that return FluidModifier and TypeMethodDescriptionBaseFlowingFluid.getFlowing()
FluidStack.getFluid()
Returns the fluid in this stack, orFluids.EMPTY
if this stack is empty.SimpleFluidContent.getFluid()
BaseFlowingFluid.getSource()
Methods in net.neoforged.neoforge.fluids that return types with arguments of type FluidModifier and TypeMethodDescriptionFluidStack.getFluidHolder()
SimpleFluidContent.getFluidHolder()
FluidStack.getTags()
Methods in net.neoforged.neoforge.fluids with parameters of type FluidModifier and TypeMethodDescriptionprotected boolean
BaseFlowingFluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) private static IFluidHandler
FluidUtil.getFluidBlockHandler
(Fluid fluid, Level level, BlockPos pos) Internal method for getting a fluid block handler for placing a fluid.static @Nullable CauldronFluidContent
CauldronFluidContent.getForFluid
(Fluid fluid) Get the cauldron fluid content for a fluid, ornull
if no cauldron was registered for that fluid (yet).boolean
FluidType.handleCauldronDrip
(Fluid fluid, Level level, BlockPos cauldronPos) Returns whether a fluid above a pointed dripstone block can successfully fill a cauldron below.boolean
boolean
boolean
(package private) static void
CauldronFluidContent.register
(Block block, Fluid fluid, int totalAmount, @Nullable IntegerProperty levelProperty) Do not try to call, use theRegisterCauldronFluidContentEvent
event instead.void
RegisterCauldronFluidContentEvent.register
(Block block, Fluid fluid, int totalAmount, @Nullable IntegerProperty levelProperty) Register a new cauldron, allowing it to be filled and emptied through the standard capability.Method parameters in net.neoforged.neoforge.fluids with type arguments of type FluidModifier and TypeMethodDescriptionprotected void
BaseFlowingFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Constructors in net.neoforged.neoforge.fluids with parameters of type FluidModifierConstructorDescriptionprivate
CauldronFluidContent
(Block block, Fluid fluid, int totalAmount, int maxLevel, @Nullable IntegerProperty levelProperty) FluidStack
(Fluid fluid, int amount) private
FluidStack
(Fluid fluid, int amount, PatchedDataComponentMap components) Constructor parameters in net.neoforged.neoforge.fluids with type arguments of type FluidModifierConstructorDescriptionFluidStack
(Holder<Fluid> fluid, int amount) FluidStack
(Holder<Fluid> fluid, int amount, DataComponentPatch patch) -
Uses of Fluid in net.neoforged.neoforge.fluids.crafting
Fields in net.neoforged.neoforge.fluids.crafting with type parameters of type FluidModifier and TypeFieldDescriptionSingleFluidIngredient.fluid
DataComponentFluidIngredient.fluids
TagFluidIngredient.tag
Methods in net.neoforged.neoforge.fluids.crafting that return types with arguments of type FluidModifier and TypeMethodDescriptionSingleFluidIngredient.fluid()
DataComponentFluidIngredient.fluids()
TagFluidIngredient.tag()
Methods in net.neoforged.neoforge.fluids.crafting with parameters of type FluidModifier and TypeMethodDescriptionstatic <T> FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, Supplier<? extends DataComponentType<? super T>> type, T value, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentPredicate predicate, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic <T> FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentType<? super T> type, T value, Fluid... fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
static SizedFluidIngredient
static FluidIngredient
Method parameters in net.neoforged.neoforge.fluids.crafting with type arguments of type FluidModifier and TypeMethodDescriptionstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentMap map, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsstatic FluidIngredient
DataComponentFluidIngredient.of
(boolean strict, DataComponentPredicate predicate, HolderSet<Fluid> fluids) Creates a new ingredient matching any fluid from the list, containing the given componentsprivate static FluidIngredient
static SizedFluidIngredient
Helper method to create a simple sized ingredient that matches fluids in a tag.static FluidIngredient
static FluidIngredient
Constructor parameters in net.neoforged.neoforge.fluids.crafting with type arguments of type FluidModifierConstructorDescriptionDataComponentFluidIngredient
(HolderSet<Fluid> fluids, DataComponentPredicate components, boolean strict) SingleFluidIngredient
(Holder<Fluid> fluid) TagFluidIngredient
(TagKey<Fluid> tag) -
Uses of Fluid in net.neoforged.neoforge.oldtest
Methods in net.neoforged.neoforge.oldtest with parameters of type FluidModifier and TypeMethodDescriptionprivate static void
FluidUtilTest.checkFluidStack
(FluidStack stack, Fluid fluid, int amount) -
Uses of Fluid in net.neoforged.neoforge.oldtest.fluid
Fields in net.neoforged.neoforge.oldtest.fluid with type parameters of type FluidModifier and TypeFieldDescriptionprivate static final DeferredRegister
<Fluid> FluidTypeTest.FLUIDS
static final DeferredRegister
<Fluid> NewFluidTest.FLUIDS
static DeferredHolder
<Fluid, FlowingFluid> NewFluidTest.test_fluid
private static final DeferredHolder
<Fluid, FlowingFluid> FluidTypeTest.TEST_FLUID
static DeferredHolder
<Fluid, FlowingFluid> NewFluidTest.test_fluid_flowing
private static final DeferredHolder
<Fluid, Fluid> FluidTypeTest.TEST_FLUID_FLOWING
private static final DeferredHolder
<Fluid, Fluid> FluidTypeTest.TEST_FLUID_FLOWING
Methods in net.neoforged.neoforge.oldtest.fluid with parameters of type FluidModifier and TypeMethodDescriptionboolean
NewFluidTest.FluidloggableBlock.canPlaceLiquid
(@Nullable Player player, BlockGetter worldIn, BlockPos pos, BlockState state, Fluid fluidIn)