net.minecraft.world.level.material

public final class FluidState

extends StateHolder<Fluid, FluidState>

doy
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_()
public boolean
b()
isSource()
method_15771()
isStill()
m_76170_()
public boolean
a(dox 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_()
public float
a(cfg arg0, gt 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)
public float
d()
getOwnHeight()
method_20785()
getHeight()
m_76182_()
public int
e()
getAmount()
method_15761()
getLevel()
m_76186_()
public boolean
b(cfg arg0, gt 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(cga arg0, gt 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(cga arg0, gt arg1, alu arg2)
animateTick(Level arg0, BlockPos arg1, RandomSource arg2)
method_15768(class_1937 arg0, class_2338 arg1, class_5819 arg2)
randomDisplayTick(World world, BlockPos pos, Random random)
m_230558_(C_1596_ p_230560_, C_4675_ p_230561_, C_212974_ arg2)
public boolean
f()
isRandomlyTicking()
method_15773()
hasRandomTicks()
m_76187_()
public void
b(cga arg0, gt arg1, alu arg2)
randomTick(Level arg0, BlockPos arg1, RandomSource arg2)
method_15757(class_1937 arg0, class_2338 arg1, class_5819 arg2)
onRandomTick(World world, BlockPos pos, Random random)
m_230562_(C_1596_ p_230564_, C_4675_ p_230565_, C_212974_ arg2)
public Vec3
c(cfg arg0, gt 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_()
public ParticleOptions
h()
getDripParticle()
method_15766()
getParticle()
m_76189_()
public boolean
a(akh<dox> arg0)
is(TagKey<Fluid> arg0)
method_15767(class_6862<class_3611> arg0)
isIn(TagKey<Fluid> tag)
m_205070_(C_203208_<C_2690_> arg0)
public boolean
a(he<dox> arg0)
is(HolderSet<Fluid> arg0)
method_40179(class_6885<class_3611> arg0)
isIn(RegistryEntryList<Fluid> fluids)
m_205072_(C_203233_<C_2690_> arg0)
public boolean
b(dox arg0)
is(Fluid arg0)
method_39360(class_3611 arg0)
isOf(Fluid fluid)
m_192917_(C_2690_ arg0)
public float
i()
getExplosionResistance()
method_15760()
getBlastResistance()
m_76190_()
public boolean
a(cfg arg0, gt arg1, dox arg2, gy 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(cfg arg0, gt 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)
public Holder<Fluid>
j()
holder()
method_40180()
getRegistryEntry()
m_205074_()
public Stream<TagKey<Fluid>>
k()
getTags()
method_40181()
streamTags()
m_205075_()