net.minecraft.world.level.material

public abstract class FlowingFluid

extends Fluid

deq
net.minecraft.world.level.material.FlowingFluid
net.minecraft.class_3609
net.minecraft.fluid.FlowableFluid
net.minecraft.src.C_2688_
net.minecraft.world.level.material.FluidTypeFlowing

Field summary

Modifier and TypeField
public static final BooleanProperty
a
FALLING
field_15902
FALLING
f_75947_
public static final IntegerProperty
b
LEVEL
field_15900
LEVEL
f_75948_
private static final int
e
CACHE_SIZE
field_31726
field_31726
f_164507_
private static final ThreadLocal<it.unimi.dsi.fastutil.objects.Object2ByteLinkedOpenHashMap<Block$BlockStatePairKey>>
f
OCCLUSION_CACHE
field_15901
field_15901
f_75949_
private final Map<FluidState, VoxelShape>
g
shapes
field_17587
shapeCache
f_75950_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected void
a(ckt$a<der, des> arg0)
createFluidStateDefinition(StateDefinition$Builder<Fluid, FluidState> arg0)
method_15775(class_2689$class_2690<class_3611, class_3610> arg0)
appendProperties(StateManager$Builder<Fluid, FluidState> arg0)
m_7180_(C_2065_$C_2066_<C_2690_, C_2691_> arg0)
public Vec3
a(bvt arg0, gg arg1, des arg2)
getFlow(BlockGetter arg0, BlockPos arg1, FluidState arg2)
method_15782(class_1922 arg0, class_2338 arg1, class_3610 arg2)
getVelocity(BlockView arg0, BlockPos arg1, FluidState arg2)
m_7000_(C_1559_ p_75988_, C_4675_ p_75989_, C_2691_ arg2)
private boolean
g(des arg0)
affectsFlow(FluidState arg0)
method_15748(class_3610 arg0)
method_15748(FluidState state)
m_76094_(C_2691_ arg0)
protected boolean
a(bvt arg0, gg arg1, gl arg2)
isSolidFace(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_15749(class_1922 arg0, class_2338 arg1, class_2350 arg2)
method_15749(BlockView world, BlockPos pos, Direction arg2)
m_75990_(C_1559_ p_75992_, C_4675_ p_75993_, C_4687_ arg2)
protected void
a(bwq arg0, gg arg1, des arg2)
spread(LevelAccessor arg0, BlockPos arg1, FluidState arg2)
method_15725(class_1936 arg0, class_2338 arg1, class_3610 arg2)
tryFlow(WorldAccess world, BlockPos fluidPos, FluidState state)
m_76010_(C_1598_ p_76012_, C_4675_ p_76013_, C_2691_ arg2)
private void
a(bwq arg0, gg arg1, des arg2, cks arg3)
spreadToSides(LevelAccessor arg0, BlockPos arg1, FluidState arg2, BlockState arg3)
method_15744(class_1936 arg0, class_2338 arg1, class_3610 arg2, class_2680 arg3)
method_15744(WorldAccess world, BlockPos pos, FluidState fluidState, BlockState blockState)
m_76014_(C_1598_ p_76016_, C_4675_ p_76017_, C_2691_ p_76018_, C_2064_ arg3)
protected FluidState
a(bws arg0, gg arg1, cks arg2)
getNewLiquid(LevelReader arg0, BlockPos arg1, BlockState arg2)
method_15727(class_4538 arg0, class_2338 arg1, class_2680 arg2)
getUpdatedState(WorldView world, BlockPos pos, BlockState state)
m_76035_(C_1599_ p_76037_, C_4675_ p_76038_, C_2064_ arg2)
private boolean
a(gl arg0, bvt arg1, gg arg2, cks arg3, gg arg4, cks arg5)
canPassThroughWall(Direction arg0, BlockGetter arg1, BlockPos arg2, BlockState arg3, BlockPos arg4, BlockState arg5)
method_15732(class_2350 arg0, class_1922 arg1, class_2338 arg2, class_2680 arg3, class_2338 arg4, class_2680 arg5)
receivesFlow(Direction face, BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState)
m_76061_(C_4687_ p_76063_, C_1559_ p_76064_, C_4675_ p_76065_, C_2064_ p_76066_, C_4675_ p_76067_, C_2064_ arg5)
public abstract Fluid
d()
getFlowing()
method_15750()
getFlowing()
m_5615_()
public FluidState
a(int arg0, boolean arg1)
getFlowing(int arg0, boolean arg1)
method_15728(int arg0, boolean arg1)
getFlowing(int level, boolean falling)
m_75953_(int p_75955_, boolean arg1)
public abstract Fluid
e()
getSource()
method_15751()
getStill()
m_5613_()
public FluidState
a(boolean arg0)
getSource(boolean arg0)
method_15729(boolean arg0)
getStill(boolean falling)
m_76068_(boolean arg0)
protected abstract boolean
f()
canConvertToSource()
method_15737()
isInfinite()
m_6760_()
protected void
a(bwq arg0, gg arg1, cks arg2, gl arg3, des arg4)
spreadTo(LevelAccessor arg0, BlockPos arg1, BlockState arg2, Direction arg3, FluidState arg4)
method_15745(class_1936 arg0, class_2338 arg1, class_2680 arg2, class_2350 arg3, class_3610 arg4)
flow(WorldAccess world, BlockPos pos, BlockState state, Direction direction, FluidState fluidState)
m_6364_(C_1598_ p_76006_, C_4675_ p_76007_, C_2064_ p_76008_, C_4687_ p_76009_, C_2691_ arg4)
protected abstract void
a(bwq arg0, gg arg1, cks arg2)
beforeDestroyingBlock(LevelAccessor arg0, BlockPos arg1, BlockState arg2)
method_15730(class_1936 arg0, class_2338 arg1, class_2680 arg2)
beforeBreakingBlock(WorldAccess world, BlockPos pos, BlockState state)
m_7456_(C_1598_ p_76003_, C_4675_ p_76004_, C_2064_ arg2)
private static short
a(gg arg0, gg arg1)
getCacheKey(BlockPos arg0, BlockPos arg1)
method_15747(class_2338 arg0, class_2338 arg1)
method_15747(BlockPos arg0, BlockPos arg1)
m_76058_(C_4675_ p_76059_, C_4675_ p_76060_)
protected int
a(bws arg0, gg arg1, int arg2, gl arg3, cks arg4, gg arg5, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<cks, des>> arg6, it.unimi.dsi.fastutil.shorts.Short2BooleanMap arg7)
getSlopeDistance(LevelReader arg0, BlockPos arg1, int arg2, Direction arg3, BlockState arg4, BlockPos arg5, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> arg6, it.unimi.dsi.fastutil.shorts.Short2BooleanMap arg7)
method_15742(class_4538 arg0, class_2338 arg1, int arg2, class_2350 arg3, class_2680 arg4, class_2338 arg5, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<class_2680, class_3610>> arg6, it.unimi.dsi.fastutil.shorts.Short2BooleanMap arg7)
method_15742(WorldView world, BlockPos arg1, int arg2, Direction arg3, BlockState arg4, BlockPos arg5, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<BlockState, FluidState>> arg6, it.unimi.dsi.fastutil.shorts.Short2BooleanMap arg7)
m_76026_(C_1599_ p_76028_, C_4675_ p_76029_, int p_76030_, C_4687_ p_76031_, C_2064_ p_76032_, C_4675_ p_76033_, it.unimi.dsi.fastutil.shorts.Short2ObjectMap<com.mojang.datafixers.util.Pair<C_2064_, C_2691_>> p_76034_, it.unimi.dsi.fastutil.shorts.Short2BooleanMap arg7)
private boolean
a(bvt arg0, der arg1, gg arg2, cks arg3, gg arg4, cks arg5)
isWaterHole(BlockGetter arg0, Fluid arg1, BlockPos arg2, BlockState arg3, BlockPos arg4, BlockState arg5)
method_15736(class_1922 arg0, class_3611 arg1, class_2338 arg2, class_2680 arg3, class_2338 arg4, class_2680 arg5)
method_15736(BlockView world, Fluid fluid, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState)
m_75956_(C_1559_ p_75958_, C_2690_ p_75959_, C_4675_ p_75960_, C_2064_ p_75961_, C_4675_ p_75962_, C_2064_ arg5)
private boolean
a(bvt arg0, der arg1, gg arg2, cks arg3, gl arg4, gg arg5, cks arg6, des arg7)
canPassThrough(BlockGetter arg0, Fluid arg1, BlockPos arg2, BlockState arg3, Direction arg4, BlockPos arg5, BlockState arg6, FluidState arg7)
method_15746(class_1922 arg0, class_3611 arg1, class_2338 arg2, class_2680 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_3610 arg7)
canFlowThrough(BlockView world, Fluid fluid, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState)
m_75963_(C_1559_ p_75965_, C_2690_ p_75966_, C_4675_ p_75967_, C_2064_ p_75968_, C_4687_ p_75969_, C_4675_ p_75970_, C_2064_ p_75971_, C_2691_ arg7)
private boolean
h(des arg0)
isSourceBlockOfThisType(FluidState arg0)
method_15752(class_3610 arg0)
isMatchingAndStill(FluidState state)
m_76096_(C_2691_ arg0)
protected abstract int
b(bws arg0)
getSlopeFindDistance(LevelReader arg0)
method_15733(class_4538 arg0)
getFlowSpeed(WorldView world)
m_6719_(C_1599_ arg0)
private int
a(bws arg0, gg arg1)
sourceNeighborCount(LevelReader arg0, BlockPos arg1)
method_15740(class_4538 arg0, class_2338 arg1)
method_15740(WorldView world, BlockPos pos)
m_76019_(C_1599_ p_76021_, C_4675_ arg1)
protected Map<Direction, FluidState>
b(bws arg0, gg arg1, cks arg2)
getSpread(LevelReader arg0, BlockPos arg1, BlockState arg2)
method_15726(class_4538 arg0, class_2338 arg1, class_2680 arg2)
getSpread(WorldView world, BlockPos pos, BlockState state)
m_76079_(C_1599_ p_76081_, C_4675_ p_76082_, C_2064_ arg2)
private boolean
a(bvt arg0, gg arg1, cks arg2, der arg3)
canHoldFluid(BlockGetter arg0, BlockPos arg1, BlockState arg2, Fluid arg3)
method_15754(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_3611 arg3)
canFill(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
m_75972_(C_1559_ p_75974_, C_4675_ p_75975_, C_2064_ p_75976_, C_2690_ arg3)
protected boolean
a(bvt arg0, gg arg1, cks arg2, gl arg3, gg arg4, cks arg5, des arg6, der arg7)
canSpreadTo(BlockGetter arg0, BlockPos arg1, BlockState arg2, Direction arg3, BlockPos arg4, BlockState arg5, FluidState arg6, Fluid arg7)
method_15738(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_2350 arg3, class_2338 arg4, class_2680 arg5, class_3610 arg6, class_3611 arg7)
canFlow(BlockView world, BlockPos fluidPos, BlockState fluidBlockState, Direction flowDirection, BlockPos flowTo, BlockState flowToBlockState, FluidState fluidState, Fluid fluid)
m_75977_(C_1559_ p_75979_, C_4675_ p_75980_, C_2064_ p_75981_, C_4687_ p_75982_, C_4675_ p_75983_, C_2064_ p_75984_, C_2691_ p_75985_, C_2690_ arg7)
protected abstract int
c(bws arg0)
getDropOff(LevelReader arg0)
method_15739(class_4538 arg0)
getLevelDecreasePerBlock(WorldView world)
m_6713_(C_1599_ arg0)
protected int
a(bwp arg0, gg arg1, des arg2, des arg3)
getSpreadDelay(Level arg0, BlockPos arg1, FluidState arg2, FluidState arg3)
method_15753(class_1937 arg0, class_2338 arg1, class_3610 arg2, class_3610 arg3)
getNextTickDelay(World world, BlockPos pos, FluidState oldState, FluidState newState)
m_6886_(C_1596_ p_75999_, C_4675_ p_76000_, C_2691_ p_76001_, C_2691_ arg3)
public void
a(bwp arg0, gg arg1, des arg2)
tick(Level arg0, BlockPos arg1, FluidState arg2)
method_15778(class_1937 arg0, class_2338 arg1, class_3610 arg2)
onScheduledTick(World arg0, BlockPos arg1, FluidState arg2)
m_6292_(C_1596_ p_75996_, C_4675_ p_75997_, C_2691_ arg2)
protected static int
e(des arg0)
getLegacyLevel(FluidState arg0)
method_15741(class_3610 arg0)
getBlockStateLevel(FluidState state)
m_76092_(C_2691_ p_76093_)
private static boolean
c(des arg0, bvt arg1, gg arg2)
hasSameAbove(FluidState arg0, BlockGetter arg1, BlockPos arg2)
method_17774(class_3610 arg0, class_1922 arg1, class_2338 arg2)
isFluidAboveEqual(FluidState state, BlockView world, BlockPos pos)
m_76088_(C_2691_ p_76089_, C_1559_ p_76090_, C_4675_ p_76091_)
public float
a(des arg0, bvt arg1, gg arg2)
getHeight(FluidState arg0, BlockGetter arg1, BlockPos arg2)
method_15788(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getHeight(FluidState arg0, BlockView arg1, BlockPos arg2)
m_6098_(C_2691_ p_76051_, C_1559_ p_76052_, C_4675_ arg2)
public float
a(des arg0)
getOwnHeight(FluidState arg0)
method_20784(class_3610 arg0)
getHeight(FluidState arg0)
m_7427_(C_2691_ arg0)
public abstract int
d(des arg0)
getAmount(FluidState arg0)
method_15779(class_3610 arg0)
getLevel(FluidState arg0)
m_7430_(C_2691_ arg0)
public VoxelShape
b(des arg0, bvt arg1, gg arg2)
getShape(FluidState arg0, BlockGetter arg1, BlockPos arg2)
method_17775(class_3610 arg0, class_1922 arg1, class_2338 arg2)
getShape(FluidState arg0, BlockView arg1, BlockPos arg2)
m_7999_(C_2691_ p_76085_, C_1559_ p_76086_, C_4675_ arg2)