Uses of Class
net.minecraft.world.level.material.FluidState
Packages that use FluidState
Package
Description
-
Uses of FluidState in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type FluidState -
Uses of FluidState in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type FluidStateModifier and TypeMethodDescriptionstatic RenderType
ItemBlockRenderTypes.getRenderLayer
(FluidState fluidState) -
Uses of FluidState in net.minecraft.client.renderer.block
Methods in net.minecraft.client.renderer.block with parameters of type FluidStateModifier and TypeMethodDescriptionprivate float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter level, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) private static boolean
LiquidBlockRenderer.isNeighborSameFluid
(FluidState firstState, FluidState secondState) private static boolean
LiquidBlockRenderer.isNeighborStateHidingOverlay
(FluidState selfState, BlockState otherState, Direction neighborFace) void
BlockRenderDispatcher.renderLiquid
(BlockPos pos, BlockAndTintGetter level, VertexConsumer consumer, BlockState blockState, FluidState fluidState) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState blockState, Direction side, FluidState neighborFluid) Deprecated.Neo: use overload that accepts BlockStatevoid
LiquidBlockRenderer.tesselate
(BlockAndTintGetter level, BlockPos pos, VertexConsumer buffer, BlockState blockState, FluidState fluidState) -
Uses of FluidState in net.minecraft.client.renderer.chunk
Methods in net.minecraft.client.renderer.chunk that return FluidState -
Uses of FluidState in net.minecraft.nbt
Methods in net.minecraft.nbt with parameters of type FluidState -
Uses of FluidState in net.minecraft.server.level
Methods in net.minecraft.server.level that return FluidStateMethod parameters in net.minecraft.server.level with type arguments of type FluidStateModifier and TypeMethodDescriptionboolean
WorldGenRegion.isFluidAtPosition
(BlockPos pos, Predicate<FluidState> predicate) -
Uses of FluidState in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
LivingEntity.canStandOnFluid
(FluidState fluidState) float
Entity.getBlockExplosionResistance
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entity -
Uses of FluidState in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type FluidState -
Uses of FluidState in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type FluidStateModifier and TypeMethodDescriptionfloat
WitherSkull.getBlockExplosionResistance
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entity -
Uses of FluidState in net.minecraft.world.entity.vehicle
Methods in net.minecraft.world.entity.vehicle with parameters of type FluidStateModifier and TypeMethodDescriptionfloat
MinecartTNT.getBlockExplosionResistance
(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entity -
Uses of FluidState in net.minecraft.world.level
Fields in net.minecraft.world.level with type parameters of type FluidStateMethods in net.minecraft.world.level that return FluidStateModifier and TypeMethodDescriptionBlockGetter.getFluidState
(BlockPos pos) EmptyBlockGetter.getFluidState
(BlockPos pos) Level.getFluidState
(BlockPos pos) PathNavigationRegion.getFluidState
(BlockPos pos) Methods in net.minecraft.world.level with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
ClipContext.Fluid.canPick
(FluidState state) EntityBasedExplosionDamageCalculator.getBlockExplosionResistance
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, FluidState fluid) ExplosionDamageCalculator.getBlockExplosionResistance
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, FluidState fluid) SimpleExplosionDamageCalculator.getBlockExplosionResistance
(Explosion explosion, BlockGetter reader, BlockPos pos, BlockState state, FluidState fluid) ClipContext.getFluidShape
(FluidState state, BlockGetter level, BlockPos pos) static boolean
NaturalSpawner.isValidEmptySpawnBlock
(BlockGetter block, BlockPos pos, BlockState blockState, FluidState fluidState, EntityType<?> entityType) Method parameters in net.minecraft.world.level with type arguments of type FluidStateModifier and TypeMethodDescriptionboolean
Level.isFluidAtPosition
(BlockPos pos, Predicate<FluidState> predicate) boolean
LevelSimulatedReader.isFluidAtPosition
(BlockPos pos, Predicate<FluidState> predicate) Constructor parameters in net.minecraft.world.level with type arguments of type FluidState -
Uses of FluidState in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type FluidStateMethods in net.minecraft.world.level.block that return FluidStateModifier and TypeMethodDescriptionprotected FluidState
AmethystClusterBlock.getFluidState
(BlockState state) protected FluidState
BarrierBlock.getFluidState
(BlockState state) protected FluidState
BaseCoralPlantTypeBlock.getFluidState
(BlockState state) protected FluidState
BaseRailBlock.getFluidState
(BlockState state) protected FluidState
BigDripleafBlock.getFluidState
(BlockState state) protected FluidState
BigDripleafStemBlock.getFluidState
(BlockState state) protected FluidState
BubbleColumnBlock.getFluidState
(BlockState state) protected FluidState
CampfireBlock.getFluidState
(BlockState state) protected FluidState
CandleBlock.getFluidState
(BlockState state) protected FluidState
ChainBlock.getFluidState
(BlockState state) protected FluidState
ChestBlock.getFluidState
(BlockState state) protected FluidState
ConduitBlock.getFluidState
(BlockState state) protected FluidState
CrossCollisionBlock.getFluidState
(BlockState state) protected FluidState
DecoratedPotBlock.getFluidState
(BlockState p_272593_) protected FluidState
EnderChestBlock.getFluidState
(BlockState state) protected FluidState
GlowLichenBlock.getFluidState
(BlockState state) protected FluidState
HangingRootsBlock.getFluidState
(BlockState p_153360_) protected FluidState
HeavyCoreBlock.getFluidState
(BlockState p_335518_) protected FluidState
KelpBlock.getFluidState
(BlockState state) protected FluidState
KelpPlantBlock.getFluidState
(BlockState state) protected FluidState
LadderBlock.getFluidState
(BlockState state) protected FluidState
LanternBlock.getFluidState
(BlockState state) protected FluidState
LeavesBlock.getFluidState
(BlockState state) protected FluidState
LightBlock.getFluidState
(BlockState state) protected FluidState
LightningRodBlock.getFluidState
(BlockState state) protected FluidState
LiquidBlock.getFluidState
(BlockState state) protected FluidState
MangrovePropaguleBlock.getFluidState
(BlockState state) protected FluidState
MangroveRootsBlock.getFluidState
(BlockState p_221523_) protected FluidState
PointedDripstoneBlock.getFluidState
(BlockState state) protected FluidState
ScaffoldingBlock.getFluidState
(BlockState state) protected FluidState
SculkSensorBlock.getFluidState
(BlockState state) protected FluidState
SculkShriekerBlock.getFluidState
(BlockState state) protected FluidState
SculkVeinBlock.getFluidState
(BlockState state) protected FluidState
SeagrassBlock.getFluidState
(BlockState p_154537_) protected FluidState
SeaPickleBlock.getFluidState
(BlockState state) protected FluidState
SignBlock.getFluidState
(BlockState state) protected FluidState
SlabBlock.getFluidState
(BlockState state) protected FluidState
SmallDripleafBlock.getFluidState
(BlockState p_154634_) protected FluidState
StairBlock.getFluidState
(BlockState state) protected FluidState
TallSeagrassBlock.getFluidState
(BlockState p_154772_) protected FluidState
TrapDoorBlock.getFluidState
(BlockState state) protected FluidState
WallBlock.getFluidState
(BlockState state) protected FluidState
WaterloggedTransparentBlock.getFluidState
(BlockState p_313789_) Methods in net.minecraft.world.level.block with parameters of type FluidStateModifier and TypeMethodDescriptionprotected static boolean
BigDripleafBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) boolean
CampfireBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
CandleBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
SlabBlock.placeLiquid
(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) private static boolean
ConcretePowderBlock.shouldSolidify
(BlockGetter level, BlockPos pos, BlockState state, FluidState fluidState) -
Uses of FluidState in net.minecraft.world.level.block.state
Fields in net.minecraft.world.level.block.state declared as FluidStateMethods in net.minecraft.world.level.block.state that return FluidStateModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getFluidState()
protected FluidState
BlockBehaviour.getFluidState
(BlockState state) -
Uses of FluidState in net.minecraft.world.level.chunk
Methods in net.minecraft.world.level.chunk that return FluidStateModifier and TypeMethodDescriptionEmptyLevelChunk.getFluidState
(BlockPos pos) ImposterProtoChunk.getFluidState
(BlockPos pos) LevelChunk.getFluidState
(int x, int y, int z) LevelChunk.getFluidState
(BlockPos pos) LevelChunkSection.getFluidState
(int x, int y, int z) ProtoChunk.getFluidState
(BlockPos pos) -
Uses of FluidState in net.minecraft.world.level.levelgen.carver
Fields in net.minecraft.world.level.levelgen.carver declared as FluidStateModifier and TypeFieldDescriptionprotected static final FluidState
WorldCarver.LAVA
protected static final FluidState
WorldCarver.WATER
-
Uses of FluidState in net.minecraft.world.level.levelgen.feature.configurations
Fields in net.minecraft.world.level.levelgen.feature.configurations declared as FluidStateConstructors in net.minecraft.world.level.levelgen.feature.configurations with parameters of type FluidStateModifierConstructorDescriptionSpringConfiguration
(FluidState state, boolean requiresBlockBelow, int rockCount, int holeCount, HolderSet<Block> validBlocks) -
Uses of FluidState in net.minecraft.world.level.material
Fields in net.minecraft.world.level.material declared as FluidStateFields in net.minecraft.world.level.material with type parameters of type FluidStateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<FluidState> FluidState.CODEC
static final IdMapper
<FluidState> Fluid.FLUID_STATE_REGISTRY
private final Map
<FluidState, VoxelShape> FlowingFluid.shapes
protected final StateDefinition
<Fluid, FluidState> Fluid.stateDefinition
Methods in net.minecraft.world.level.material that return FluidStateModifier and TypeMethodDescriptionfinal FluidState
Fluid.defaultFluidState()
FlowingFluid.getFlowing
(int level, boolean falling) protected FluidState
FlowingFluid.getNewLiquid
(Level level, BlockPos pos, BlockState blockState) FlowingFluid.getSource
(boolean falling) Methods in net.minecraft.world.level.material that return types with arguments of type FluidStateModifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowingFluid.getSpread
(Level level, BlockPos pos, BlockState state) Fluid.getStateDefinition()
Methods in net.minecraft.world.level.material with parameters of type FluidStateModifier and TypeMethodDescriptionprivate boolean
FlowingFluid.affectsFlow
(FluidState state) protected void
Fluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
LavaFluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
WaterFluid.animateTick
(Level level, BlockPos pos, FluidState state, RandomSource random) boolean
EmptyFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) boolean
FlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) private boolean
FlowingFluid.canPassThrough
(BlockGetter level, Fluid fluid, BlockPos pos, BlockState state, Direction direction, BlockPos spreadPos, BlockState spreadState, FluidState fluidState) protected boolean
FlowingFluid.canSpreadTo
(BlockGetter level, BlockPos fromPos, BlockState fromBlockState, Direction direction, BlockPos toPos, BlockState toBlockState, FluidState toFluidState, Fluid fluid) protected BlockState
EmptyFluid.createLegacyBlock
(FluidState state) protected abstract BlockState
Fluid.createLegacyBlock
(FluidState state) LavaFluid.createLegacyBlock
(FluidState state) WaterFluid.createLegacyBlock
(FluidState state) int
EmptyFluid.getAmount
(FluidState state) abstract int
FlowingFluid.getAmount
(FluidState state) abstract int
Fluid.getAmount
(FluidState state) int
LavaFluid.Flowing.getAmount
(FluidState state) int
LavaFluid.Source.getAmount
(FluidState state) int
WaterFluid.Flowing.getAmount
(FluidState state) int
WaterFluid.Source.getAmount
(FluidState state) EmptyFluid.getFlow
(BlockGetter blockReader, BlockPos pos, FluidState fluidState) FlowingFluid.getFlow
(BlockGetter blockReader, BlockPos pos, FluidState fluidState) protected abstract Vec3
Fluid.getFlow
(BlockGetter blockReader, BlockPos pos, FluidState fluidState) float
EmptyFluid.getHeight
(FluidState state, BlockGetter level, BlockPos pos) float
FlowingFluid.getHeight
(FluidState state, BlockGetter level, BlockPos pos) abstract float
Fluid.getHeight
(FluidState state, BlockGetter level, BlockPos pos) protected static int
FlowingFluid.getLegacyLevel
(FluidState state) float
EmptyFluid.getOwnHeight
(FluidState state) float
FlowingFluid.getOwnHeight
(FluidState state) abstract float
Fluid.getOwnHeight
(FluidState state) EmptyFluid.getShape
(FluidState state, BlockGetter level, BlockPos pos) FlowingFluid.getShape
(FluidState state, BlockGetter level, BlockPos pos) abstract VoxelShape
Fluid.getShape
(FluidState state, BlockGetter level, BlockPos pos) protected int
FlowingFluid.getSpreadDelay
(Level level, BlockPos pos, FluidState currentState, FluidState newState) int
LavaFluid.getSpreadDelay
(Level level, BlockPos pos, FluidState currentState, FluidState newState) private static boolean
FlowingFluid.hasSameAbove
(FluidState fluidState, BlockGetter level, BlockPos pos) boolean
EmptyFluid.isSource
(FluidState state) abstract boolean
Fluid.isSource
(FluidState state) boolean
LavaFluid.Flowing.isSource
(FluidState state) boolean
LavaFluid.Source.isSource
(FluidState state) boolean
WaterFluid.Flowing.isSource
(FluidState state) boolean
WaterFluid.Source.isSource
(FluidState state) private boolean
FlowingFluid.isSourceBlockOfThisType
(FluidState state) protected void
Fluid.randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) void
LavaFluid.randomTick
(Level level, BlockPos pos, FluidState state, RandomSource random) protected final void
Fluid.registerDefaultState
(FluidState state) protected void
FlowingFluid.spread
(Level level, BlockPos pos, FluidState state) protected void
FlowingFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) protected void
LavaFluid.spreadTo
(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) private void
FlowingFluid.spreadToSides
(Level level, BlockPos pos, FluidState fluidState, BlockState blockState) void
FlowingFluid.tick
(Level level, BlockPos pos, FluidState state) protected void
Fluid.tick
(Level level, BlockPos pos, FluidState state) Method parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifier and TypeMethodDescriptionprotected void
FlowingFluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) protected void
Fluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) protected void
LavaFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) protected void
WaterFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) protected int
FlowingFluid.getSlopeDistance
(LevelReader level, BlockPos spreadPos, int distance, Direction p_direction, BlockState currentSpreadState, BlockPos sourcePos, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> stateCache, it.unimi.dsi.fastutil.shorts.Short2BooleanMap waterHoleCache) Constructor parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifierConstructorDescriptionFluidState
(Fluid owner, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> values, com.mojang.serialization.MapCodec<FluidState> propertiesCodec) -
Uses of FluidState in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes with type parameters of type FluidStateModifier and TypeFieldDescriptionprivate final Predicate
<FluidState> EntityCollisionContext.canStandOnFluid
Methods in net.minecraft.world.phys.shapes with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
CollisionContext.canStandOnFluid
(FluidState fluid1, FluidState fluid2) boolean
EntityCollisionContext.canStandOnFluid
(FluidState fluid1, FluidState fluid2) Constructor parameters in net.minecraft.world.phys.shapes with type arguments of type FluidStateModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean descending, double entityBottom, ItemStack heldItem, Predicate<FluidState> canStandOnFluid, Entity entity) -
Uses of FluidState in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type FluidStateModifier and TypeMethodDescriptiondefault ResourceLocation
IClientFluidTypeExtensions.getFlowingTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a flowing fluid.default ResourceLocation
IClientFluidTypeExtensions.getOverlayTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a fluid directly touching a non-opaque block other than air.default ResourceLocation
IClientFluidTypeExtensions.getStillTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a source fluid.default int
IClientFluidTypeExtensions.getTintColor
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the tint applied to the fluid's textures.static IClientFluidTypeExtensions
IClientFluidTypeExtensions.of
(FluidState state) default boolean
IClientFluidTypeExtensions.renderFluid
(FluidState fluidState, BlockAndTintGetter getter, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState) Called to allow rendering custom quads for a fluid during chunk meshing. -
Uses of FluidState in net.neoforged.neoforge.client.textures
Methods in net.neoforged.neoforge.client.textures with parameters of type FluidStateModifier and TypeMethodDescriptionstatic TextureAtlasSprite[]
FluidSpriteCache.getFluidSprites
(BlockAndTintGetter level, BlockPos pos, FluidState fluid) Returns an array holding the still sprite, the flowing sprite and the overlay sprite (if specified, otherwise null) of the given fluid at the given position. -
Uses of FluidState in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return FluidStateMethods in net.neoforged.neoforge.common.extensions with parameters of type FluidStateModifier and TypeMethodDescriptiondefault boolean
IBlockExtension.canBeHydrated
(BlockState state, BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default boolean
IBlockStateExtension.canBeHydrated
(BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default boolean
IBoatExtension.canBoatInFluid
(FluidState state) Returns whether the boat can be used on the fluid.default boolean
IFluidExtension.canConvertToSource
(FluidState state, Level level, BlockPos pos) Returns whether the fluid can create a source.default boolean
IFluidExtension.canExtinguish
(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.default boolean
IFluidExtension.canHydrate
(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.default @Nullable PathType
IFluidExtension.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable PathType
IFluidExtension.getBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.default float
IFluidExtension.getExplosionResistance
(FluidState state, BlockGetter level, BlockPos pos, Explosion explosion) Returns the explosion resistance of the fluid.default boolean
IEntityExtension.isInFluidType
(FluidState state) Returns whether the entity is within the fluid type of the state.default boolean
IFluidExtension.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
ILivingEntityExtension.moveInFluid
(FluidState state, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
IBlockExtension.onDestroyedByPlayer
(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IBlockStateExtension.onDestroyedByPlayer
(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default void
IBlockExtension.onDestroyedByPushReaction
(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY
.default void
IBlockStateExtension.onDestroyedByPushReaction
(Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY
.default boolean
IBlockExtension.shouldDisplayFluidOverlay
(BlockState state, BlockAndTintGetter level, BlockPos pos, FluidState fluidState) Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.default boolean
IBlockStateExtension.shouldDisplayFluidOverlay
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState) Called to determine whether this block should use the fluid overlay texture or flowing texture when it is placed under the fluid.default boolean
IBlockExtension.shouldHideAdjacentFluidFace
(BlockState state, Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered.default boolean
IBlockStateExtension.shouldHideAdjacentFluidFace
(Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered.default boolean
IFluidExtension.supportsBoating
(FluidState state, Boat boat) Returns whether the boat can be used on the fluid. -
Uses of FluidState in net.neoforged.neoforge.event.level.block
Methods in net.neoforged.neoforge.event.level.block that return FluidState -
Uses of FluidState in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids that return FluidStateModifier and TypeMethodDescriptionFluidType.getStateForPlacement
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns theFluidState
when aFluidStack
is trying to place it.Methods in net.neoforged.neoforge.fluids with parameters of type FluidStateModifier and TypeMethodDescriptionfinal boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns whether the fluid can be placed in the level.protected boolean
BaseFlowingFluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) boolean
BaseFlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) boolean
FluidType.canConvertToSource
(FluidState state, LevelReader reader, BlockPos pos) Returns whether the fluid can create a source.boolean
FluidType.canExtinguish
(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.boolean
FluidType.canHydrate
(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.protected BlockState
BaseFlowingFluid.createLegacyBlock
(FluidState state) @Nullable PathType
FluidType.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.int
BaseFlowingFluid.Flowing.getAmount
(FluidState state) int
BaseFlowingFluid.Source.getAmount
(FluidState state) FluidType.getBlockForFluidState
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns the associatedBlockState
for aFluidState
.@Nullable PathType
FluidType.getBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.int
FluidType.getDensity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the density of the fluid.int
FluidType.getLightLevel
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the light level emitted by the fluid.int
FluidType.getTemperature
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the temperature of the fluid.int
FluidType.getViscosity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the viscosity, or thickness, of the fluid.void
FluidInteractionRegistry.FluidInteraction.interact
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Performs the interaction between the source and the surrounding data.boolean
BaseFlowingFluid.Flowing.isSource
(FluidState state) boolean
BaseFlowingFluid.Source.isSource
(FluidState state) boolean
FluidType.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.boolean
FluidType.supportsBoating
(FluidState state, Boat boat) Returns whether the boat can be used on the fluid.boolean
FluidInteractionRegistry.HasFluidInteraction.test
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Returns whether the interaction can occur.Method parameters in net.neoforged.neoforge.fluids with type arguments of type FluidStateModifier and TypeMethodDescriptionprotected void
BaseFlowingFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) Constructor parameters in net.neoforged.neoforge.fluids with type arguments of type FluidStateModifierConstructorDescriptionInteractionInformation
(FluidInteractionRegistry.HasFluidInteraction predicate, Function<FluidState, BlockState> getState) Constructor which transforms the source state into a block.InteractionInformation
(FluidType type, Function<FluidState, BlockState> getState) Constructor which checks the surroundings fluids for a specific type and then transforms the source state into a block.