net.minecraft.world.level.material

public final class FluidState

extends StateHolder<Fluid, FluidState>

des
net.minecraft.world.level.material.FluidState
net.minecraft.class_3610
net.minecraft.fluid.FluidState
net.minecraft.src.C_2691_
net.minecraft.world.level.material.Fluid

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<FluidState>
a
CODEC
field_25018
CODEC
f_76146_
public static final int
b
AMOUNT_MAX
field_31727
field_31727
f_164510_
public static final int
g
AMOUNT_FULL
field_31728
field_31728
f_164511_

Constructor summary

ModifierConstructor
public (Fluid fluid, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> propertiesMap, com.mojang.serialization.MapCodec<FluidState> codec)

Method summary

Modifier and TypeMethod
public Fluid
a()
getType()
method_15772()
getFluid()
m_76152_()
getType()
public boolean
b()
isSource()
method_15771()
isStill()
m_76170_()
isSource()
public boolean
a(der arg0)
isSourceOfType(Fluid arg0)
method_33659(class_3611 arg0)
isEqualAndStill(Fluid fluid)
m_164512_(C_2690_ arg0)
public boolean
c()
isEmpty()
method_15769()
isEmpty()
m_76178_()
isEmpty()
public float
a(bvt arg0, gg arg1)
getHeight(BlockGetter arg0, BlockPos arg1)
method_15763(class_1922 arg0, class_2338 arg1)
getHeight(BlockView world, BlockPos pos)
m_76155_(C_1559_ p_76157_, C_4675_ arg1)
getHeight(IBlockAccess arg0, BlockPosition arg1)
public float
d()
getOwnHeight()
method_20785()
getHeight()
m_76182_()
public int
e()
getAmount()
method_15761()
getLevel()
m_76186_()
public boolean
b(bvt arg0, gg arg1)
shouldRenderBackwardUpFace(BlockGetter arg0, BlockPos arg1)
method_15756(class_1922 arg0, class_2338 arg1)
method_15756(BlockView world, BlockPos pos)
m_76171_(C_1559_ p_76173_, C_4675_ arg1)
public void
a(bwp arg0, gg arg1)
tick(Level arg0, BlockPos arg1)
method_15770(class_1937 arg0, class_2338 arg1)
onScheduledTick(World world, BlockPos pos)
m_76163_(C_1596_ p_76165_, C_4675_ arg1)
public void
a(bwp arg0, gg arg1, Random arg2)
animateTick(Level arg0, BlockPos arg1, Random arg2)
method_15768(class_1937 arg0, class_2338 arg1, Random arg2)
randomDisplayTick(World world, BlockPos pos, Random random)
m_76166_(C_1596_ p_76168_, C_4675_ p_76169_, Random arg2)
public boolean
f()
isRandomlyTicking()
method_15773()
hasRandomTicks()
m_76187_()
public void
b(bwp arg0, gg arg1, Random arg2)
randomTick(Level arg0, BlockPos arg1, Random arg2)
method_15757(class_1937 arg0, class_2338 arg1, Random arg2)
onRandomTick(World world, BlockPos pos, Random random)
m_76174_(C_1596_ p_76176_, C_4675_ p_76177_, Random arg2)
public Vec3
c(bvt arg0, gg arg1)
getFlow(BlockGetter arg0, BlockPos arg1)
method_15758(class_1922 arg0, class_2338 arg1)
getVelocity(BlockView world, BlockPos pos)
m_76179_(C_1559_ p_76181_, C_4675_ arg1)
public BlockState
g()
createLegacyBlock()
method_15759()
getBlockState()
m_76188_()
getBlockData()
public ParticleOptions
h()
getDripParticle()
method_15766()
getParticle()
m_76189_()
public boolean
a(aga<der> arg0)
is(Tag<Fluid> arg0)
method_15767(class_3494<class_3611> arg0)
isIn(Tag<Fluid> tag)
m_76153_(C_147_<C_2690_> arg0)
public float
i()
getExplosionResistance()
method_15760()
getBlastResistance()
m_76190_()
public boolean
a(bvt arg0, gg arg1, der arg2, gl arg3)
canBeReplacedWith(BlockGetter arg0, BlockPos arg1, Fluid arg2, Direction arg3)
method_15764(class_1922 arg0, class_2338 arg1, class_3611 arg2, class_2350 arg3)
canBeReplacedWith(BlockView world, BlockPos pos, Fluid fluid, Direction direction)
m_76158_(C_1559_ p_76160_, C_4675_ p_76161_, C_2690_ p_76162_, C_4687_ arg3)
public VoxelShape
d(bvt arg0, gg arg1)
getShape(BlockGetter arg0, BlockPos arg1)
method_17776(class_1922 arg0, class_2338 arg1)
getShape(BlockView world, BlockPos pos)
m_76183_(C_1559_ p_76185_, C_4675_ arg1)