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(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static booleanLiquidBlockRenderer.shouldRenderFace(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.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 fluidState) private booleanEntity.collidedWithFluid(FluidState fluid, BlockPos pos, Vec3 from, Vec3 to) floatEntity.getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState blockState, FluidState fluidState, float explosionPower) Explosion resistance of a block relative to this entityprivate voidLivingEntity.travelInFluid(Vec3 travelVector, 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 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) EmptyBlockAndTintGetter.getFluidState(BlockPos p_364619_) 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 p_346109_, BlockGetter p_345381_, BlockPos p_344921_, BlockState p_346239_, FluidState p_345105_) 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 p_151541_, Predicate<FluidState> p_151542_) 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 p_152045_) protected FluidStateBarrierBlock.getFluidState(BlockState p_296372_) protected FluidStateBaseCoralPlantTypeBlock.getFluidState(BlockState state) protected FluidStateBaseRailBlock.getFluidState(BlockState p_152158_) protected FluidStateBigDripleafBlock.getFluidState(BlockState p_152312_) protected FluidStateBigDripleafStemBlock.getFluidState(BlockState p_152378_) protected FluidStateBubbleColumnBlock.getFluidState(BlockState state) protected FluidStateCampfireBlock.getFluidState(BlockState state) protected FluidStateCandleBlock.getFluidState(BlockState p_152844_) 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 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 p_153492_) protected FluidStateLeavesBlock.getFluidState(BlockState p_221384_) protected FluidStateLightBlock.getFluidState(BlockState p_153699_) protected FluidStateLightningRodBlock.getFluidState(BlockState p_153759_) protected FluidStateLiquidBlock.getFluidState(BlockState state) 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 state) protected FluidStateSculkSensorBlock.getFluidState(BlockState p_154479_) protected FluidStateSculkShriekerBlock.getFluidState(BlockState p_222230_) 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 p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) 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 p_62621_) ImposterProtoChunk.getFluidState(BlockPos p_62736_) LevelChunk.getFluidState(int x, int y, int z) LevelChunk.getFluidState(BlockPos p_62895_) LevelChunkSection.getFluidState(int x, int y, int z) 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 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(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 state) protected voidFluid.animateTick(Level level, BlockPos pos, FluidState state, RandomSource random) 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 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, ServerLevel level, BlockPos pos) private booleanFlowingFluid.canMaybePassThrough(BlockGetter level, BlockPos pos, BlockState state, Direction direction, BlockPos spreadPos, BlockState spreadState, FluidState fluidState) private booleanFlowingFluid.canPassThrough(BlockGetter level, Fluid fluid, BlockPos pos, BlockState state, Direction direction, BlockPos spreadPos, BlockState spreadState, FluidState fluidState) protected BlockStateEmptyFluid.createLegacyBlock(FluidState state) protected abstract BlockStateFluid.createLegacyBlock(FluidState state) LavaFluid.createLegacyBlock(FluidState state) WaterFluid.createLegacyBlock(FluidState state) Fluid.getAABB(FluidState state, BlockGetter level, BlockPos pos) intEmptyFluid.getAmount(FluidState state) abstract intFlowingFluid.getAmount(FluidState p_164509_) 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 p_75926_, BlockGetter p_75927_, BlockPos p_75928_) floatFlowingFluid.getHeight(FluidState p_76050_, BlockGetter p_76051_, BlockPos p_76052_) abstract floatFluid.getHeight(FluidState state, BlockGetter level, BlockPos pos) protected static intFlowingFluid.getLegacyLevel(FluidState state) floatEmptyFluid.getOwnHeight(FluidState p_75924_) floatFlowingFluid.getOwnHeight(FluidState p_76048_) abstract floatFluid.getOwnHeight(FluidState state) 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 state, BlockGetter level, BlockPos pos) protected intFlowingFluid.getSpreadDelay(Level level, BlockPos pos, FluidState currentState, FluidState newState) intLavaFluid.getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) 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(ServerLevel level, BlockPos pos, FluidState state, RandomSource random) voidLavaFluid.randomTick(ServerLevel p_376493_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected final voidFluid.registerDefaultState(FluidState state) protected voidFlowingFluid.spread(ServerLevel level, BlockPos pos, BlockState blockState, FluidState fluidState) 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(ServerLevel level, BlockPos pos, FluidState fluidState, BlockState blockState) voidFlowingFluid.tick(ServerLevel p_376710_, BlockPos p_75996_, BlockState p_360412_, FluidState p_75997_) 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
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 p_205115_, FluidState p_205116_) Constructor parameters in net.minecraft.world.phys.shapes with type arguments of type FluidStateModifierConstructorDescriptionprotectedEntityCollisionContext(boolean descending, boolean placement, 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 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.