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 pFluidState) -
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 pLevel, Fluid pFluid, BlockPos pPos, BlockState pBlockState, FluidState pFluidState) private static boolean
LiquidBlockRenderer.isNeighborSameFluid
(FluidState pFirstState, FluidState pSecondState) private static boolean
LiquidBlockRenderer.isNeighborStateHidingOverlay
(FluidState selfState, BlockState otherState, Direction neighborFace) void
BlockRenderDispatcher.renderLiquid
(BlockPos pPos, BlockAndTintGetter pLevel, VertexConsumer pConsumer, BlockState pBlockState, FluidState pFluidState) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter pLevel, BlockPos pPos, FluidState pFluidState, BlockState pBlockState, Direction pSide, FluidState pNeighborFluid) Deprecated.Neo: use overload that accepts BlockStatevoid
LiquidBlockRenderer.tesselate
(BlockAndTintGetter pLevel, BlockPos pPos, VertexConsumer pBuffer, BlockState pBlockState, FluidState pFluidState) -
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 pPos, Predicate<FluidState> pPredicate) -
Uses of FluidState in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
LivingEntity.canStandOnFluid
(FluidState pFluidState) float
Entity.getBlockExplosionResistance
(Explosion pExplosion, BlockGetter pLevel, BlockPos pPos, BlockState pBlockState, FluidState pFluidState, float pExplosionPower) 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 pExplosion, BlockGetter pLevel, BlockPos pPos, BlockState pBlockState, FluidState pFluidState, float pExplosionPower) 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 pExplosion, BlockGetter pLevel, BlockPos pPos, BlockState pBlockState, FluidState pFluidState, float pExplosionPower) 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 pPos) EmptyBlockGetter.getFluidState
(BlockPos pPos) Level.getFluidState
(BlockPos pPos) PathNavigationRegion.getFluidState
(BlockPos pPos) Methods in net.minecraft.world.level with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
ClipContext.Fluid.canPick
(FluidState pState) EntityBasedExplosionDamageCalculator.getBlockExplosionResistance
(Explosion pExplosion, BlockGetter pReader, BlockPos pPos, BlockState pState, FluidState pFluid) ExplosionDamageCalculator.getBlockExplosionResistance
(Explosion pExplosion, BlockGetter pReader, BlockPos pPos, BlockState pState, FluidState pFluid) SimpleExplosionDamageCalculator.getBlockExplosionResistance
(Explosion pExplosion, BlockGetter pReader, BlockPos pPos, BlockState pState, FluidState pFluid) ClipContext.getFluidShape
(FluidState pState, BlockGetter pLevel, BlockPos pPos) static boolean
NaturalSpawner.isValidEmptySpawnBlock
(BlockGetter pBlock, BlockPos pPos, BlockState pBlockState, FluidState pFluidState, EntityType<?> pEntityType) Method parameters in net.minecraft.world.level with type arguments of type FluidStateModifier and TypeMethodDescriptionboolean
Level.isFluidAtPosition
(BlockPos pPos, Predicate<FluidState> pPredicate) boolean
LevelSimulatedReader.isFluidAtPosition
(BlockPos pPos, Predicate<FluidState> pPredicate) 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 pState) protected FluidState
BarrierBlock.getFluidState
(BlockState pState) protected FluidState
BaseCoralPlantTypeBlock.getFluidState
(BlockState pState) protected FluidState
BaseRailBlock.getFluidState
(BlockState pState) protected FluidState
BigDripleafBlock.getFluidState
(BlockState pState) protected FluidState
BigDripleafStemBlock.getFluidState
(BlockState pState) protected FluidState
BubbleColumnBlock.getFluidState
(BlockState pState) protected FluidState
CampfireBlock.getFluidState
(BlockState pState) protected FluidState
CandleBlock.getFluidState
(BlockState pState) protected FluidState
ChainBlock.getFluidState
(BlockState pState) protected FluidState
ChestBlock.getFluidState
(BlockState pState) protected FluidState
ConduitBlock.getFluidState
(BlockState pState) protected FluidState
CrossCollisionBlock.getFluidState
(BlockState pState) protected FluidState
DecoratedPotBlock.getFluidState
(BlockState p_272593_) protected FluidState
EnderChestBlock.getFluidState
(BlockState pState) protected FluidState
GlowLichenBlock.getFluidState
(BlockState pState) protected FluidState
HangingRootsBlock.getFluidState
(BlockState p_153360_) protected FluidState
HeavyCoreBlock.getFluidState
(BlockState p_335518_) protected FluidState
KelpBlock.getFluidState
(BlockState pState) protected FluidState
KelpPlantBlock.getFluidState
(BlockState pState) protected FluidState
LadderBlock.getFluidState
(BlockState pState) protected FluidState
LanternBlock.getFluidState
(BlockState pState) protected FluidState
LeavesBlock.getFluidState
(BlockState pState) protected FluidState
LightBlock.getFluidState
(BlockState pState) protected FluidState
LightningRodBlock.getFluidState
(BlockState pState) protected FluidState
LiquidBlock.getFluidState
(BlockState pState) protected FluidState
MangrovePropaguleBlock.getFluidState
(BlockState pState) protected FluidState
MangroveRootsBlock.getFluidState
(BlockState p_221523_) protected FluidState
PointedDripstoneBlock.getFluidState
(BlockState pState) protected FluidState
ScaffoldingBlock.getFluidState
(BlockState pState) protected FluidState
SculkSensorBlock.getFluidState
(BlockState pState) protected FluidState
SculkShriekerBlock.getFluidState
(BlockState pState) protected FluidState
SculkVeinBlock.getFluidState
(BlockState pState) protected FluidState
SeagrassBlock.getFluidState
(BlockState p_154537_) protected FluidState
SeaPickleBlock.getFluidState
(BlockState pState) protected FluidState
SignBlock.getFluidState
(BlockState pState) protected FluidState
SlabBlock.getFluidState
(BlockState pState) protected FluidState
SmallDripleafBlock.getFluidState
(BlockState p_154634_) protected FluidState
StairBlock.getFluidState
(BlockState pState) protected FluidState
TallSeagrassBlock.getFluidState
(BlockState p_154772_) protected FluidState
TrapDoorBlock.getFluidState
(BlockState pState) protected FluidState
WallBlock.getFluidState
(BlockState pState) 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 pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) boolean
CampfireBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
CandleBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
KelpBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
SlabBlock.placeLiquid
(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) private static boolean
ConcretePowderBlock.shouldSolidify
(BlockGetter pLevel, BlockPos pPos, BlockState pState, 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 pState) -
Uses of FluidState in net.minecraft.world.level.chunk
Methods in net.minecraft.world.level.chunk that return FluidStateModifier and TypeMethodDescriptionEmptyLevelChunk.getFluidState
(BlockPos pPos) ImposterProtoChunk.getFluidState
(BlockPos pPos) LevelChunk.getFluidState
(int pX, int pY, int pZ) LevelChunk.getFluidState
(BlockPos pPos) LevelChunkSection.getFluidState
(int pX, int pY, int pZ) ProtoChunk.getFluidState
(BlockPos pPos) -
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 p_204848_, boolean p_204849_, int p_204850_, int p_204851_, HolderSet<Block> p_204852_) -
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 pLevel, boolean pFalling) protected FluidState
FlowingFluid.getNewLiquid
(Level pLevel, BlockPos pPos, BlockState pBlockState) FlowingFluid.getSource
(boolean pFalling) Methods in net.minecraft.world.level.material that return types with arguments of type FluidStateModifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowingFluid.getSpread
(Level pLevel, BlockPos pPos, BlockState pState) Fluid.getStateDefinition()
Methods in net.minecraft.world.level.material with parameters of type FluidStateModifier and TypeMethodDescriptionprivate boolean
FlowingFluid.affectsFlow
(FluidState pState) protected void
Fluid.animateTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) void
LavaFluid.animateTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) void
WaterFluid.animateTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) boolean
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
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) boolean
FlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) 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) protected BlockState
EmptyFluid.createLegacyBlock
(FluidState pState) protected abstract BlockState
Fluid.createLegacyBlock
(FluidState pState) LavaFluid.createLegacyBlock
(FluidState pState) WaterFluid.createLegacyBlock
(FluidState pState) int
EmptyFluid.getAmount
(FluidState pState) abstract int
FlowingFluid.getAmount
(FluidState pState) abstract int
Fluid.getAmount
(FluidState pState) int
LavaFluid.Flowing.getAmount
(FluidState pState) int
LavaFluid.Source.getAmount
(FluidState pState) int
WaterFluid.Flowing.getAmount
(FluidState pState) int
WaterFluid.Source.getAmount
(FluidState pState) EmptyFluid.getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) FlowingFluid.getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) protected abstract Vec3
Fluid.getFlow
(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) float
EmptyFluid.getHeight
(FluidState pState, BlockGetter pLevel, BlockPos pPos) float
FlowingFluid.getHeight
(FluidState pState, BlockGetter pLevel, BlockPos pPos) abstract float
Fluid.getHeight
(FluidState pState, BlockGetter pLevel, BlockPos pPos) protected static int
FlowingFluid.getLegacyLevel
(FluidState pState) float
EmptyFluid.getOwnHeight
(FluidState pState) float
FlowingFluid.getOwnHeight
(FluidState pState) abstract float
Fluid.getOwnHeight
(FluidState pState) EmptyFluid.getShape
(FluidState pState, BlockGetter pLevel, BlockPos pPos) FlowingFluid.getShape
(FluidState pState, BlockGetter pLevel, BlockPos pPos) abstract VoxelShape
Fluid.getShape
(FluidState pState, BlockGetter pLevel, BlockPos pPos) protected int
FlowingFluid.getSpreadDelay
(Level pLevel, BlockPos pPos, FluidState pCurrentState, FluidState pNewState) int
LavaFluid.getSpreadDelay
(Level pLevel, BlockPos pPos, FluidState pCurrentState, FluidState pNewState) private static boolean
FlowingFluid.hasSameAbove
(FluidState pFluidState, BlockGetter pLevel, BlockPos pPos) boolean
EmptyFluid.isSource
(FluidState pState) abstract boolean
Fluid.isSource
(FluidState pState) boolean
LavaFluid.Flowing.isSource
(FluidState pState) boolean
LavaFluid.Source.isSource
(FluidState pState) boolean
WaterFluid.Flowing.isSource
(FluidState pState) boolean
WaterFluid.Source.isSource
(FluidState pState) private boolean
FlowingFluid.isSourceBlockOfThisType
(FluidState pState) protected void
Fluid.randomTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) void
LavaFluid.randomTick
(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) protected final void
Fluid.registerDefaultState
(FluidState pState) protected void
FlowingFluid.spread
(Level pLevel, BlockPos pPos, FluidState pState) protected void
FlowingFluid.spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) protected void
LavaFluid.spreadTo
(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) private void
FlowingFluid.spreadToSides
(Level pLevel, BlockPos pPos, FluidState pFluidState, BlockState pBlockState) void
FlowingFluid.tick
(Level pLevel, BlockPos pPos, FluidState pState) protected void
Fluid.tick
(Level pLevel, BlockPos pPos, FluidState pState) Method parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifier 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) protected int
FlowingFluid.getSlopeDistance
(LevelReader p_76027_, BlockPos p_76028_, int p_76029_, Direction p_76030_, BlockState p_76031_, BlockPos p_76032_, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> p_76033_, it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_76034_) Constructor parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifierConstructorDescriptionFluidState
(Fluid p_76149_, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> p_325993_, com.mojang.serialization.MapCodec<FluidState> p_76151_) -
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 pFluid1, FluidState pFluid2) boolean
EntityCollisionContext.canStandOnFluid
(FluidState pFluid1, FluidState pFluid2) Constructor parameters in net.minecraft.world.phys.shapes with type arguments of type FluidStateModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean pDescending, double pEntityBottom, ItemStack pHeldItem, Predicate<FluidState> pCanStandOnFluid, Entity pEntity) -
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.debug.block
Methods in net.neoforged.neoforge.debug.block with parameters of type FluidStateModifier and TypeMethodDescriptionvoid
OnDestroyedByPushReactionTests.DestroyedByPushReactionListeningBlock.onDestroyedByPushReaction
(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) -
Uses of FluidState in net.neoforged.neoforge.debug.fluid
Methods in net.neoforged.neoforge.debug.fluid with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
ClientFluidTests.WaterGlassBlock.shouldHideAdjacentFluidFace
(BlockState state, Direction selfFace, FluidState adjacentFluid) -
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. -
Uses of FluidState in net.neoforged.neoforge.oldtest.fluid
Methods in net.neoforged.neoforge.oldtest.fluid that return FluidStateModifier and TypeMethodDescriptionNewFluidTest.FluidloggableBlock.getFluidState
(BlockState state) Methods in net.neoforged.neoforge.oldtest.fluid with parameters of type FluidStateModifier and TypeMethodDescriptionboolean
NewFluidTest.FluidloggableBlock.placeLiquid
(LevelAccessor worldIn, BlockPos pos, BlockState state, FluidState fluidStateIn)