Uses of Class
net.minecraft.world.level.material.FluidState
Packages that use FluidState
Package
Description
-
Uses of FluidState in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type FluidState -
Uses of FluidState in net.minecraft.client.gui.components.debug
Subclasses with type arguments of type FluidState in net.minecraft.client.gui.components.debugModifier and TypeClassDescriptionstatic classstatic classMethods in net.minecraft.client.gui.components.debug that return FluidStateModifier and TypeMethodDescriptionDebugEntryLookingAt.FluidStateInfo.getInstance(Level level, BlockPos pos) DebugEntryLookingAt.FluidTagInfo.getInstance(Level level, BlockPos pos) -
Uses of FluidState in net.minecraft.client.renderer
Methods in net.minecraft.client.renderer with parameters of type FluidStateModifier and TypeMethodDescriptionstatic ChunkSectionLayerItemBlockRenderTypes.getRenderLayer(FluidState state) -
Uses of FluidState in net.minecraft.client.renderer.block
Methods in net.minecraft.client.renderer.block that return FluidStateMethods in net.minecraft.client.renderer.block with parameters of type FluidStateModifier and TypeMethodDescriptionprivate floatLiquidBlockRenderer.getHeight(BlockAndTintGetter level, Fluid fluidType, BlockPos pos, BlockState state, FluidState fluidState) private static booleanLiquidBlockRenderer.isNeighborSameFluid(FluidState fluidState, FluidState neighborFluidState) private static booleanLiquidBlockRenderer.isNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace) voidBlockRenderDispatcher.renderLiquid(BlockPos pos, BlockAndTintGetter level, VertexConsumer builder, BlockState blockState, FluidState fluidState) static booleanLiquidBlockRenderer.shouldRenderFace(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static booleanLiquidBlockRenderer.shouldRenderFace(FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) Deprecated.Neo: use overload that accepts BlockStatevoidLiquidBlockRenderer.tesselate(BlockAndTintGetter level, BlockPos pos, VertexConsumer builder, 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.core.dispenser
Methods in net.minecraft.core.dispenser with parameters of type FluidStateModifier and TypeMethodDescriptionprivate static booleanBoatDispenseItemBehavior.canBoatInFluid(@Nullable AbstractBoat boat, FluidState fluid) -
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 fluid) booleanEntity.collidedWithFluid(FluidState fluidState, BlockPos blockPos, Vec3 from, Vec3 to) floatEntity.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance) Explosion resistance of a block relative to this entityprotected booleanLivingEntity.shouldTravelInFluid(FluidState fluidState) private voidLivingEntity.travelInFluid(Vec3 input, FluidState fluidState) -
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.hurtingprojectile
Methods in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type FluidStateModifier and TypeMethodDescriptionfloatWitherSkull.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance) Explosion resistance of a block relative to this entity -
Uses of FluidState in net.minecraft.world.entity.vehicle.minecart
Methods in net.minecraft.world.entity.vehicle.minecart with parameters of type FluidStateModifier and TypeMethodDescriptionfloatMinecartTNT.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance) 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) EmptyBlockAndTintGetter.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 fluidState) EntityBasedExplosionDamageCalculator.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid) ExplosionDamageCalculator.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid) SimpleExplosionDamageCalculator.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid) ClipContext.getFluidShape(FluidState fluidState, BlockGetter level, BlockPos pos) static booleanNaturalSpawner.isValidEmptySpawnBlock(BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, EntityType<?> type) 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 FluidStateCopperGolemStatueBlock.getFluidState(BlockState state) protected FluidStateCrossCollisionBlock.getFluidState(BlockState state) protected FluidStateDecoratedPotBlock.getFluidState(BlockState state) protected FluidStateDriedGhastBlock.getFluidState(BlockState state) protected FluidStateEnderChestBlock.getFluidState(BlockState state) protected FluidStateHangingRootsBlock.getFluidState(BlockState state) protected FluidStateHeavyCoreBlock.getFluidState(BlockState state) 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 state) protected FluidStateMultifaceBlock.getFluidState(BlockState state) protected FluidStatePointedDripstoneBlock.getFluidState(BlockState state) protected FluidStateScaffoldingBlock.getFluidState(BlockState state) protected FluidStateSculkSensorBlock.getFluidState(BlockState state) protected FluidStateSculkShriekerBlock.getFluidState(BlockState state) protected FluidStateSeagrassBlock.getFluidState(BlockState state) protected FluidStateSeaPickleBlock.getFluidState(BlockState state) protected FluidStateShelfBlock.getFluidState(BlockState state) protected FluidStateSignBlock.getFluidState(BlockState state) protected FluidStateSlabBlock.getFluidState(BlockState state) protected FluidStateSmallDripleafBlock.getFluidState(BlockState state) protected FluidStateStairBlock.getFluidState(BlockState state) protected FluidStateTallSeagrassBlock.getFluidState(BlockState state) protected FluidStateTrapDoorBlock.getFluidState(BlockState state) protected FluidStateWallBlock.getFluidState(BlockState state) protected FluidStateWaterloggedTransparentBlock.getFluidState(BlockState state) Methods in net.minecraft.world.level.block with parameters of type FluidStateModifier and TypeMethodDescriptionprotected static booleanBigDripleafBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction facing) protected static booleanBigDripleafStemBlock.place(LevelAccessor level, BlockPos pos, FluidState fluidState, Direction facing) booleanCampfireBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanCandleBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanDriedGhastBlock.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 level, BlockPos pos, BlockState state, FluidState fluidState) default booleanSimpleWaterloggedBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanSlabBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) booleanTallSeagrassBlock.placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState) private static booleanConcretePowderBlock.shouldSolidify(BlockGetter level, BlockPos pos, BlockState replacedBlock, 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 sectionX, int sectionY, int sectionZ) 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
Subclasses with type arguments of type FluidState in net.minecraft.world.level.materialFields 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 amount, boolean falling) protected FluidStateFlowingFluid.getNewLiquid(ServerLevel level, BlockPos pos, BlockState state) 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(ServerLevel level, BlockPos pos, BlockState state) Fluid.getStateDefinition()Methods in net.minecraft.world.level.material with parameters of type FluidStateModifier and TypeMethodDescriptionprivate booleanFlowingFluid.affectsFlow(FluidState neighbourFluid) protected voidFluid.animateTick(Level level, BlockPos pos, FluidState fluidState, RandomSource random) voidLavaFluid.animateTick(Level level, BlockPos pos, FluidState fluidState, RandomSource random) voidWaterFluid.animateTick(Level level, BlockPos pos, FluidState fluidState, RandomSource random) booleanEmptyFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) protected abstract booleanFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) booleanLavaFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) booleanWaterFluid.canBeReplacedWith(FluidState state, BlockGetter level, BlockPos pos, Fluid other, Direction direction) booleanFlowingFluid.canConvertToSource(FluidState state, ServerLevel level, BlockPos pos) private booleanFlowingFluid.canMaybePassThrough(BlockGetter level, BlockPos sourcePos, BlockState sourceState, Direction direction, BlockPos testPos, BlockState testState, FluidState testFluidState) private booleanFlowingFluid.canPassThrough(BlockGetter level, Fluid fluid, BlockPos sourcePos, BlockState sourceState, Direction direction, BlockPos testPos, BlockState testState, FluidState testFluidState) protected BlockStateEmptyFluid.createLegacyBlock(FluidState fluidState) protected abstract BlockStateFluid.createLegacyBlock(FluidState fluidState) LavaFluid.createLegacyBlock(FluidState fluidState) WaterFluid.createLegacyBlock(FluidState fluidState) @Nullable AABBFluid.getAABB(FluidState state, BlockGetter level, BlockPos pos) intEmptyFluid.getAmount(FluidState fluidState) abstract intFlowingFluid.getAmount(FluidState fluidState) abstract intFluid.getAmount(FluidState fluidState) intLavaFluid.Flowing.getAmount(FluidState fluidState) intLavaFluid.Source.getAmount(FluidState fluidState) intWaterFluid.Flowing.getAmount(FluidState fluidState) intWaterFluid.Source.getAmount(FluidState fluidState) EmptyFluid.getFlow(BlockGetter level, BlockPos pos, FluidState fluidState) FlowingFluid.getFlow(BlockGetter level, BlockPos pos, FluidState fluidState) protected abstract Vec3Fluid.getFlow(BlockGetter level, BlockPos pos, FluidState fluidState) floatEmptyFluid.getHeight(FluidState fluidState, BlockGetter level, BlockPos pos) floatFlowingFluid.getHeight(FluidState fluidState, BlockGetter level, BlockPos pos) abstract floatFluid.getHeight(FluidState fluidState, BlockGetter level, BlockPos pos) protected static intFlowingFluid.getLegacyLevel(FluidState fluidState) floatEmptyFluid.getOwnHeight(FluidState fluidState) floatFlowingFluid.getOwnHeight(FluidState fluidState) abstract floatFluid.getOwnHeight(FluidState fluidState) 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 oldFluidState, FluidState newFluidState) intLavaFluid.getSpreadDelay(Level level, BlockPos pos, FluidState oldFluidState, FluidState newFluidState) private static booleanFlowingFluid.hasSameAbove(FluidState fluidState, BlockGetter level, BlockPos pos) booleanEmptyFluid.isSource(FluidState fluidState) abstract booleanFluid.isSource(FluidState fluidState) booleanLavaFluid.Flowing.isSource(FluidState fluidState) booleanLavaFluid.Source.isSource(FluidState fluidState) booleanWaterFluid.Flowing.isSource(FluidState fluidState) booleanWaterFluid.Source.isSource(FluidState fluidState) private booleanFlowingFluid.isSourceBlockOfThisType(FluidState state) protected voidFluid.randomTick(ServerLevel level, BlockPos pos, FluidState fluidState, RandomSource random) voidLavaFluid.randomTick(ServerLevel level, BlockPos pos, FluidState fluidState, RandomSource random) protected final voidFluid.registerDefaultState(FluidState state) protected voidFlowingFluid.spread(ServerLevel level, BlockPos pos, BlockState state, FluidState fluidState) protected voidFlowingFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState state, Direction direction, FluidState target) protected voidLavaFluid.spreadTo(LevelAccessor level, BlockPos pos, BlockState state, Direction direction, FluidState target) private voidFlowingFluid.spreadToSides(ServerLevel level, BlockPos pos, FluidState fluidState, BlockState state) voidFlowingFluid.tick(ServerLevel level, BlockPos pos, BlockState blockState, FluidState fluidState) protected voidFluid.tick(ServerLevel level, BlockPos pos, BlockState blockState, FluidState fluidState) 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) 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
Methods in net.minecraft.world.phys.shapes with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanCollisionContext.canStandOnFluid(FluidState fluidStateAbove, FluidState fluid) booleanEntityCollisionContext.canStandOnFluid(FluidState fluidStateAbove, FluidState fluid) -
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 IdentifierIClientFluidTypeExtensions.getFlowingTexture(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a flowing fluid.default IdentifierIClientFluidTypeExtensions.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 IdentifierIClientFluidTypeExtensions.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 booleanIAbstractBoatExtension.canBoatInFluid(FluidState state) Returns whether the boat can be used on the fluid.default booleanIFluidExtension.canConvertToSource(FluidState state, ServerLevel 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, ItemStack toolStack, boolean willHarvest, FluidState fluid) Called when a player removes a block.default booleanIBlockStateExtension.onDestroyedByPlayer(Level level, BlockPos pos, Player player, ItemStack toolStack, 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, AbstractBoat 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, ServerLevel 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, AbstractBoat 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.