net.minecraft.fluid

public final class FluidState

extends State<Fluid, FluidState> implements EntryConvertible<Fluid>

All mapped superinterfaces:

EntryConvertible

net.minecraft.world.level.material.FluidState
net.minecraft.class_3610
net.minecraft.fluid.FluidState

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<FluidState>
CODEC
field_25018
CODEC
public static final int
AMOUNT_MAX
field_31727
MAX_AMOUNT
public static final int
AMOUNT_FULL
field_31728
MAX_FLUID_LEVEL

Constructor summary

ModifierConstructor
public (Fluid fluid, Property<?>[] properties, Comparable<?>[] values)

Method summary

Modifier and TypeMethod
public Fluid
getType()
method_15772()
getFluid()
public boolean
isSource()
method_15771()
isStill()
public boolean
isSourceOfType(Fluid fluidType)
method_33659(class_3611 arg0)
isEqualAndStill(Fluid fluid)
public boolean
isEmpty()
method_15769()
isEmpty()
public float
getHeight(BlockGetter level, BlockPos pos)
method_15763(class_1922 arg0, class_2338 arg1)
getHeight(BlockView world, BlockPos pos)
public float
getOwnHeight()
method_20785()
getHeight()
public boolean
isFull()
method_1_996()
isFull()
public int
getAmount()
method_15761()
getLevel()
public boolean
shouldRenderBackwardUpFace(BlockGetter level, BlockPos above)
method_15756(class_1922 arg0, class_2338 arg1)
canFlowTo(BlockView world, BlockPos pos)
public void
tick(ServerLevel level, BlockPos pos, BlockState blockState)
method_15770(class_3218 arg0, class_2338 arg1, class_2680 arg2)
onScheduledTick(ServerWorld world, BlockPos pos, BlockState state)
public void
animateTick(Level level, BlockPos pos, RandomSource random)
method_15768(class_1937 arg0, class_2338 arg1, class_5819 arg2)
randomDisplayTick(World world, BlockPos pos, Random random)
public boolean
isRandomlyTicking()
method_15773()
hasRandomTicks()
public void
randomTick(ServerLevel level, BlockPos pos, RandomSource random)
method_15757(class_3218 arg0, class_2338 arg1, class_5819 arg2)
onRandomTick(ServerWorld world, BlockPos pos, Random random)
public Vec3d
getFlow(BlockGetter level, BlockPos pos)
method_15758(class_1922 arg0, class_2338 arg1)
getVelocity(BlockView world, BlockPos pos)
public BlockState
createLegacyBlock()
method_15759()
getBlockState()
public ParticleEffect
getDripParticle()
method_15766()
getParticle()
public RegistryEntry<Fluid>
typeHolder()
method_40180()
getRegistryEntry()
public float
getExplosionResistance()
method_15760()
getBlastResistance()
public boolean
canBeReplacedWith(BlockGetter level, BlockPos pos, Fluid other, Direction direction)
method_15764(class_1922 arg0, class_2338 arg1, class_3611 arg2, class_2350 arg3)
canBeReplacedWith(BlockView world, BlockPos pos, Fluid fluid, Direction direction)
public VoxelShape
getShape(BlockGetter level, BlockPos pos)
method_17776(class_1922 arg0, class_2338 arg1)
getShape(BlockView world, BlockPos pos)
public Box
getAABB(BlockGetter level, BlockPos pos)
method_66789(class_1922 arg0, class_2338 arg1)
getCollisionBox(BlockView world, BlockPos pos)
public void
entityInside(Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier)
method_67695(class_1937 arg0, class_2338 arg1, class_1297 arg2, class_10774 arg3)
onEntityCollision(World world, BlockPos pos, Entity entity, EntityCollisionHandler handler)