Uses of Class
net.minecraft.world.level.material.FluidState
Package
Description
-
Uses of FluidState in net.minecraft.advancements.critereon
-
Uses of FluidState in net.minecraft.client.renderer
Modifier and TypeMethodDescriptionstatic RenderType
ItemBlockRenderTypes.getRenderLayer
(FluidState p_109288_) -
Uses of FluidState in net.minecraft.client.renderer.block
Modifier and TypeMethodDescriptionprivate float
LiquidBlockRenderer.getHeight
(BlockAndTintGetter p_203161_, Fluid p_203162_, BlockPos p_203163_, BlockState p_203164_, FluidState p_203165_) private static boolean
LiquidBlockRenderer.isNeighborSameFluid
(FluidState p_203186_, FluidState p_203187_) void
BlockRenderDispatcher.renderLiquid
(BlockPos p_234364_, BlockAndTintGetter p_234365_, VertexConsumer p_234366_, BlockState p_234367_, FluidState p_234368_) static boolean
LiquidBlockRenderer.shouldRenderFace
(BlockAndTintGetter p_203167_, BlockPos p_203168_, FluidState p_203169_, BlockState p_203170_, Direction p_203171_, FluidState p_203172_) void
LiquidBlockRenderer.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
-
Uses of FluidState in net.minecraft.nbt
Modifier and TypeMethodDescriptionstatic CompoundTag
NbtUtils.writeFluidState
(FluidState p_178023_) -
Uses of FluidState in net.minecraft.server.level
Modifier and TypeMethodDescriptionboolean
WorldGenRegion.isFluidAtPosition
(BlockPos p_143500_, Predicate<FluidState> p_143501_) -
Uses of FluidState in net.minecraft.world.entity
Modifier and TypeMethodDescriptionboolean
LivingEntity.canStandOnFluid
(FluidState p_204042_) float
Entity.getBlockExplosionResistance
(Explosion p_19992_, BlockGetter p_19993_, BlockPos p_19994_, BlockState p_19995_, FluidState p_19996_, float p_19997_) Modifier and TypeMethodDescriptionvoid
Entity.updateFluidHeightAndDoFluidPushing
(Predicate<FluidState> shouldUpdate) -
Uses of FluidState in net.minecraft.world.entity.monster
-
Uses of FluidState in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionfloat
WitherSkull.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.vehicle
Modifier and TypeMethodDescriptionfloat
MinecartTNT.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
Modifier and TypeMethodDescriptionBlockGetter.getFluidState
(BlockPos p_45569_) EmptyBlockGetter.getFluidState
(BlockPos p_45865_) Level.getFluidState
(BlockPos p_46671_) PathNavigationRegion.getFluidState
(BlockPos p_47171_) Modifier and TypeMethodDescriptionboolean
ClipContext.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 boolean
NaturalSpawner.isValidEmptySpawnBlock
(BlockGetter p_47057_, BlockPos p_47058_, BlockState p_47059_, FluidState p_47060_, EntityType<?> p_47061_) Modifier and TypeMethodDescriptionboolean
Level.isFluidAtPosition
(BlockPos p_151541_, Predicate<FluidState> p_151542_) boolean
LevelSimulatedReader.isFluidAtPosition
(BlockPos p_151584_, Predicate<FluidState> p_151585_) -
Uses of FluidState in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionAmethystClusterBlock.getFluidState
(BlockState p_152045_) BarrierBlock.getFluidState
(BlockState p_301306_) BaseCoralPlantTypeBlock.getFluidState
(BlockState p_49191_) BaseRailBlock.getFluidState
(BlockState p_152158_) BigDripleafBlock.getFluidState
(BlockState p_152312_) BigDripleafStemBlock.getFluidState
(BlockState p_152378_) BubbleColumnBlock.getFluidState
(BlockState p_51016_) CampfireBlock.getFluidState
(BlockState p_51318_) CandleBlock.getFluidState
(BlockState p_152844_) ChainBlock.getFluidState
(BlockState p_51475_) ChestBlock.getFluidState
(BlockState p_51581_) ConduitBlock.getFluidState
(BlockState p_52127_) CrossCollisionBlock.getFluidState
(BlockState p_52362_) DecoratedPotBlock.getFluidState
(BlockState p_272593_) EnderChestBlock.getFluidState
(BlockState p_53177_) GlowLichenBlock.getFluidState
(BlockState p_153311_) HangingRootsBlock.getFluidState
(BlockState p_153360_) KelpBlock.getFluidState
(BlockState p_54319_) KelpPlantBlock.getFluidState
(BlockState p_54336_) LadderBlock.getFluidState
(BlockState p_54377_) LanternBlock.getFluidState
(BlockState p_153492_) LeavesBlock.getFluidState
(BlockState p_221384_) LightBlock.getFluidState
(BlockState p_153699_) LightningRodBlock.getFluidState
(BlockState p_153759_) LiquidBlock.getFluidState
(BlockState p_54765_) MangrovePropaguleBlock.getFluidState
(BlockState p_221494_) MangroveRootsBlock.getFluidState
(BlockState p_221523_) PointedDripstoneBlock.getFluidState
(BlockState p_154235_) ScaffoldingBlock.getFluidState
(BlockState p_56073_) SculkSensorBlock.getFluidState
(BlockState p_154479_) SculkShriekerBlock.getFluidState
(BlockState p_222230_) SculkVeinBlock.getFluidState
(BlockState p_222394_) SeagrassBlock.getFluidState
(BlockState p_154537_) SeaPickleBlock.getFluidState
(BlockState p_56131_) SignBlock.getFluidState
(BlockState p_56299_) SlabBlock.getFluidState
(BlockState p_56397_) SmallDripleafBlock.getFluidState
(BlockState p_154634_) StairBlock.getFluidState
(BlockState p_56969_) TallSeagrassBlock.getFluidState
(BlockState p_154772_) TrapDoorBlock.getFluidState
(BlockState p_57568_) WallBlock.getFluidState
(BlockState p_58060_) WaterloggedTransparentBlock.getFluidState
(BlockState p_312084_) Modifier and TypeMethodDescriptionprotected static boolean
BigDripleafBlock.place
(LevelAccessor p_152242_, BlockPos p_152243_, FluidState p_152244_, Direction p_152245_) protected static boolean
BigDripleafStemBlock.place
(LevelAccessor p_152350_, BlockPos p_152351_, FluidState p_152352_, Direction p_152353_) boolean
CampfireBlock.placeLiquid
(LevelAccessor p_51257_, BlockPos p_51258_, BlockState p_51259_, FluidState p_51260_) boolean
CandleBlock.placeLiquid
(LevelAccessor p_152805_, BlockPos p_152806_, BlockState p_152807_, FluidState p_152808_) boolean
KelpBlock.placeLiquid
(LevelAccessor p_54309_, BlockPos p_54310_, BlockState p_54311_, FluidState p_54312_) boolean
KelpPlantBlock.placeLiquid
(LevelAccessor p_54330_, BlockPos p_54331_, BlockState p_54332_, FluidState p_54333_) boolean
LiquidBlockContainer.placeLiquid
(LevelAccessor p_54770_, BlockPos p_54771_, BlockState p_54772_, FluidState p_54773_) boolean
SeagrassBlock.placeLiquid
(LevelAccessor p_154520_, BlockPos p_154521_, BlockState p_154522_, FluidState p_154523_) default boolean
SimpleWaterloggedBlock.placeLiquid
(LevelAccessor p_56306_, BlockPos p_56307_, BlockState p_56308_, FluidState p_56309_) boolean
SlabBlock.placeLiquid
(LevelAccessor p_56368_, BlockPos p_56369_, BlockState p_56370_, FluidState p_56371_) boolean
TallSeagrassBlock.placeLiquid
(LevelAccessor p_154758_, BlockPos p_154759_, BlockState p_154760_, FluidState p_154761_) private static boolean
ConcretePowderBlock.shouldSolidify
(BlockGetter p_52081_, BlockPos p_52082_, BlockState p_52083_, FluidState fluidState) -
Uses of FluidState in net.minecraft.world.level.block.state
Modifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getFluidState()
BlockBehaviour.getFluidState
(BlockState p_60577_) Deprecated. -
Uses of FluidState in net.minecraft.world.level.chunk
Modifier 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
Modifier and TypeFieldDescriptionprotected static final FluidState
WorldCarver.LAVA
protected static final FluidState
WorldCarver.WATER
-
Uses of FluidState in net.minecraft.world.level.levelgen.feature.configurations
ModifierConstructorDescriptionSpringConfiguration
(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
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidState>
FluidState.CODEC
static final IdMapper<FluidState>
Fluid.FLUID_STATE_REGISTRY
private final Map<FluidState,
VoxelShape> FlowingFluid.shapes
protected final StateDefinition<Fluid,
FluidState> Fluid.stateDefinition
Modifier and TypeMethodDescriptionfinal FluidState
Fluid.defaultFluidState()
FlowingFluid.getFlowing
(int p_75954_, boolean p_75955_) protected FluidState
FlowingFluid.getNewLiquid
(Level p_256464_, BlockPos p_76037_, BlockState p_76038_) FlowingFluid.getSource
(boolean p_76069_) Modifier and TypeMethodDescriptionprotected Map<Direction,
FluidState> FlowingFluid.getSpread
(Level p_256191_, BlockPos p_76081_, BlockState p_76082_) Fluid.getStateDefinition()
Modifier and TypeMethodDescriptionprivate boolean
FlowingFluid.affectsFlow
(FluidState p_76095_) protected void
Fluid.animateTick
(Level p_230550_, BlockPos p_230551_, FluidState p_230552_, RandomSource p_230553_) void
LavaFluid.animateTick
(Level p_230567_, BlockPos p_230568_, FluidState p_230569_, RandomSource p_230570_) void
WaterFluid.animateTick
(Level p_230606_, BlockPos p_230607_, FluidState p_230608_, RandomSource p_230609_) boolean
EmptyFluid.canBeReplacedWith
(FluidState p_75930_, BlockGetter p_75931_, BlockPos p_75932_, Fluid p_75933_, Direction p_75934_) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState p_76127_, BlockGetter p_76128_, BlockPos p_76129_, Fluid p_76130_, Direction p_76131_) boolean
LavaFluid.canBeReplacedWith
(FluidState p_76233_, BlockGetter p_76234_, BlockPos p_76235_, Fluid p_76236_, Direction p_76237_) boolean
WaterFluid.canBeReplacedWith
(FluidState p_76458_, BlockGetter p_76459_, BlockPos p_76460_, Fluid p_76461_, Direction p_76462_) boolean
FlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) private boolean
FlowingFluid.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 boolean
FlowingFluid.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 BlockState
EmptyFluid.createLegacyBlock
(FluidState p_75937_) protected abstract BlockState
Fluid.createLegacyBlock
(FluidState p_76136_) LavaFluid.createLegacyBlock
(FluidState p_76249_) WaterFluid.createLegacyBlock
(FluidState p_76466_) int
EmptyFluid.getAmount
(FluidState p_75946_) abstract int
FlowingFluid.getAmount
(FluidState p_164509_) abstract int
Fluid.getAmount
(FluidState p_76141_) int
LavaFluid.Flowing.getAmount
(FluidState p_76264_) int
LavaFluid.Source.getAmount
(FluidState p_76269_) int
WaterFluid.Flowing.getAmount
(FluidState p_76480_) int
WaterFluid.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 Vec3
Fluid.getFlow
(BlockGetter p_76110_, BlockPos p_76111_, FluidState p_76112_) float
EmptyFluid.getHeight
(FluidState p_75926_, BlockGetter p_75927_, BlockPos p_75928_) float
FlowingFluid.getHeight
(FluidState p_76050_, BlockGetter p_76051_, BlockPos p_76052_) abstract float
Fluid.getHeight
(FluidState p_76124_, BlockGetter p_76125_, BlockPos p_76126_) protected static int
FlowingFluid.getLegacyLevel
(FluidState p_76093_) float
EmptyFluid.getOwnHeight
(FluidState p_75924_) float
FlowingFluid.getOwnHeight
(FluidState p_76048_) abstract float
Fluid.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 VoxelShape
Fluid.getShape
(FluidState p_76137_, BlockGetter p_76138_, BlockPos p_76139_) protected int
FlowingFluid.getSpreadDelay
(Level p_75998_, BlockPos p_75999_, FluidState p_76000_, FluidState p_76001_) int
LavaFluid.getSpreadDelay
(Level p_76203_, BlockPos p_76204_, FluidState p_76205_, FluidState p_76206_) private static boolean
FlowingFluid.hasSameAbove
(FluidState p_76089_, BlockGetter p_76090_, BlockPos p_76091_) boolean
EmptyFluid.isSource
(FluidState p_75944_) abstract boolean
Fluid.isSource
(FluidState p_76140_) boolean
LavaFluid.Flowing.isSource
(FluidState p_76262_) boolean
LavaFluid.Source.isSource
(FluidState p_76267_) boolean
WaterFluid.Flowing.isSource
(FluidState p_76478_) boolean
WaterFluid.Source.isSource
(FluidState p_76483_) private boolean
FlowingFluid.isSourceBlockOfThisType
(FluidState p_76097_) protected void
Fluid.randomTick
(Level p_230554_, BlockPos p_230555_, FluidState p_230556_, RandomSource p_230557_) void
LavaFluid.randomTick
(Level p_230572_, BlockPos p_230573_, FluidState p_230574_, RandomSource p_230575_) protected final void
Fluid.registerDefaultState
(FluidState p_76143_) protected void
FlowingFluid.spread
(Level p_255851_, BlockPos p_76012_, FluidState p_76013_) protected void
FlowingFluid.spreadTo
(LevelAccessor p_76005_, BlockPos p_76006_, BlockState p_76007_, Direction p_76008_, FluidState p_76009_) protected void
LavaFluid.spreadTo
(LevelAccessor p_76220_, BlockPos p_76221_, BlockState p_76222_, Direction p_76223_, FluidState p_76224_) private void
FlowingFluid.spreadToSides
(Level p_256644_, BlockPos p_76016_, FluidState p_76017_, BlockState p_76018_) void
FlowingFluid.tick
(Level p_75995_, BlockPos p_75996_, FluidState p_75997_) protected void
Fluid.tick
(Level p_76113_, BlockPos p_76114_, FluidState p_76115_) Modifier and TypeMethodDescriptionprotected void
FlowingFluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76046_) protected void
Fluid.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76121_) protected void
LavaFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76260_) protected void
WaterFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> p_76476_) protected int
FlowingFluid.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_) ModifierConstructorDescriptionFluidState
(Fluid p_76149_, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> p_76150_, com.mojang.serialization.MapCodec<FluidState> p_76151_) -
Uses of FluidState in net.minecraft.world.phys.shapes
Modifier and TypeFieldDescriptionprivate final Predicate<FluidState>
EntityCollisionContext.canStandOnFluid
Modifier and TypeMethodDescriptionboolean
CollisionContext.canStandOnFluid
(FluidState p_205110_, FluidState p_205111_) boolean
EntityCollisionContext.canStandOnFluid
(FluidState p_205115_, FluidState p_205116_) ModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, Entity p_198920_) -
Uses of FluidState in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic TextureAtlasSprite[]
ForgeHooksClient.getFluidSprites
(BlockAndTintGetter level, BlockPos pos, FluidState fluidStateIn) -
Uses of FluidState in net.minecraftforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault ResourceLocation
IClientFluidTypeExtensions.getFlowingTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a flowing fluid.default ResourceLocation
IClientFluidTypeExtensions.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 ResourceLocation
IClientFluidTypeExtensions.getStillTexture
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the reference of the texture to apply to a source fluid.default int
IClientFluidTypeExtensions.getTintColor
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the tint applied to the fluid's textures.static IClientFluidTypeExtensions
IClientFluidTypeExtensions.of
(FluidState state) -
Uses of FluidState in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.canBeHydrated
(BlockState state, BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default boolean
IForgeBlockState.canBeHydrated
(BlockGetter getter, BlockPos pos, FluidState fluid, BlockPos fluidPos) Returns whether the block can be hydrated by a fluid.default boolean
IForgeBoat.canBoatInFluid
(FluidState state) Returns whether the boat can be used on the fluid.default boolean
IForgeFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) Returns whether the fluid can create a source.default boolean
IForgeFluid.canExtinguish
(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.default boolean
IForgeFluid.canHydrate
(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.default @Nullable BlockPathTypes
IForgeFluid.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent fluid to a pathfinding entity.default @Nullable BlockPathTypes
IForgeFluid.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 float
IForgeFluid.getExplosionResistance
(FluidState state, BlockGetter level, BlockPos pos, Explosion explosion) Returns the explosion resistance of the fluid.default boolean
IForgeEntity.isInFluidType
(FluidState state) Returns whether the entity is within the fluid type of the state.default boolean
IForgeFluid.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
IForgeLivingEntity.moveInFluid
(FluidState state, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.default boolean
IForgeBlock.onDestroyedByPlayer
(BlockState state, Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlockState.onDestroyedByPlayer
(Level level, BlockPos pos, Player player, boolean willHarvest, FluidState fluid) Called when a player removes a block.default boolean
IForgeBlock.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 boolean
IForgeBlockState.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 boolean
IForgeEntity.shouldUpdateFluidWhileBoating
(FluidState state, Boat boat) Whenfalse
, the fluid will no longer update its height value while within a boat while it is not within a fluid (Boat.isUnderWater()
.default boolean
IForgeBoat.shouldUpdateFluidWhileRiding
(FluidState state, Entity rider) Whenfalse
, the fluid will no longer update its height value while within a boat while it is not within a fluid (Boat.isUnderWater()
.default boolean
IForgeFluid.shouldUpdateWhileBoating
(FluidState state, Boat boat, Entity rider) Whenfalse
, the fluid will no longer update its height value while within a boat while it is not within a fluid (Boat.isUnderWater()
.default boolean
IForgeFluid.supportsBoating
(FluidState state, Boat boat) Returns whether the boat can be used on the fluid. -
Uses of FluidState in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionFluidType.getStateForPlacement
(BlockAndTintGetter getter, BlockPos pos, FluidStack stack) Returns theFluidState
when aFluidStack
is trying to place it.Modifier and TypeMethodDescriptionfinal boolean
FluidType.canBePlacedInLevel
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns whether the fluid can be placed in the level.protected boolean
ForgeFlowingFluid.canBeReplacedWith
(FluidState state, BlockGetter level, BlockPos pos, Fluid fluidIn, Direction direction) boolean
FluidType.canConvertToSource
(FluidState state, LevelReader reader, BlockPos pos) Returns whether the fluid can create a source.boolean
ForgeFlowingFluid.canConvertToSource
(FluidState state, Level level, BlockPos pos) boolean
FluidType.canExtinguish
(FluidState state, BlockGetter getter, BlockPos pos) Returns whether the block can be extinguished by this fluid.boolean
FluidType.canHydrate
(FluidState state, BlockGetter getter, BlockPos pos, BlockState source, BlockPos sourcePos) Returns whether the block can be hydrated by a fluid.protected BlockState
ForgeFlowingFluid.createLegacyBlock
(FluidState state) @Nullable BlockPathTypes
FluidType.getAdjacentBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) Gets the path type of the adjacent fluid to a pathfinding entity.int
ForgeFlowingFluid.Flowing.getAmount
(FluidState state) int
ForgeFlowingFluid.Source.getAmount
(FluidState state) FluidType.getBlockForFluidState
(BlockAndTintGetter getter, BlockPos pos, FluidState state) Returns the associatedBlockState
for aFluidState
.@Nullable BlockPathTypes
FluidType.getBlockPathType
(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) Gets the path type of this fluid when an entity is pathfinding.int
FluidType.getDensity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the density of the fluid.int
FluidType.getLightLevel
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the light level emitted by the fluid.int
FluidType.getTemperature
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the temperature of the fluid.int
FluidType.getViscosity
(FluidState state, BlockAndTintGetter getter, BlockPos pos) Returns the viscosity, or thickness, of the fluid.void
FluidInteractionRegistry.FluidInteraction.interact
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Performs the interaction between the source and the surrounding data.boolean
ForgeFlowingFluid.Flowing.isSource
(FluidState state) boolean
ForgeFlowingFluid.Source.isSource
(FluidState state) boolean
FluidType.move
(FluidState state, LivingEntity entity, Vec3 movementVector, double gravity) Performs how an entity moves when within the fluid.boolean
FluidType.shouldUpdateWhileBoating
(FluidState state, Boat boat, Entity rider) Whenfalse
, the fluid will no longer update its height value while within a boat while it is not within a fluid (Boat.isUnderWater()
.boolean
FluidType.supportsBoating
(FluidState state, Boat boat) Returns whether the boat can be used on the fluid.boolean
FluidInteractionRegistry.HasFluidInteraction.test
(Level level, BlockPos currentPos, BlockPos relativePos, FluidState currentState) Returns whether the interaction can occur.Modifier and TypeMethodDescriptionprotected void
ForgeFlowingFluid.Flowing.createFluidStateDefinition
(StateDefinition.Builder<Fluid, FluidState> builder) ModifierConstructorDescriptionInteractionInformation
(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.