net.minecraft.world.level.material

public final class FluidState

extends StateHolder<Fluid, FluidState>

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

Field summary

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

Constructor summary

ModifierConstructor
public (Fluid fluid, it.unimi.dsi.fastutil.objects.Reference2ObjectArrayMap<Property<?>, Comparable<?>> propertyMap, com.mojang.serialization.MapCodec<FluidState> codec)

Method summary

Modifier and TypeMethod
public Fluid
a()
getType()
method_15772()
getFluid()
public boolean
b()
isSource()
method_15771()
isStill()
public boolean
a(esz arg0)
isSourceOfType(Fluid arg0)
method_33659(class_3611 arg0)
isEqualAndStill(Fluid fluid)
public boolean
c()
isEmpty()
method_15769()
isEmpty()
public float
a(dfo arg0, ji arg1)
getHeight(BlockGetter arg0, BlockPos arg1)
method_15763(class_1922 arg0, class_2338 arg1)
getHeight(BlockView world, BlockPos pos)
public float
d()
getOwnHeight()
method_20785()
getHeight()
public int
e()
getAmount()
method_15761()
getLevel()
public boolean
b(dfo arg0, ji arg1)
shouldRenderBackwardUpFace(BlockGetter arg0, BlockPos arg1)
method_15756(class_1922 arg0, class_2338 arg1)
canFlowTo(BlockView world, BlockPos pos)
public void
a(ard arg0, ji arg1, dwy arg2)
tick(ServerLevel arg0, BlockPos arg1, BlockState arg2)
method_15770(class_3218 arg0, class_2338 arg1, class_2680 arg2)
onScheduledTick(ServerWorld world, BlockPos pos, BlockState state)
public void
a(dgj arg0, ji arg1, azh 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)
public boolean
f()
isRandomlyTicking()
method_15773()
hasRandomTicks()
public void
a(ard arg0, ji arg1, azh arg2)
randomTick(ServerLevel arg0, BlockPos arg1, RandomSource arg2)
method_15757(class_3218 arg0, class_2338 arg1, class_5819 arg2)
onRandomTick(ServerWorld world, BlockPos pos, Random random)
public Vec3
c(dfo arg0, ji arg1)
getFlow(BlockGetter arg0, BlockPos arg1)
method_15758(class_1922 arg0, class_2338 arg1)
getVelocity(BlockView world, BlockPos pos)
public BlockState
g()
createLegacyBlock()
method_15759()
getBlockState()
public ParticleOptions
h()
getDripParticle()
method_15766()
getParticle()
public boolean
a(axf<esz> arg0)
is(TagKey<Fluid> arg0)
method_15767(class_6862<class_3611> arg0)
isIn(TagKey<Fluid> tag)
public boolean
a(jv<esz> arg0)
is(HolderSet<Fluid> arg0)
method_40179(class_6885<class_3611> arg0)
isIn(RegistryEntryList<Fluid> fluids)
public boolean
b(esz arg0)
is(Fluid arg0)
method_39360(class_3611 arg0)
isOf(Fluid fluid)
public float
i()
getExplosionResistance()
method_15760()
getBlastResistance()
public boolean
a(dfo arg0, ji arg1, esz arg2, jn 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)
public VoxelShape
d(dfo arg0, ji arg1)
getShape(BlockGetter arg0, BlockPos arg1)
method_17776(class_1922 arg0, class_2338 arg1)
getShape(BlockView world, BlockPos pos)
public Holder<Fluid>
j()
holder()
method_40180()
getRegistryEntry()
public Stream<TagKey<Fluid>>
k()
getTags()
method_40181()
streamTags()