Uses of Class
net.minecraft.fluid.FluidState
Package
Description
The Named Binary Tag (NBT) data format.
-
Uses of FluidState in net.minecraft.block
Modifier and TypeFieldDescriptionprivate final List
<FluidState> FluidBlock.statesByLevel
private final Predicate
<FluidState> EntityShapeContext.walkOnFluidPredicate
Modifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getFluidState()
protected FluidState
AbstractBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
AbstractCoralBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
AbstractRailBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
AbstractSignBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
AmethystClusterBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
BarrierBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
BigDripleafBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
BigDripleafStemBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
BubbleColumnBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
CampfireBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
CandleBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
ChainBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
ChestBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
ConduitBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
DecoratedPotBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
EnderChestBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
FluidBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
GlowLichenBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
GrateBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
HangingRootsBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
HeavyCoreBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
HorizontalConnectingBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
KelpBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
KelpPlantBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
LadderBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
LanternBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
LeavesBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
LightBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
LightningRodBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
MangroveRootsBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
PointedDripstoneBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
PropaguleBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
ScaffoldingBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SculkSensorBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SculkShriekerBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SculkVeinBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SeagrassBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SeaPickleBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SlabBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
SmallDripleafBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
StairsBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
TallSeagrassBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
TrapdoorBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.protected FluidState
WallBlock.getFluidState
(BlockState state) Returns the state's associated fluid state.Modifier and TypeMethodDescriptionboolean
EntityShapeContext.canWalkOnFluid
(FluidState stateAbove, FluidState state) boolean
ShapeContext.canWalkOnFluid
(FluidState stateAbove, FluidState state) protected static boolean
BigDripleafBlock.placeDripleafAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) protected static boolean
BigDripleafStemBlock.placeStemAt
(WorldAccess world, BlockPos pos, FluidState fluidState, Direction direction) boolean
CampfireBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
CandleBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
FluidFillable.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
KelpPlantBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
SeagrassBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
SlabBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) boolean
TallSeagrassBlock.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) default boolean
Waterloggable.tryFillWithFluid
(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState) ModifierConstructorDescriptionprotected
EntityShapeContext
(boolean descending, double minY, ItemStack heldItem, Predicate<FluidState> walkOnFluidPredicate, @Nullable Entity entity) -
Uses of FluidState in net.minecraft.client.render
Modifier and TypeMethodDescriptionstatic RenderLayer
RenderLayers.getFluidLayer
(FluidState state) -
Uses of FluidState in net.minecraft.client.render.block
Modifier and TypeMethodDescriptionprivate float
FluidRenderer.getFluidHeight
(BlockRenderView world, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) private static boolean
FluidRenderer.isSameFluid
(FluidState a, FluidState b) void
FluidRenderer.render
(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) void
BlockRenderManager.renderFluid
(BlockPos pos, BlockRenderView world, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) static boolean
FluidRenderer.shouldRenderSide
(FluidState fluidState, BlockState blockState, Direction direction, FluidState fluidState2) -
Uses of FluidState in net.minecraft.client.render.chunk
Modifier and TypeMethodDescriptionChunkRendererRegion.getFluidState
(BlockPos pos) Returns the fluid state atpos
. -
Uses of FluidState in net.minecraft.client.render.entity.state
Modifier and TypeMethodDescriptionFallingBlockEntityRenderState.getFluidState
(BlockPos pos) Returns the fluid state atpos
. -
Uses of FluidState in net.minecraft.entity
Modifier and TypeMethodDescriptionboolean
LivingEntity.canWalkOnFluid
(FluidState state) float
Entity.getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity. -
Uses of FluidState in net.minecraft.entity.passive
-
Uses of FluidState in net.minecraft.entity.projectile
Modifier and TypeMethodDescriptionfloat
WitherSkullEntity.getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity. -
Uses of FluidState in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionfloat
TntMinecartEntity.getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity. -
Uses of FluidState in net.minecraft.fluid
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<FluidState> FluidState.CODEC
private final Map
<FluidState, VoxelShape> FlowableFluid.shapeCache
static final IdList
<FluidState> Fluid.STATE_IDS
protected final StateManager
<Fluid, FluidState> Fluid.stateManager
Modifier and TypeMethodDescriptionfinal FluidState
Fluid.getDefaultState()
FlowableFluid.getFlowing
(int level, boolean falling) FlowableFluid.getStill
(boolean falling) protected FluidState
FlowableFluid.getUpdatedState
(ServerWorld world, BlockPos pos, BlockState state) Modifier and TypeMethodDescriptionprotected Map
<Direction, FluidState> FlowableFluid.getSpread
(ServerWorld world, BlockPos pos, BlockState state) Fluid.getStateManager()
Modifier and TypeMethodDescriptionboolean
EmptyFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) protected abstract boolean
Fluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
LavaFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) boolean
WaterFluid.canBeReplacedWith
(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction) private boolean
FlowableFluid.canFlowThrough
(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState) private boolean
FlowableFluid.canFlowThrough
(BlockView world, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState) protected void
FlowableFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) protected void
LavaFluid.flow
(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState) private void
FlowableFluid.flowToSides
(ServerWorld world, BlockPos pos, FluidState fluidState, BlockState blockState) protected static int
FlowableFluid.getBlockStateLevel
(FluidState state) float
EmptyFluid.getHeight
(FluidState state) float
EmptyFluid.getHeight
(FluidState state, BlockView world, BlockPos pos) float
FlowableFluid.getHeight
(FluidState state) float
FlowableFluid.getHeight
(FluidState state, BlockView world, BlockPos pos) abstract float
Fluid.getHeight
(FluidState state) abstract float
Fluid.getHeight
(FluidState state, BlockView world, BlockPos pos) int
EmptyFluid.getLevel
(FluidState state) abstract int
FlowableFluid.getLevel
(FluidState state) abstract int
Fluid.getLevel
(FluidState state) int
LavaFluid.Flowing.getLevel
(FluidState state) int
LavaFluid.Still.getLevel
(FluidState state) int
WaterFluid.Flowing.getLevel
(FluidState state) int
WaterFluid.Still.getLevel
(FluidState state) protected int
FlowableFluid.getNextTickDelay
(World world, BlockPos pos, FluidState oldState, FluidState newState) int
LavaFluid.getNextTickDelay
(World world, BlockPos pos, FluidState oldState, FluidState newState) EmptyFluid.getShape
(FluidState state, BlockView world, BlockPos pos) FlowableFluid.getShape
(FluidState state, BlockView world, BlockPos pos) abstract VoxelShape
Fluid.getShape
(FluidState state, BlockView world, BlockPos pos) EmptyFluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) FlowableFluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) protected abstract Vec3d
Fluid.getVelocity
(BlockView world, BlockPos pos, FluidState state) private boolean
FlowableFluid.isEmptyOrThis
(FluidState state) private static boolean
FlowableFluid.isFluidAboveEqual
(FluidState state, BlockView world, BlockPos pos) private boolean
FlowableFluid.isMatchingAndStill
(FluidState state) boolean
EmptyFluid.isStill
(FluidState state) abstract boolean
Fluid.isStill
(FluidState state) boolean
LavaFluid.Flowing.isStill
(FluidState state) boolean
LavaFluid.Still.isStill
(FluidState state) boolean
WaterFluid.Flowing.isStill
(FluidState state) boolean
WaterFluid.Still.isStill
(FluidState state) protected void
Fluid.onRandomTick
(ServerWorld world, BlockPos pos, FluidState state, Random random) void
LavaFluid.onRandomTick
(ServerWorld world, BlockPos pos, FluidState state, Random random) void
FlowableFluid.onScheduledTick
(ServerWorld world, BlockPos pos, BlockState blockState, FluidState fluidState) protected void
Fluid.onScheduledTick
(ServerWorld world, BlockPos pos, BlockState blockState, FluidState fluidState) protected void
Fluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) void
LavaFluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) void
WaterFluid.randomDisplayTick
(World world, BlockPos pos, FluidState state, Random random) protected final void
Fluid.setDefaultState
(FluidState state) protected BlockState
EmptyFluid.toBlockState
(FluidState state) protected abstract BlockState
Fluid.toBlockState
(FluidState state) LavaFluid.toBlockState
(FluidState state) WaterFluid.toBlockState
(FluidState state) protected void
FlowableFluid.tryFlow
(ServerWorld world, BlockPos fluidPos, BlockState blockState, FluidState fluidState) Modifier and TypeMethodDescriptionprotected void
FlowableFluid.appendProperties
(StateManager.Builder<Fluid, FluidState> builder) protected void
Fluid.appendProperties
(StateManager.Builder<Fluid, FluidState> builder) protected void
LavaFluid.Flowing.appendProperties
(StateManager.Builder<Fluid, FluidState> builder) protected void
WaterFluid.Flowing.appendProperties
(StateManager.Builder<Fluid, FluidState> builder) ModifierConstructorDescriptionFluidState
(Fluid fluid, Reference2ObjectArrayMap<Property<?>, Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<FluidState> codec) -
Uses of FluidState in net.minecraft.nbt
Modifier and TypeMethodDescriptionstatic NbtCompound
NbtHelper.fromFluidState
(FluidState state) Returns the serialized fluid state. -
Uses of FluidState in net.minecraft.predicate
-
Uses of FluidState in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Predicate
<FluidState> RaycastContext.FluidHandling.predicate
Modifier and TypeMethodDescriptionBlockView.getFluidState
(BlockPos pos) Returns the fluid state atpos
.ChunkRegion.getFluidState
(BlockPos pos) Returns the fluid state atpos
.EmptyBlockRenderView.getFluidState
(BlockPos pos) Returns the fluid state atpos
.EmptyBlockView.getFluidState
(BlockPos pos) Returns the fluid state atpos
.World.getFluidState
(BlockPos pos) Returns the fluid state atpos
.Modifier and TypeMethodDescriptionRaycastContext.getFluidShape
(FluidState state, BlockView world, BlockPos pos) boolean
RaycastContext.FluidHandling.handled
(FluidState state) static boolean
SpawnHelper.isClearForSpawn
(BlockView blockView, BlockPos pos, BlockState state, FluidState fluidState, EntityType<?> entityType) Modifier and TypeMethodDescriptionboolean
ChunkRegion.testFluidState
(BlockPos pos, Predicate<FluidState> state) boolean
TestableWorld.testFluidState
(BlockPos pos, Predicate<FluidState> state) boolean
World.testFluidState
(BlockPos pos, Predicate<FluidState> state) -
Uses of FluidState in net.minecraft.world.chunk
Modifier and TypeMethodDescriptionChunkCache.getFluidState
(BlockPos pos) Returns the fluid state atpos
.ChunkSection.getFluidState
(int x, int y, int z) EmptyChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.ProtoChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.WorldChunk.getFluidState
(int x, int y, int z) WorldChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
.WrapperProtoChunk.getFluidState
(BlockPos pos) Returns the fluid state atpos
. -
Uses of FluidState in net.minecraft.world.explosion
Modifier and TypeMethodDescriptionAdvancedExplosionBehavior.getBlastResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState) EntityExplosionBehavior.getBlastResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState) ExplosionBehavior.getBlastResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState) -
Uses of FluidState in net.minecraft.world.gen.carver
Modifier and TypeFieldDescriptionprotected static final FluidState
Carver.LAVA
protected static final FluidState
Carver.WATER
-
Uses of FluidState in net.minecraft.world.gen.feature
ModifierConstructorDescriptionSpringFeatureConfig
(FluidState state, boolean requiresBlockBelow, int rockCount, int holeCount, RegistryEntryList<Block> validBlocks)