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 p_109288_) -
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 p_203161_, Fluid p_203162_, BlockPos p_203163_, BlockState p_203164_, FluidState p_203165_) private static booleanLiquidBlockRenderer.isNeighborSameFluid(FluidState p_203186_, FluidState p_203187_) voidBlockRenderDispatcher.renderLiquid(BlockPos p_234364_, BlockAndTintGetter p_234365_, VertexConsumer p_234366_, BlockState p_234367_, FluidState p_234368_) static booleanLiquidBlockRenderer.shouldRenderFace(BlockAndTintGetter p_203167_, BlockPos p_203168_, FluidState p_203169_, BlockState p_203170_, Direction p_203171_, FluidState p_203172_) voidLiquidBlockRenderer.tesselate(BlockAndTintGetter p_234370_, BlockPos p_234371_, VertexConsumer p_234372_, BlockState p_234373_, FluidState p_234374_) -
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 FluidStateModifier and TypeMethodDescriptionstatic CompoundTagNbtUtils.writeFluidState(FluidState p_178023_) -
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 p_204042_) floatEntity.getBlockExplosionResistance(Explosion p_19992_, BlockGetter p_19993_, BlockPos p_19994_, BlockState p_19995_, FluidState p_19996_, float p_19997_) -
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 p_37619_, BlockGetter p_37620_, BlockPos p_37621_, BlockState p_37622_, FluidState p_37623_, float p_37624_) -
Uses of FluidState in net.minecraft.world.entity.projectile.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type FluidStateModifier and TypeMethodDescriptionAbstractWindCharge.WindChargeDamageCalculator.getBlockExplosionResistance(Explosion p_326498_, BlockGetter p_326469_, BlockPos p_326029_, BlockState p_325970_, FluidState p_326399_) -
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 p_38675_, BlockGetter p_38676_, BlockPos p_38677_, BlockState p_38678_, FluidState p_38679_, float p_38680_) -
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 p_45569_) EmptyBlockGetter.getFluidState(BlockPos p_45865_) Level.getFluidState(BlockPos p_46671_) PathNavigationRegion.getFluidState(BlockPos p_47171_) Methods in net.minecraft.world.level with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanClipContext.Fluid.canPick(FluidState p_45732_) EntityBasedExplosionDamageCalculator.getBlockExplosionResistance(Explosion p_45902_, BlockGetter p_45903_, BlockPos p_45904_, BlockState p_45905_, FluidState p_45906_) ExplosionDamageCalculator.getBlockExplosionResistance(Explosion p_46099_, BlockGetter p_46100_, BlockPos p_46101_, BlockState p_46102_, FluidState p_46103_) ClipContext.getFluidShape(FluidState p_45699_, BlockGetter p_45700_, BlockPos p_45701_) static booleanNaturalSpawner.isValidEmptySpawnBlock(BlockGetter p_47057_, BlockPos p_47058_, BlockState p_47059_, FluidState p_47060_, EntityType<?> p_47061_) 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 p_151584_, Predicate<FluidState> p_151585_) 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 p_49191_) protected FluidStateBaseRailBlock.getFluidState(BlockState p_152158_) protected FluidStateBigDripleafBlock.getFluidState(BlockState p_152312_) protected FluidStateBigDripleafStemBlock.getFluidState(BlockState p_152378_) protected FluidStateBubbleColumnBlock.getFluidState(BlockState p_51016_) protected FluidStateCampfireBlock.getFluidState(BlockState p_51318_) protected FluidStateCandleBlock.getFluidState(BlockState p_152844_) protected FluidStateChainBlock.getFluidState(BlockState p_51475_) protected FluidStateChestBlock.getFluidState(BlockState p_51581_) protected FluidStateConduitBlock.getFluidState(BlockState p_52127_) protected FluidStateCrossCollisionBlock.getFluidState(BlockState p_52362_) protected FluidStateDecoratedPotBlock.getFluidState(BlockState p_272593_) protected FluidStateEnderChestBlock.getFluidState(BlockState p_53177_) protected FluidStateGlowLichenBlock.getFluidState(BlockState p_153311_) protected FluidStateHangingRootsBlock.getFluidState(BlockState p_153360_) protected FluidStateHeavyCoreBlock.getFluidState(BlockState p_335518_) protected FluidStateKelpBlock.getFluidState(BlockState p_54319_) protected FluidStateKelpPlantBlock.getFluidState(BlockState p_54336_) protected FluidStateLadderBlock.getFluidState(BlockState p_54377_) 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 p_54765_) protected FluidStateMangrovePropaguleBlock.getFluidState(BlockState p_221494_) protected FluidStateMangroveRootsBlock.getFluidState(BlockState p_221523_) protected FluidStatePointedDripstoneBlock.getFluidState(BlockState p_154235_) protected FluidStateScaffoldingBlock.getFluidState(BlockState p_56073_) protected FluidStateSculkSensorBlock.getFluidState(BlockState p_154479_) protected FluidStateSculkShriekerBlock.getFluidState(BlockState p_222230_) protected FluidStateSculkVeinBlock.getFluidState(BlockState p_222394_) protected FluidStateSeagrassBlock.getFluidState(BlockState p_154537_) protected FluidStateSeaPickleBlock.getFluidState(BlockState p_56131_) protected FluidStateSignBlock.getFluidState(BlockState p_56299_) protected FluidStateSlabBlock.getFluidState(BlockState p_56397_) protected FluidStateSmallDripleafBlock.getFluidState(BlockState p_154634_) protected FluidStateStairBlock.getFluidState(BlockState p_56969_) protected FluidStateTallSeagrassBlock.getFluidState(BlockState p_154772_) protected FluidStateTrapDoorBlock.getFluidState(BlockState p_57568_) protected FluidStateWallBlock.getFluidState(BlockState p_58060_) protected FluidStateWaterloggedTransparentBlock.getFluidState(BlockState p_313789_) Methods in net.minecraft.world.level.block with parameters of type FluidStateModifier and TypeMethodDescriptionprotected static booleanBigDripleafBlock.place(LevelAccessor p_152242_, BlockPos p_152243_, FluidState p_152244_, Direction p_152245_) protected static booleanBigDripleafStemBlock.place(LevelAccessor p_152350_, BlockPos p_152351_, FluidState p_152352_, Direction p_152353_) booleanCampfireBlock.placeLiquid(LevelAccessor p_51257_, BlockPos p_51258_, BlockState p_51259_, FluidState p_51260_) booleanCandleBlock.placeLiquid(LevelAccessor p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) booleanKelpBlock.placeLiquid(LevelAccessor p_54309_, BlockPos p_54310_, BlockState p_54311_, FluidState p_54312_) booleanKelpPlantBlock.placeLiquid(LevelAccessor p_54330_, BlockPos p_54331_, BlockState p_54332_, FluidState p_54333_) booleanLiquidBlockContainer.placeLiquid(LevelAccessor p_54770_, BlockPos p_54771_, BlockState p_54772_, FluidState p_54773_) booleanSeagrassBlock.placeLiquid(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default booleanSimpleWaterloggedBlock.placeLiquid(LevelAccessor p_56306_, BlockPos p_56307_, BlockState p_56308_, FluidState p_56309_) booleanSlabBlock.placeLiquid(LevelAccessor p_56368_, BlockPos p_56369_, BlockState p_56370_, FluidState p_56371_) booleanTallSeagrassBlock.placeLiquid(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) private static booleanConcretePowderBlock.shouldSolidify(BlockGetter p_52081_, BlockPos p_52082_, BlockState p_52083_, 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 p_60577_) -
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 p_62815_, int p_62816_, int p_62817_) LevelChunk.getFluidState(BlockPos p_62895_) LevelChunkSection.getFluidState(int p_63008_, int p_63009_, int p_63010_) 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 p_204848_, boolean p_204849_, int p_204850_, int p_204851_, HolderSet<Block> p_204852_) -
Uses of FluidState in net.minecraft.world.level.material
Fields in net.minecraft.world.level.material declared as FluidStateFields in net.minecraft.world.level.material with type parameters of type FluidStateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidState> FluidState.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 p_75954_, boolean p_75955_) protected FluidStateFlowingFluid.getNewLiquid(Level p_256464_, BlockPos p_76037_, BlockState p_76038_) FlowingFluid.getSource(boolean p_76069_) Methods in net.minecraft.world.level.material that return types with arguments of type FluidStateModifier and TypeMethodDescriptionprotected Map<Direction, FluidState> FlowingFluid.getSpread(Level p_256191_, BlockPos p_76081_, BlockState p_76082_) Fluid.getStateDefinition()Methods in net.minecraft.world.level.material with parameters of type FluidStateModifier and TypeMethodDescriptionprivate booleanFlowingFluid.affectsFlow(FluidState p_76095_) protected voidFluid.animateTick(Level p_230550_, BlockPos p_230551_, FluidState p_230552_, RandomSource p_230553_) 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 p_75930_, BlockGetter p_75931_, BlockPos p_75932_, Fluid p_75933_, Direction p_75934_) protected abstract booleanFluid.canBeReplacedWith(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) booleanLavaFluid.canBeReplacedWith(FluidState p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_) booleanWaterFluid.canBeReplacedWith(FluidState p_76458_, BlockGetter p_76459_, BlockPos p_76460_, Fluid p_76461_, Direction p_76462_) booleanFlowingFluid.canConvertToSource(FluidState state, Level level, BlockPos pos) private booleanFlowingFluid.canPassThrough(BlockGetter p_75964_, Fluid p_75965_, BlockPos p_75966_, BlockState p_75967_, Direction p_75968_, BlockPos p_75969_, BlockState p_75970_, FluidState p_75971_) protected booleanFlowingFluid.canSpreadTo(BlockGetter p_75978_, BlockPos p_75979_, BlockState p_75980_, Direction p_75981_, BlockPos p_75982_, BlockState p_75983_, FluidState p_75984_, Fluid p_75985_) protected BlockStateEmptyFluid.createLegacyBlock(FluidState p_75937_) protected abstract BlockStateFluid.createLegacyBlock(FluidState p_76136_) LavaFluid.createLegacyBlock(FluidState p_76249_) WaterFluid.createLegacyBlock(FluidState p_76466_) intEmptyFluid.getAmount(FluidState p_75946_) abstract intFlowingFluid.getAmount(FluidState p_164509_) abstract intFluid.getAmount(FluidState p_76141_) intLavaFluid.Flowing.getAmount(FluidState p_76264_) intLavaFluid.Source.getAmount(FluidState p_76269_) intWaterFluid.Flowing.getAmount(FluidState p_76480_) intWaterFluid.Source.getAmount(FluidState p_76485_) EmptyFluid.getFlow(BlockGetter p_75918_, BlockPos p_75919_, FluidState p_75920_) FlowingFluid.getFlow(BlockGetter p_75987_, BlockPos p_75988_, FluidState p_75989_) protected abstract Vec3Fluid.getFlow(BlockGetter p_76110_, BlockPos p_76111_, FluidState p_76112_) 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 p_76124_, BlockGetter p_76125_, BlockPos p_76126_) protected static intFlowingFluid.getLegacyLevel(FluidState p_76093_) floatEmptyFluid.getOwnHeight(FluidState p_75924_) floatFlowingFluid.getOwnHeight(FluidState p_76048_) abstract floatFluid.getOwnHeight(FluidState p_76123_) 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 p_76137_, BlockGetter p_76138_, BlockPos p_76139_) protected intFlowingFluid.getSpreadDelay(Level p_75998_, BlockPos p_75999_, FluidState p_76000_, FluidState p_76001_) intLavaFluid.getSpreadDelay(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) private static booleanFlowingFluid.hasSameAbove(FluidState p_76089_, BlockGetter p_76090_, BlockPos p_76091_) booleanEmptyFluid.isSource(FluidState p_75944_) abstract booleanFluid.isSource(FluidState p_76140_) booleanLavaFluid.Flowing.isSource(FluidState p_76262_) booleanLavaFluid.Source.isSource(FluidState p_76267_) booleanWaterFluid.Flowing.isSource(FluidState p_76478_) booleanWaterFluid.Source.isSource(FluidState p_76483_) private booleanFlowingFluid.isSourceBlockOfThisType(FluidState p_76097_) protected voidFluid.randomTick(Level p_230554_, BlockPos p_230555_, FluidState p_230556_, RandomSource p_230557_) voidLavaFluid.randomTick(Level p_230572_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected final voidFluid.registerDefaultState(FluidState p_76143_) protected voidFlowingFluid.spread(Level p_255851_, BlockPos p_76012_, FluidState p_76013_) protected voidFlowingFluid.spreadTo(LevelAccessor p_76005_, BlockPos p_76006_, BlockState p_76007_, Direction p_76008_, FluidState p_76009_) protected voidLavaFluid.spreadTo(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_) private voidFlowingFluid.spreadToSides(Level p_256644_, BlockPos p_76016_, FluidState p_76017_, BlockState p_76018_) voidFlowingFluid.tick(Level p_75995_, BlockPos p_75996_, FluidState p_75997_) protected voidFluid.tick(Level p_76113_, BlockPos p_76114_, FluidState p_76115_) Method parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifier and TypeMethodDescriptionprotected voidFlowingFluid.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> p_76046_) protected voidFluid.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> p_76121_) protected voidLavaFluid.Flowing.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> p_76260_) protected voidWaterFluid.Flowing.createFluidStateDefinition(StateDefinition.Builder<Fluid, FluidState> p_76476_) protected intFlowingFluid.getSlopeDistance(LevelReader p_76027_, BlockPos p_76028_, int p_76029_, Direction p_76030_, BlockState p_76031_, BlockPos p_76032_, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> p_76033_, it.unimi.dsi.fastutil.shorts.Short2BooleanMap p_76034_) Constructor parameters in net.minecraft.world.level.material with type arguments of type FluidStateModifierConstructorDescriptionFluidState(Fluid p_76149_, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> p_325993_, com.mojang.serialization.MapCodec<FluidState> p_76151_) -
Uses of FluidState in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes with type parameters of type FluidStateModifier and TypeFieldDescriptionprivate final Predicate<FluidState> EntityCollisionContext.canStandOnFluidMethods in net.minecraft.world.phys.shapes with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanCollisionContext.canStandOnFluid(FluidState p_205110_, FluidState p_205111_) booleanEntityCollisionContext.canStandOnFluid(FluidState p_205115_, FluidState p_205116_) Constructor parameters in net.minecraft.world.phys.shapes with type arguments of type FluidStateModifierConstructorDescriptionprotectedEntityCollisionContext(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, Entity p_198920_) -
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 booleanIFluidExtension.supportsBoating(FluidState state, Boat boat) Returns whether the boat can be used on the fluid. -
Uses of FluidState in net.neoforged.neoforge.debug.block
Methods in net.neoforged.neoforge.debug.block with parameters of type FluidStateModifier and TypeMethodDescriptionvoidOnDestroyedByPushReactionTests.DestroyedByPushReactionListeningBlock.onDestroyedByPushReaction(BlockState state, Level level, BlockPos pos, Direction pushDirection, FluidState 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. -
Uses of FluidState in net.neoforged.neoforge.oldtest.fluid
Methods in net.neoforged.neoforge.oldtest.fluid that return FluidStateModifier and TypeMethodDescriptionNewFluidTest.FluidloggableBlock.getFluidState(BlockState state) Methods in net.neoforged.neoforge.oldtest.fluid with parameters of type FluidStateModifier and TypeMethodDescriptionbooleanNewFluidTest.FluidloggableBlock.placeLiquid(LevelAccessor worldIn, BlockPos pos, BlockState state, FluidState fluidStateIn)