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 pFluidState) -
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 pLevel, Fluid pFluid, BlockPos pPos, BlockState pBlockState, FluidState pFluidState) private static booleanLiquidBlockRenderer.isNeighborSameFluid(FluidState pFirstState, FluidState pSecondState) private static booleanLiquidBlockRenderer.isNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace) voidBlockRenderDispatcher.renderLiquid(BlockPos pPos, BlockAndTintGetter pLevel, VertexConsumer pConsumer, BlockState pBlockState, FluidState pFluidState) static booleanLiquidBlockRenderer.shouldRenderFace(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static booleanLiquidBlockRenderer.shouldRenderFace(FluidState pFluidState, BlockState pBlockState, Direction pSide, FluidState pNeighborFluid) Deprecated.Neo: use overload that accepts BlockStatevoidLiquidBlockRenderer.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.client.renderer.entity.state
Methods in net.minecraft.client.renderer.entity.state 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 p_143500_, Predicate<FluidState> p_143501_) -
Uses of FluidState in net.minecraft.world.entity
Methods in net.minecraft.world.entity with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanLivingEntity.canStandOnFluid(FluidState pFluidState) floatEntity.getBlockExplosionResistance(Explosion pExplosion, BlockGetter pLevel, BlockPos pPos, BlockState pBlockState, FluidState pFluidState, float pExplosionPower) Explosion resistance of a block relative to this entityprivate voidLivingEntity.travelInFluid(Vec3 pTravelVector, 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
Methods in net.minecraft.world.entity.projectile with parameters of type FluidStateModifier and TypeMethodDescriptionfloatWitherSkull.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 TypeMethodDescriptionfloatMinecartTNT.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) EmptyBlockAndTintGetter.getFluidState(BlockPos p_364619_) EmptyBlockGetter.getFluidState(BlockPos pPos) Level.getFluidState(BlockPos pPos) PathNavigationRegion.getFluidState(BlockPos pPos) Methods in net.minecraft.world.level with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanClipContext.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 p_346109_, BlockGetter p_345381_, BlockPos p_344921_, BlockState p_346239_, FluidState p_345105_) ClipContext.getFluidShape(FluidState pState, BlockGetter pLevel, BlockPos pPos) static booleanNaturalSpawner.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 TypeMethodDescriptionbooleanLevel.isFluidAtPosition(BlockPos p_151541_, Predicate<FluidState> p_151542_) booleanLevelSimulatedReader.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 FluidStateAmethystClusterBlock.getFluidState(BlockState p_152045_) protected FluidStateBarrierBlock.getFluidState(BlockState p_296372_) protected FluidStateBaseCoralPlantTypeBlock.getFluidState(BlockState pState) protected FluidStateBaseRailBlock.getFluidState(BlockState p_152158_) protected FluidStateBigDripleafBlock.getFluidState(BlockState p_152312_) protected FluidStateBigDripleafStemBlock.getFluidState(BlockState p_152378_) protected FluidStateBubbleColumnBlock.getFluidState(BlockState pState) protected FluidStateCampfireBlock.getFluidState(BlockState pState) protected FluidStateCandleBlock.getFluidState(BlockState p_152844_) protected FluidStateChainBlock.getFluidState(BlockState pState) protected FluidStateChestBlock.getFluidState(BlockState pState) protected FluidStateConduitBlock.getFluidState(BlockState pState) protected FluidStateCrossCollisionBlock.getFluidState(BlockState pState) protected FluidStateDecoratedPotBlock.getFluidState(BlockState p_272593_) protected FluidStateEnderChestBlock.getFluidState(BlockState pState) protected FluidStateHangingRootsBlock.getFluidState(BlockState p_153360_) protected FluidStateHeavyCoreBlock.getFluidState(BlockState p_335518_) protected FluidStateKelpBlock.getFluidState(BlockState pState) protected FluidStateKelpPlantBlock.getFluidState(BlockState pState) protected FluidStateLadderBlock.getFluidState(BlockState pState) protected FluidStateLanternBlock.getFluidState(BlockState p_153492_) protected FluidStateLeavesBlock.getFluidState(BlockState p_221384_) protected FluidStateLightBlock.getFluidState(BlockState p_153699_) protected FluidStateLightningRodBlock.getFluidState(BlockState p_153759_) protected FluidStateLiquidBlock.getFluidState(BlockState pState) protected FluidStateMangrovePropaguleBlock.getFluidState(BlockState p_221494_) protected FluidStateMangroveRootsBlock.getFluidState(BlockState p_221523_) protected FluidStateMultifaceBlock.getFluidState(BlockState p_389529_) protected FluidStatePointedDripstoneBlock.getFluidState(BlockState p_154235_) protected FluidStateScaffoldingBlock.getFluidState(BlockState pState) protected FluidStateSculkSensorBlock.getFluidState(BlockState p_154479_) protected FluidStateSculkShriekerBlock.getFluidState(BlockState p_222230_) protected FluidStateSeagrassBlock.getFluidState(BlockState p_154537_) protected FluidStateSeaPickleBlock.getFluidState(BlockState pState) protected FluidStateSignBlock.getFluidState(BlockState pState) protected FluidStateSlabBlock.getFluidState(BlockState pState) protected FluidStateSmallDripleafBlock.getFluidState(BlockState p_154634_) protected FluidStateStairBlock.getFluidState(BlockState pState) protected FluidStateTallSeagrassBlock.getFluidState(BlockState p_154772_) protected FluidStateTrapDoorBlock.getFluidState(BlockState pState) protected FluidStateWallBlock.getFluidState(BlockState pState) protected FluidStateWaterloggedTransparentBlock.getFluidState(BlockState p_313789_) Methods in net.minecraft.world.level.block with parameters of type FluidStateModifier and TypeMethodDescriptionprotected static booleanBigDripleafBlock.place(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) protected static booleanBigDripleafStemBlock.place(LevelAccessor pLevel, BlockPos pPos, FluidState pFluidState, Direction pDirection) booleanCampfireBlock.placeLiquid(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) booleanCandleBlock.placeLiquid(LevelAccessor p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) booleanKelpBlock.placeLiquid(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) booleanKelpPlantBlock.placeLiquid(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) booleanLiquidBlockContainer.placeLiquid(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) booleanSeagrassBlock.placeLiquid(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default booleanSimpleWaterloggedBlock.placeLiquid(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) booleanSlabBlock.placeLiquid(LevelAccessor pLevel, BlockPos pPos, BlockState pState, FluidState pFluidState) booleanTallSeagrassBlock.placeLiquid(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) private static booleanConcretePowderBlock.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 FluidStateBlockBehaviour.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 p_62621_) ImposterProtoChunk.getFluidState(BlockPos p_62736_) LevelChunk.getFluidState(int pX, int pY, int pZ) LevelChunk.getFluidState(BlockPos p_62895_) LevelChunkSection.getFluidState(int pX, int pY, int pZ) ProtoChunk.getFluidState(BlockPos p_63239_) -
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 pState, boolean pRequiresBlockBelow, int pRockCount, int pHoleCount, HolderSet<Block> pValidBlocks) -
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 pLevel, boolean pFalling) protected FluidStateFlowingFluid.getNewLiquid(ServerLevel pLevel, BlockPos pPos, BlockState pState) 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(ServerLevel pLevel, BlockPos pPos, BlockState pState) Fluid.getStateDefinition()Methods in net.minecraft.world.level.material with parameters of type FluidStateModifier and TypeMethodDescriptionprivate booleanFlowingFluid.affectsFlow(FluidState pState) protected voidFluid.animateTick(Level pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) voidLavaFluid.animateTick(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) voidWaterFluid.animateTick(Level p_230606_, BlockPos p_230607_, FluidState p_230608_, RandomSource p_230609_) booleanEmptyFluid.canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) protected abstract booleanFluid.canBeReplacedWith(FluidState pState, BlockGetter pLevel, BlockPos pPos, Fluid pFluid, Direction pDirection) booleanLavaFluid.canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) booleanWaterFluid.canBeReplacedWith(FluidState pFluidState, BlockGetter pBlockReader, BlockPos pPos, Fluid pFluid, Direction pDirection) booleanFlowingFluid.canConvertToSource(FluidState state, ServerLevel level, BlockPos pos) private booleanFlowingFluid.canMaybePassThrough(BlockGetter pLevel, BlockPos pPos, BlockState pState, Direction pDirection, BlockPos pSpreadPos, BlockState pSpreadState, FluidState pFluidState) private booleanFlowingFluid.canPassThrough(BlockGetter pLevel, Fluid pFluid, BlockPos pPos, BlockState pState, Direction pDirection, BlockPos pSpreadPos, BlockState pSpreadState, FluidState pFluidState) protected BlockStateEmptyFluid.createLegacyBlock(FluidState pState) protected abstract BlockStateFluid.createLegacyBlock(FluidState pState) LavaFluid.createLegacyBlock(FluidState pState) WaterFluid.createLegacyBlock(FluidState pState) intEmptyFluid.getAmount(FluidState pState) abstract intFlowingFluid.getAmount(FluidState p_164509_) abstract intFluid.getAmount(FluidState pState) intLavaFluid.Flowing.getAmount(FluidState pState) intLavaFluid.Source.getAmount(FluidState pState) intWaterFluid.Flowing.getAmount(FluidState pState) intWaterFluid.Source.getAmount(FluidState pState) EmptyFluid.getFlow(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) FlowingFluid.getFlow(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) protected abstract Vec3Fluid.getFlow(BlockGetter pBlockReader, BlockPos pPos, FluidState pFluidState) floatEmptyFluid.getHeight(FluidState p_75926_, BlockGetter p_75927_, BlockPos p_75928_) floatFlowingFluid.getHeight(FluidState p_76050_, BlockGetter p_76051_, BlockPos p_76052_) abstract floatFluid.getHeight(FluidState pState, BlockGetter pLevel, BlockPos pPos) protected static intFlowingFluid.getLegacyLevel(FluidState pState) floatEmptyFluid.getOwnHeight(FluidState p_75924_) floatFlowingFluid.getOwnHeight(FluidState p_76048_) abstract floatFluid.getOwnHeight(FluidState pState) EmptyFluid.getShape(FluidState p_75939_, BlockGetter p_75940_, BlockPos p_75941_) FlowingFluid.getShape(FluidState p_76084_, BlockGetter p_76085_, BlockPos p_76086_) abstract VoxelShapeFluid.getShape(FluidState pState, BlockGetter pLevel, BlockPos pPos) protected intFlowingFluid.getSpreadDelay(Level pLevel, BlockPos pPos, FluidState pCurrentState, FluidState pNewState) intLavaFluid.getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) private static booleanFlowingFluid.hasSameAbove(FluidState pFluidState, BlockGetter pLevel, BlockPos pPos) booleanEmptyFluid.isSource(FluidState pState) abstract booleanFluid.isSource(FluidState pState) booleanLavaFluid.Flowing.isSource(FluidState pState) booleanLavaFluid.Source.isSource(FluidState pState) booleanWaterFluid.Flowing.isSource(FluidState pState) booleanWaterFluid.Source.isSource(FluidState pState) private booleanFlowingFluid.isSourceBlockOfThisType(FluidState pState) protected voidFluid.randomTick(ServerLevel pLevel, BlockPos pPos, FluidState pState, RandomSource pRandom) voidLavaFluid.randomTick(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected final voidFluid.registerDefaultState(FluidState pState) protected voidFlowingFluid.spread(ServerLevel pLevel, BlockPos pPos, BlockState pBlockState, FluidState pFluidState) protected voidFlowingFluid.spreadTo(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) protected voidLavaFluid.spreadTo(LevelAccessor pLevel, BlockPos pPos, BlockState pBlockState, Direction pDirection, FluidState pFluidState) private voidFlowingFluid.spreadToSides(ServerLevel pLevel, BlockPos pPos, FluidState pFluidState, BlockState pBlockState) voidFlowingFluid.tick(ServerLevel p_376710_, BlockPos p_75996_, BlockState p_360412_, FluidState p_75997_) protected voidFluid.tick(ServerLevel pLevel, BlockPos pPos, BlockState pBlockState, FluidState pFluidState) Method parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifier and TypeMethodDescriptionprotected voidFlowingFluid.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> pBuilder) protected voidFluid.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> pBuilder) protected voidLavaFluid.Flowing.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> pBuilder) protected voidWaterFluid.Flowing.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> pBuilder) Constructor parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifierConstructorDescriptionFluidState(Fluid pOwner, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> pValues, com.mojang.serialization.MapCodec<FluidState> pPropertiesCodec) -
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 pFluid1, FluidState pFluid2) booleanEntityCollisionContext.canStandOnFluid(FluidState p_205115_, FluidState p_205116_) Constructor parameters in net.minecraft.world.phys.shapes with type arguments of type FluidStateModifierConstructorDescriptionprotectedEntityCollisionContext(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 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 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, 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, 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.