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 RenderTypeItemBlockRenderTypes.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 floatLiquidBlockRenderer.getHeight(BlockAndTintGetter level, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) private static booleanLiquidBlockRenderer.isNeighborSameFluid(FluidState firstState, FluidState secondState) private static booleanLiquidBlockRenderer.isNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace) voidBlockRenderDispatcher.renderLiquid(BlockPos pos, BlockAndTintGetter level, VertexConsumer consumer, BlockState blockState, FluidState fluidState) static booleanLiquidBlockRenderer.shouldRenderFace(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static booleanLiquidBlockRenderer.shouldRenderFace(BlockAndTintGetter level, BlockPos pos, FluidState fluidState, BlockState blockState, Direction side, FluidState neighborFluid) Deprecated.Neo: use overload that accepts BlockStatevoidLiquidBlockRenderer.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 TypeMethodDescriptionbooleanWorldGenRegion.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 TypeMethodDescriptionbooleanLivingEntity.canStandOnFluid(FluidState fluidState) floatEntity.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 TypeMethodDescriptionfloatWitherSkull.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 TypeMethodDescriptionfloatMinecartTNT.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 TypeMethodDescriptionbooleanClipContext.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 booleanNaturalSpawner.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 TypeMethodDescriptionbooleanLevel.isFluidAtPosition(BlockPos pos, Predicate<FluidState> predicate) booleanLevelSimulatedReader.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 FluidStateAmethystClusterBlock.getFluidState(BlockState state) protected FluidStateBarrierBlock.getFluidState(BlockState state) protected FluidStateBaseCoralPlantTypeBlock.getFluidState(BlockState state) protected FluidStateBaseRailBlock.getFluidState(BlockState state) protected FluidStateBigDripleafBlock.getFluidState(BlockState state) protected FluidStateBigDripleafStemBlock.getFluidState(BlockState state) protected FluidStateBubbleColumnBlock.getFluidState(BlockState state) protected FluidStateCampfireBlock.getFluidState(BlockState state) protected FluidStateCandleBlock.getFluidState(BlockState state) protected FluidStateChainBlock.getFluidState(BlockState state) protected FluidStateChestBlock.getFluidState(BlockState state) protected FluidStateConduitBlock.getFluidState(BlockState state) protected FluidStateCrossCollisionBlock.getFluidState(BlockState state) protected FluidStateDecoratedPotBlock.getFluidState(BlockState p_272593_) protected FluidStateEnderChestBlock.getFluidState(BlockState state) protected FluidStateGlowLichenBlock.getFluidState(BlockState state) protected FluidStateHangingRootsBlock.getFluidState(BlockState p_153360_) protected FluidStateHeavyCoreBlock.getFluidState(BlockState p_335518_) protected FluidStateKelpBlock.getFluidState(BlockState state) protected FluidStateKelpPlantBlock.getFluidState(BlockState state) protected FluidStateLadderBlock.getFluidState(BlockState state) protected FluidStateLanternBlock.getFluidState(BlockState state) protected FluidStateLeavesBlock.getFluidState(BlockState state) protected FluidStateLightBlock.getFluidState(BlockState state) protected FluidStateLightningRodBlock.getFluidState(BlockState state) protected FluidStateLiquidBlock.getFluidState(BlockState state) protected FluidStateMangrovePropaguleBlock.getFluidState(BlockState state) protected FluidStateMangroveRootsBlock.getFluidState(BlockState p_221523_) protected FluidStatePointedDripstoneBlock.getFluidState(BlockState state) protected FluidStateScaffoldingBlock.getFluidState(BlockState state) protected FluidStateSculkSensorBlock.getFluidState(BlockState state) protected FluidStateSculkShriekerBlock.getFluidState(BlockState state) protected FluidStateSculkVeinBlock.getFluidState(BlockState state) protected FluidStateSeagrassBlock.getFluidState(BlockState p_154537_) protected FluidStateSeaPickleBlock.getFluidState(BlockState state) protected FluidStateSignBlock.getFluidState(BlockState state) protected FluidStateSlabBlock.getFluidState(BlockState state) protected FluidStateSmallDripleafBlock.getFluidState(BlockState p_154634_) protected FluidStateStairBlock.getFluidState(BlockState state) protected FluidStateTallSeagrassBlock.getFluidState(BlockState p_154772_) protected FluidStateTrapDoorBlock.getFluidState(BlockState state) protected FluidStateWallBlock.getFluidState(BlockState state) protected FluidStateWaterloggedTransparentBlock.getFluidState(BlockState p_313789_) Methods in net.minecraft.world.level.block with parameters of type FluidStateModifier and TypeMethodDescriptionprotected static booleanBigDripleafBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) protected static booleanBigDripleafStemBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction direction) booleanCampfireBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanCandleBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanKelpBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanKelpPlantBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanLiquidBlockContainer.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanSeagrassBlock.placeLiquid(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default booleanSimpleWaterloggedBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanSlabBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanTallSeagrassBlock.placeLiquid(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) private static booleanConcretePowderBlock.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 FluidStateBlockBehaviour.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 FluidStateWorldCarver.LAVAprotected static final FluidStateWorldCarver.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.CODECstatic final IdMapper<FluidState> Fluid.FLUID_STATE_REGISTRYprivate final Map<FluidState, VoxelShape> FlowingFluid.shapesprotected final StateDefinition<Fluid, FluidState> Fluid.stateDefinitionMethods in net.minecraft.world.level.material that return FluidStateModifier and TypeMethodDescriptionfinal FluidStateFluid.defaultFluidState()FlowingFluid.getFlowing(int level, boolean falling) protected FluidStateFlowingFluid.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 booleanFlowingFluid.affectsFlow(FluidState state) protected voidFluid.animateTick(Level level, BlockPos pos, FluidState state, RandomSource random) voidLavaFluid.animateTick(Level level, BlockPos pos, FluidState state, RandomSource random) voidWaterFluid.animateTick(Level level, BlockPos pos, FluidState state, RandomSource random) booleanEmptyFluid.canBeReplacedWith(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) protected abstract booleanFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluid, Direction direction) booleanLavaFluid.canBeReplacedWith(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) booleanWaterFluid.canBeReplacedWith(FluidState fluidState, BlockGetter blockReader, BlockPos pos, Fluid fluid, Direction direction) booleanFlowingFluid.canConvertToSource(FluidState state, Level level, BlockPos pos) private booleanFlowingFluid.canPassThrough(BlockGetter level, Fluid fluid, BlockPos pos, BlockState state, Direction direction, BlockPos spreadPos, BlockState spreadState, FluidState fluidState) protected booleanFlowingFluid.canSpreadTo(BlockGetter level, BlockPos fromPos, BlockState fromBlockState, Direction direction, BlockPos toPos, BlockState toBlockState, FluidState toFluidState, Fluid fluid) protected BlockStateEmptyFluid.createLegacyBlock(FluidState state) protected abstract BlockStateFluid.createLegacyBlock(FluidState state) LavaFluid.createLegacyBlock(FluidState state) WaterFluid.createLegacyBlock(FluidState state) intEmptyFluid.getAmount(FluidState state) abstract intFlowingFluid.getAmount(FluidState state) abstract intFluid.getAmount(FluidState state) intLavaFluid.Flowing.getAmount(FluidState state) intLavaFluid.Source.getAmount(FluidState state) intWaterFluid.Flowing.getAmount(FluidState state) intWaterFluid.Source.getAmount(FluidState state) EmptyFluid.getFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) FlowingFluid.getFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) protected abstract Vec3Fluid.getFlow(BlockGetter blockReader, BlockPos pos, FluidState fluidState) floatEmptyFluid.getHeight(FluidState state, BlockGetter level, BlockPos pos) floatFlowingFluid.getHeight(FluidState state, BlockGetter level, BlockPos pos) abstract floatFluid.getHeight(FluidState state, BlockGetter level, BlockPos pos) protected static intFlowingFluid.getLegacyLevel(FluidState state) floatEmptyFluid.getOwnHeight(FluidState state) floatFlowingFluid.getOwnHeight(FluidState state) abstract floatFluid.getOwnHeight(FluidState state) EmptyFluid.getShape(FluidState state, BlockGetter level, BlockPos pos) FlowingFluid.getShape(FluidState state, BlockGetter level, BlockPos pos) abstract VoxelShapeFluid.getShape(FluidState state, BlockGetter level, BlockPos pos) protected intFlowingFluid.getSpreadDelay(Level level, BlockPos pos, FluidState currentState, FluidState newState) intLavaFluid.getSpreadDelay(Level level, BlockPos pos, FluidState currentState, FluidState newState) private static booleanFlowingFluid.hasSameAbove(FluidState fluidState, BlockGetter level, BlockPos pos) booleanEmptyFluid.isSource(FluidState state) abstract booleanFluid.isSource(FluidState state) booleanLavaFluid.Flowing.isSource(FluidState state) booleanLavaFluid.Source.isSource(FluidState state) booleanWaterFluid.Flowing.isSource(FluidState state) booleanWaterFluid.Source.isSource(FluidState state) private booleanFlowingFluid.isSourceBlockOfThisType(FluidState state) protected voidFluid.randomTick(Level level, BlockPos pos, FluidState state, RandomSource random) voidLavaFluid.randomTick(Level level, BlockPos pos, FluidState state, RandomSource random) protected final voidFluid.registerDefaultState(FluidState state) protected voidFlowingFluid.spread(Level level, BlockPos pos, FluidState state) protected voidFlowingFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) protected voidLavaFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState blockState, Direction direction, FluidState fluidState) private voidFlowingFluid.spreadToSides(Level level, BlockPos pos, FluidState fluidState, BlockState blockState) voidFlowingFluid.tick(Level level, BlockPos pos, FluidState state) protected voidFluid.tick(Level level, BlockPos pos, FluidState state) Method parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifier and TypeMethodDescriptionprotected voidFlowingFluid.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> builder) protected voidFluid.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> builder) protected voidLavaFluid.Flowing.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> builder) protected voidWaterFluid.Flowing.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> builder) protected intFlowingFluid.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.canStandOnFluidMethods in net.minecraft.world.phys.shapes with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanCollisionContext.canStandOnFluid(FluidState fluid1, FluidState fluid2) booleanEntityCollisionContext.canStandOnFluid(FluidState fluid1, FluidState fluid2) Constructor parameters in net.minecraft.world.phys.shapes with type arguments of type FluidStateModifierConstructorDescriptionprotectedEntityCollisionContext(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 ResourceLocationIClientFluidTypeExtensions.getFlowingTexture(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a flowing fluid.default ResourceLocationIClientFluidTypeExtensions.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 ResourceLocationIClientFluidTypeExtensions.getStillTexture(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a source fluid.default intIClientFluidTypeExtensions.getTintColor(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the tint applied to the fluid's textures.static IClientFluidTypeExtensionsIClientFluidTypeExtensions.of(FluidState state) default booleanIClientFluidTypeExtensions.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 booleanIBlockExtension.canBeHydrated(BlockState state, BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default booleanIBlockStateExtension.canBeHydrated(BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default booleanIBoatExtension.canBoatInFluid(FluidState state) Returns whether the boat can be used on the fluid.default booleanIFluidExtension.canConvertToSource(FluidState state, Level level, BlockPos pos) Returns whether the fluid can create a source.default booleanIFluidExtension.canExtinguish(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.default booleanIFluidExtension.canHydrate(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.default @Nullable PathTypeIFluidExtension.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 PathTypeIFluidExtension.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 floatIFluidExtension.getExplosionResistance(FluidState state, BlockGetter level, BlockPos pos, Explosion explosion) Returns the explosion resistance of the fluid.default booleanIEntityExtension.isInFluidType(FluidState state) Returns whether the entity is within the fluid type of the state.default booleanIFluidExtension.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default booleanILivingEntityExtension.moveInFluid(FluidState state, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default booleanIBlockExtension.onDestroyedByPlayer(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default booleanIBlockStateExtension.onDestroyedByPlayer(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default voidIBlockExtension.onDestroyedByPushReaction(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY.default voidIBlockStateExtension.onDestroyedByPushReaction(Level level, BlockPos pos, Direction pushDirection, FluidState fluid) Called when a block is removed byPushReaction.DESTROY.default booleanIBlockExtension.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 booleanIBlockStateExtension.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 booleanIBlockExtension.shouldHideAdjacentFluidFace(BlockState state, Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered.default booleanIBlockStateExtension.shouldHideAdjacentFluidFace(Direction selfFace, FluidState adjacentFluid) Determines if a fluid adjacent to the block on the given side should not be rendered.default booleanIFluidExtension.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 theFluidStatewhen aFluidStackis trying to place it.Methods in net.neoforged.neoforge.fluids with parameters of type FluidStateModifier and TypeMethodDescriptionfinal booleanFluidType.canBePlacedInLevel(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns whether the fluid can be placed in the level.protected booleanBaseFlowingFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) booleanBaseFlowingFluid.canConvertToSource(FluidState state, Level level, BlockPos pos) booleanFluidType.canConvertToSource(FluidState state, LevelReader reader, BlockPos pos) Returns whether the fluid can create a source.booleanFluidType.canExtinguish(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.booleanFluidType.canHydrate(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.protected BlockStateBaseFlowingFluid.createLegacyBlock(FluidState state) @Nullable PathTypeFluidType.getAdjacentBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, PathType originalType) Gets the path type of the adjacent fluid to a pathfinding entity.intBaseFlowingFluid.Flowing.getAmount(FluidState state) intBaseFlowingFluid.Source.getAmount(FluidState state) FluidType.getBlockForFluidState(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns the associatedBlockStatefor aFluidState.@Nullable PathTypeFluidType.getBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.intFluidType.getDensity(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the density of the fluid.intFluidType.getLightLevel(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the light level emitted by the fluid.intFluidType.getTemperature(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the temperature of the fluid.intFluidType.getViscosity(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the viscosity, or thickness, of the fluid.voidFluidInteractionRegistry.FluidInteraction.interact(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Performs the interaction between the source and the surrounding data.booleanBaseFlowingFluid.Flowing.isSource(FluidState state) booleanBaseFlowingFluid.Source.isSource(FluidState state) booleanFluidType.move(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.booleanFluidType.supportsBoating(FluidState state, Boat boat) Returns whether the boat can be used on the fluid.booleanFluidInteractionRegistry.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 voidBaseFlowingFluid.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.