net.minecraft.world.level.material

public abstract class FlowingFluid

extends Fluid

etv
net.minecraft.world.level.material.FlowingFluid
net.minecraft.class_3609
net.minecraft.fluid.FlowableFluid
net.minecraft.world.level.material.FluidTypeFlowing

Field summary

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

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected void
a(dxw$a<etw, etx> arg0)
createFluidStateDefinition(StateDefinition$Builder<Fluid, FluidState> arg0)
method_15775(class_2689$class_2690<class_3611, class_3610> arg0)
appendProperties(StateManager$Builder<Fluid, FluidState> arg0)
public Vec3
a(dgn arg0, jh arg1, etx 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)
private boolean
g(etx arg0)
affectsFlow(FluidState arg0)
method_15748(class_3610 arg0)
isEmptyOrThis(FluidState state)
protected boolean
a(dgn arg0, jh arg1, jm arg2)
isSolidFace(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_15749(class_1922 arg0, class_2338 arg1, class_2350 arg2)
isFlowBlocked(BlockView world, BlockPos pos, Direction direction)
protected void
a(ash arg0, jh arg1, dxv arg2, etx arg3)
spread(ServerLevel arg0, BlockPos arg1, BlockState arg2, FluidState arg3)
method_15725(class_3218 arg0, class_2338 arg1, class_2680 arg2, class_3610 arg3)
tryFlow(ServerWorld world, BlockPos fluidPos, BlockState blockState, FluidState fluidState)
private void
a(ash arg0, jh arg1, etx arg2, dxv arg3)
spreadToSides(ServerLevel arg0, BlockPos arg1, FluidState arg2, BlockState arg3)
method_15744(class_3218 arg0, class_2338 arg1, class_3610 arg2, class_2680 arg3)
flowToSides(ServerWorld world, BlockPos pos, FluidState fluidState, BlockState blockState)
protected FluidState
a(ash arg0, jh arg1, dxv arg2)
getNewLiquid(ServerLevel arg0, BlockPos arg1, BlockState arg2)
method_15727(class_3218 arg0, class_2338 arg1, class_2680 arg2)
getUpdatedState(ServerWorld world, BlockPos pos, BlockState state)
private static boolean
a(jm arg0, dgn arg1, jh arg2, dxv arg3, jh arg4, dxv 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)
public abstract Fluid
d()
getFlowing()
method_15750()
getFlowing()
public FluidState
a(int arg0, boolean arg1)
getFlowing(int arg0, boolean arg1)
method_15728(int arg0, boolean arg1)
getFlowing(int level, boolean falling)
public abstract Fluid
e()
getSource()
method_15751()
getStill()
public FluidState
a(boolean arg0)
getSource(boolean arg0)
method_15729(boolean arg0)
getStill(boolean falling)
protected abstract boolean
a(ash arg0)
canConvertToSource(ServerLevel arg0)
method_15737(class_3218 arg0)
isInfinite(ServerWorld world)
protected void
a(dhj arg0, jh arg1, dxv arg2, jm arg3, etx 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)
protected abstract void
a(dhj arg0, jh arg1, dxv 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)
protected int
a(dhl arg0, jh arg1, int arg2, jm arg3, dxv arg4, etv$b arg5)
getSlopeDistance(LevelReader arg0, BlockPos arg1, int arg2, Direction arg3, BlockState arg4, FlowingFluid$SpreadContext arg5)
method_15742(class_4538 arg0, class_2338 arg1, int arg2, class_2350 arg3, class_2680 arg4, class_3609$class_9900 arg5)
getMinFlowDownDistance(WorldView world, BlockPos pos, int arg2, Direction direction, BlockState state, FlowableFluid$SpreadCache spreadCache)
boolean
a(dgn arg0, jh arg1, dxv arg2, jh arg3, dxv arg4)
isWaterHole(BlockGetter arg0, BlockPos arg1, BlockState arg2, BlockPos arg3, BlockState arg4)
method_15736(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_2338 arg3, class_2680 arg4)
canFlowDownTo(BlockView world, BlockPos pos, BlockState state, BlockPos fromPos, BlockState fromState)
private boolean
a(dgn arg0, etw arg1, jh arg2, dxv arg3, jm arg4, jh arg5, dxv arg6, etx 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)
private boolean
a(dgn arg0, jh arg1, dxv arg2, jm arg3, jh arg4, dxv arg5, etx arg6)
canMaybePassThrough(BlockGetter arg0, BlockPos arg1, BlockState arg2, Direction arg3, BlockPos arg4, BlockState arg5, FluidState arg6)
method_61813(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_2350 arg3, class_2338 arg4, class_2680 arg5, class_3610 arg6)
canFlowThrough(BlockView world, BlockPos pos, BlockState state, Direction face, BlockPos fromPos, BlockState fromState, FluidState fluidState)
private boolean
h(etx arg0)
isSourceBlockOfThisType(FluidState arg0)
method_15752(class_3610 arg0)
isMatchingAndStill(FluidState state)
protected abstract int
b(dhl arg0)
getSlopeFindDistance(LevelReader arg0)
method_15733(class_4538 arg0)
getMaxFlowDistance(WorldView world)
private int
a(dhl arg0, jh arg1)
sourceNeighborCount(LevelReader arg0, BlockPos arg1)
method_15740(class_4538 arg0, class_2338 arg1)
countNeighboringSources(WorldView world, BlockPos pos)
protected Map<Direction, FluidState>
b(ash arg0, jh arg1, dxv arg2)
getSpread(ServerLevel arg0, BlockPos arg1, BlockState arg2)
method_15726(class_3218 arg0, class_2338 arg1, class_2680 arg2)
getSpread(ServerWorld world, BlockPos pos, BlockState state)
private static boolean
a(dxv arg0)
canHoldAnyFluid(BlockState arg0)
method_61814(class_2680 arg0)
canFill(BlockState state)
private static boolean
a(dgn arg0, jh arg1, dxv arg2, etw 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)
private static boolean
b(dgn arg0, jh arg1, dxv arg2, etw arg3)
canHoldSpecificFluid(BlockGetter arg0, BlockPos arg1, BlockState arg2, Fluid arg3)
method_61815(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_3611 arg3)
canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
protected abstract int
c(dhl arg0)
getDropOff(LevelReader arg0)
method_15739(class_4538 arg0)
getLevelDecreasePerBlock(WorldView world)
protected int
a(dhi arg0, jh arg1, etx arg2, etx 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)
public void
b(ash arg0, jh arg1, dxv arg2, etx arg3)
tick(ServerLevel arg0, BlockPos arg1, BlockState arg2, FluidState arg3)
method_15778(class_3218 arg0, class_2338 arg1, class_2680 arg2, class_3610 arg3)
onScheduledTick(ServerWorld arg0, BlockPos arg1, BlockState arg2, FluidState arg3)
protected static int
e(etx arg0)
getLegacyLevel(FluidState arg0)
method_15741(class_3610 arg0)
getBlockStateLevel(FluidState state)
private static boolean
c(etx arg0, dgn arg1, jh 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)
public float
a(etx arg0, dgn arg1, jh 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)
public float
a(etx arg0)
getOwnHeight(FluidState arg0)
method_20784(class_3610 arg0)
getHeight(FluidState arg0)
public abstract int
d(etx arg0)
getAmount(FluidState arg0)
method_15779(class_3610 arg0)
getLevel(FluidState arg0)
public VoxelShape
b(etx arg0, dgn arg1, jh 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)