net.minecraft.world.level.material

public abstract class Fluid

dox
net.minecraft.world.level.material.Fluid
net.minecraft.class_3611
net.minecraft.fluid.Fluid
net.minecraft.src.C_2690_
net.minecraft.world.level.material.FluidType

Field summary

Modifier and TypeField
public static final IdMapper<FluidState>
c
FLUID_STATE_REGISTRY
field_15904
STATE_IDS
f_76104_
protected final StateDefinition<Fluid, FluidState>
d
stateDefinition
field_15905
stateManager
f_76105_
private FluidState
a
defaultFluidState
field_15903
defaultState
f_76103_
private final Holder$Reference<Fluid>
b
builtInRegistryHolder
field_36431
registryEntry
f_205066_

Constructor summary

ModifierConstructor
protected ()

Method summary

Modifier and TypeMethod
protected void
a(cus$a<dox, doy> arg0)
createFluidStateDefinition(StateDefinition$Builder<Fluid, FluidState> arg0)
method_15775(class_2689$class_2690<class_3611, class_3610> arg0)
appendProperties(StateManager$Builder<Fluid, FluidState> builder)
m_7180_(C_2066_<C_2690_, C_2691_> arg0)
public StateDefinition<Fluid, FluidState>
g()
getStateDefinition()
method_15783()
getStateManager()
m_76144_()
protected final void
f(doy arg0)
registerDefaultState(FluidState arg0)
method_15781(class_3610 arg0)
setDefaultState(FluidState state)
m_76142_(C_2691_ arg0)
public final FluidState
h()
defaultFluidState()
method_15785()
getDefaultState()
m_76145_()
public abstract Item
a()
getBucket()
method_15774()
getBucketItem()
m_6859_()
protected void
a(cga arg0, gt arg1, doy arg2, alu arg3)
animateTick(Level arg0, BlockPos arg1, FluidState arg2, RandomSource arg3)
method_15776(class_1937 arg0, class_2338 arg1, class_3610 arg2, class_5819 arg3)
randomDisplayTick(World world, BlockPos pos, FluidState state, Random random)
m_213811_(C_1596_ p_230551_, C_4675_ p_230552_, C_2691_ p_230553_, C_212974_ arg3)
protected void
a(cga arg0, gt arg1, doy arg2)
tick(Level arg0, BlockPos arg1, FluidState arg2)
method_15778(class_1937 arg0, class_2338 arg1, class_3610 arg2)
onScheduledTick(World world, BlockPos pos, FluidState state)
m_6292_(C_1596_ p_76114_, C_4675_ p_76115_, C_2691_ arg2)
protected void
b(cga arg0, gt arg1, doy arg2, alu arg3)
randomTick(Level arg0, BlockPos arg1, FluidState arg2, RandomSource arg3)
method_15792(class_1937 arg0, class_2338 arg1, class_3610 arg2, class_5819 arg3)
onRandomTick(World world, BlockPos pos, FluidState state, Random random)
m_213812_(C_1596_ p_230555_, C_4675_ p_230556_, C_2691_ p_230557_, C_212974_ arg3)
protected ParticleOptions
i()
getDripParticle()
method_15787()
getParticle()
m_7792_()
protected abstract boolean
a(doy arg0, cfg arg1, gt arg2, dox arg3, gy arg4)
canBeReplacedWith(FluidState arg0, BlockGetter arg1, BlockPos arg2, Fluid arg3, Direction arg4)
method_15777(class_3610 arg0, class_1922 arg1, class_2338 arg2, class_3611 arg3, class_2350 arg4)
canBeReplacedWith(FluidState state, BlockView world, BlockPos pos, Fluid fluid, Direction direction)
m_5486_(C_2691_ p_76128_, C_1559_ p_76129_, C_4675_ p_76130_, C_2690_ p_76131_, C_4687_ arg4)
protected abstract Vec3
a(cfg arg0, gt arg1, doy arg2)
getFlow(BlockGetter arg0, BlockPos arg1, FluidState arg2)
method_15782(class_1922 arg0, class_2338 arg1, class_3610 arg2)
getVelocity(BlockView world, BlockPos pos, FluidState state)
m_7000_(C_1559_ p_76111_, C_4675_ p_76112_, C_2691_ arg2)
public abstract int
a(cgd arg0)
getTickDelay(LevelReader arg0)
method_15789(class_4538 arg0)
getTickRate(WorldView world)
m_6718_(C_1599_ arg0)
protected boolean
j()
isRandomlyTicking()
method_15795()
hasRandomTicks()
m_6685_()
protected boolean
b()
isEmpty()
method_15794()
isEmpty()
m_6759_()
protected abstract float
c()
getExplosionResistance()
method_15784()
getBlastResistance()
m_6752_()
public abstract float
a(doy arg0, cfg arg1, gt arg2)
getHeight(FluidState arg0, BlockGetter arg1, BlockPos arg2)
method_15788(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getHeight(FluidState state, BlockView world, BlockPos pos)
m_6098_(C_2691_ p_76125_, C_1559_ p_76126_, C_4675_ arg2)
public abstract float
a(doy arg0)
getOwnHeight(FluidState arg0)
method_20784(class_3610 arg0)
getHeight(FluidState state)
m_7427_(C_2691_ arg0)
protected abstract BlockState
b(doy arg0)
createLegacyBlock(FluidState arg0)
method_15790(class_3610 arg0)
toBlockState(FluidState state)
m_5804_(C_2691_ arg0)
public abstract boolean
c(doy arg0)
isSource(FluidState arg0)
method_15793(class_3610 arg0)
isStill(FluidState state)
m_7444_(C_2691_ arg0)
public abstract int
d(doy arg0)
getAmount(FluidState arg0)
method_15779(class_3610 arg0)
getLevel(FluidState state)
m_7430_(C_2691_ arg0)
public boolean
a(dox arg0)
isSame(Fluid arg0)
method_15780(class_3611 arg0)
matchesType(Fluid fluid)
m_6212_(C_2690_ arg0)
public boolean
a(akh<dox> arg0)
is(TagKey<Fluid> arg0)
method_15791(class_6862<class_3611> arg0)
isIn(TagKey<Fluid> tag)
m_205067_(C_203208_<C_2690_> arg0)
public abstract VoxelShape
b(doy arg0, cfg arg1, gt arg2)
getShape(FluidState arg0, BlockGetter arg1, BlockPos arg2)
method_17775(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getShape(FluidState state, BlockView world, BlockPos pos)
m_7999_(C_2691_ p_76138_, C_1559_ p_76139_, C_4675_ arg2)
public Optional<SoundEvent>
k()
getPickupSound()
method_32359()
getBucketFillSound()
m_142520_()
public Holder$Reference<Fluid>
l()
builtInRegistryHolder()
method_40178()
getRegistryEntry()
m_205069_()