net.minecraft.world.level.material

public abstract class FlowingFluid

extends Fluid

evt
net.minecraft.world.level.material.FlowingFluid
net.minecraft.class_3609
net.minecraft.fluid.FlowableFluid

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(dzp$a<evu, evv> 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(dhv arg0, iu arg1, evv 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(evv arg0)
affectsFlow(FluidState arg0)
method_15748(class_3610 arg0)
isEmptyOrThis(FluidState state)
protected boolean
a(dhv arg0, iu arg1, ja 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(aro arg0, iu arg1, dzo arg2, evv 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(aro arg0, iu arg1, evv arg2, dzo 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(aro arg0, iu arg1, dzo 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(ja arg0, dhv arg1, iu arg2, dzo arg3, iu arg4, dzo 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(aro arg0)
canConvertToSource(ServerLevel arg0)
method_15737(class_3218 arg0)
isInfinite(ServerWorld world)
protected void
a(diq arg0, iu arg1, dzo arg2, ja arg3, evv 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(diq arg0, iu arg1, dzo 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(dis arg0, iu arg1, int arg2, ja arg3, dzo arg4, evt$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(dhv arg0, iu arg1, dzo arg2, iu arg3, dzo 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(dhv arg0, evu arg1, iu arg2, dzo arg3, ja arg4, iu arg5, dzo arg6, evv 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(dhv arg0, iu arg1, dzo arg2, ja arg3, iu arg4, dzo arg5, evv 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(evv arg0)
isSourceBlockOfThisType(FluidState arg0)
method_15752(class_3610 arg0)
isMatchingAndStill(FluidState state)
protected abstract int
b(dis arg0)
getSlopeFindDistance(LevelReader arg0)
method_15733(class_4538 arg0)
getMaxFlowDistance(WorldView world)
private int
a(dis arg0, iu arg1)
sourceNeighborCount(LevelReader arg0, BlockPos arg1)
method_15740(class_4538 arg0, class_2338 arg1)
countNeighboringSources(WorldView world, BlockPos pos)
protected Map<Direction, FluidState>
b(aro arg0, iu arg1, dzo 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(dzo arg0)
canHoldAnyFluid(BlockState arg0)
method_61814(class_2680 arg0)
canFill(BlockState state)
private static boolean
a(dhv arg0, iu arg1, dzo arg2, evu 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(dhv arg0, iu arg1, dzo arg2, evu 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(dis arg0)
getDropOff(LevelReader arg0)
method_15739(class_4538 arg0)
getLevelDecreasePerBlock(WorldView world)
protected int
a(dip arg0, iu arg1, evv arg2, evv 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(aro arg0, iu arg1, dzo arg2, evv 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(evv arg0)
getLegacyLevel(FluidState arg0)
method_15741(class_3610 arg0)
getBlockStateLevel(FluidState state)
private static boolean
d(evv arg0, dhv arg1, iu 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(evv arg0, dhv arg1, iu 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(evv arg0)
getOwnHeight(FluidState arg0)
method_20784(class_3610 arg0)
getHeight(FluidState arg0)
public abstract int
d(evv arg0)
getAmount(FluidState arg0)
method_15779(class_3610 arg0)
getLevel(FluidState arg0)
public VoxelShape
b(evv arg0, dhv arg1, iu 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)