net.minecraft.block

public abstract class SpeleothemBlock

extends Block implements Waterloggable, Falling

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable, Falling

net.minecraft.world.level.block.SpeleothemBlock
net.minecraft.class_1_805
net.minecraft.block.SpeleothemBlock

Field summary

Modifier and TypeField
public static final EnumProperty<Direction>
TIP_DIRECTION
field_1_5735
DIRECTION
public static final EnumProperty<Thickness>
THICKNESS
field_1_5734
THICKNESS
public static final BooleanProperty
WATERLOGGED
field_1_5736
WATERLOGGED
private static final int
DELAY_BEFORE_FALLING
field_1_5719
field_1_5719
private static final double
MIN_TRIDENT_VELOCITY_TO_BREAK_SPELEOTHEM
field_1_5725
field_1_5725
private static final float
STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE
field_1_5732
field_1_5732
private static final int
STALACTITE_MAX_DAMAGE
field_1_5733
field_1_5733
private static final int
MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION
field_1_5723
field_1_5723
private static final VoxelShape
SHAPE_TIP_MERGE
field_1_5730
TIP_MERGE_SHAPE
private static final VoxelShape
SHAPE_TIP_UP
field_1_5731
TIP_UP_SHAPE
protected static final VoxelShape
SHAPE_TIP_DOWN
field_1_5729
TIP_DOWN_SHAPE
private static final VoxelShape
SHAPE_FRUSTUM
field_1_5727
FRUSTUM_SHAPE
private static final VoxelShape
SHAPE_MIDDLE
field_1_5728
MIDDLE_SHAPE
private static final VoxelShape
SHAPE_BASE
field_1_5726
BASE_SHAPE
private static final float
MAX_HORIZONTAL_OFFSET
field_1_5722
MAX_HORIZONTAL_MODEL_OFFSET
private static final float
AVERAGE_DAYS_PER_GROWTH
field_1_5718
field_1_5718
private static final float
GROWTH_PROBABILITY_PER_RANDOM_TICK
field_1_5720
GROWTH_ON_RANDOM_TICK_CHANCE
private static final int
MAX_GROWTH_LENGTH
field_1_5721
field_1_5721
private static final int
MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING
field_1_5724
field_1_5724
protected final BlockState
blockToGrowOn
field_1_5737
growsOn

Constructor summary

ModifierConstructor
public (BlockState growsOn, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
private Direction
calculateTipDirection(LevelReader level, BlockPos pos, Direction defaultTipDirection)
method_1_4924(class_4538 arg0, class_2338 arg1, class_2350 arg2)
getPlacementDirection(WorldView world, BlockPos pos, Direction direction)
private Thickness
calculateSpeleothemThickness(LevelReader level, BlockPos pos, Direction tipDirection, boolean mergeOpposingTips)
method_1_4923(class_4538 arg0, class_2338 arg1, class_2350 arg2, boolean arg3)
getThickness(WorldView world, BlockPos pos, Direction direction, boolean tipMerge)
private boolean
isValidSpeleothemPlacement(LevelReader level, BlockPos pos, Direction tipDirection)
method_1_4940(class_4538 arg0, class_2338 arg1, class_2350 arg2)
canPlaceAt(WorldView world, BlockPos pos, Direction direction)
private static boolean
isSpeleothemWithDirection(BlockState blockState, Direction tipDirection)
method_1_4934(class_2680 arg0, class_2350 arg1)
isSpeleothemInDirection(BlockState state, Direction direction)
protected void
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile)
method_19286(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World arg0, BlockState arg1, BlockHitResult arg2, ProjectileEntity arg3)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
private static void
spawnFallingStalactite(BlockState state, ServerLevel level, BlockPos pos)
method_1_4943(class_2680 arg0, class_3218 arg1, class_2338 arg2)
createFallingStalactites(BlockState state, ServerWorld world, BlockPos pos)
private static boolean
isStalagmite(BlockState state)
method_1_4937(class_2680 arg0)
isStalagmite(BlockState state)
protected static boolean
isStalactite(BlockState state)
method_1_4935(class_2680 arg0)
isStalactite(BlockState state)
private static boolean
isTip(BlockState state, boolean includeMergedTip)
method_1_4938(class_2680 arg0, boolean arg1)
isTip(BlockState state, boolean allowMerge)
public void
onBrokenAfterFall(Level level, BlockPos pos, FallingBlockEntity entity)
method_10129(class_1937 arg0, class_2338 arg1, class_1540 arg2)
onDestroyedOnLanding(World arg0, BlockPos arg1, FallingBlockEntity arg2)
protected abstract int
getStalactiteLandingSound()
method_1_5205()
getWorldEventId()
public DamageSource
getFallDamageSource(Entity entity)
method_32898(class_1297 arg0)
getDamageSource(Entity arg0)
protected FluidState
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
isCollisionShapeFullBlock(BlockState state, BlockGetter level, BlockPos pos)
method_37403(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isShapeFullCube(BlockState arg0, BlockView arg1, BlockPos arg2)
protected float
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
protected boolean
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
protected void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected static boolean
isStalactiteStartPos(BlockState state, LevelReader level, BlockPos pos)
method_1_4936(class_2680 arg0, class_4538 arg1, class_2338 arg2)
isStalactiteBase(BlockState state, WorldView world, BlockPos pos)
public void
growStalactiteOrStalagmiteIfPossible(BlockState stalactiteStartState, ServerLevel level, BlockPos stalactiteStartPos, RandomSource random)
method_1_4931(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
tryGrow(BlockState state, ServerWorld world, BlockPos pos, Random random)
protected boolean
canGrow(LevelReader level, BlockPos pos)
method_36371(class_4538 arg0, class_2338 arg1)
canGrow(WorldView world, BlockPos pos)
protected static BlockPos
findTip(BlockState speleothemState, LevelAccessor level, BlockPos speleothemPos, int maxSearchLength, boolean includeMergedTip)
method_1_4929(class_2680 arg0, class_1936 arg1, class_2338 arg2, int arg3, boolean arg4)
getTipPos(BlockState state, WorldAccess world, BlockPos pos, int searchLimit, boolean allowMerged)
protected static Optional<BlockPos>
findBlockVertical(LevelAccessor level, BlockPos pos, Direction$AxisDirection axisDirection, BiPredicate<BlockPos, BlockState> pathPredicate, Predicate<BlockState> targetPredicate, int maxSteps)
method_1_4928(class_1936 arg0, class_2338 arg1, class_2350$class_2352 arg2, BiPredicate<class_2338, class_2680> arg3, Predicate<class_2680> arg4, int arg5)
searchForTip(WorldAccess world, BlockPos pos, Direction$AxisDirection direction, BiPredicate<BlockPos, BlockState> columnPredicate, Predicate<BlockState> tipPredicate, int searchLimit)
private boolean
canTipGrow(BlockState tipState, ServerLevel level, BlockPos tipPos)
method_1_4925(class_2680 arg0, class_3218 arg1, class_2338 arg2)
canGrowInto(BlockState state, ServerWorld world, BlockPos pos)
private boolean
isUnmergedTipWithDirection(BlockState state, Direction tipDirection)
method_1_4939(class_2680 arg0, class_2350 arg1)
isSpeleothemOfSelf(BlockState state, Direction direction)
private void
grow(ServerLevel level, BlockPos growFromPos, Direction growToDirection)
method_1_4930(class_3218 arg0, class_2338 arg1, class_2350 arg2)
extend(ServerWorld world, BlockPos pos, Direction direction)
private void
createSpeleothem(LevelAccessor level, BlockPos pos, Direction direction, SpeleothemThickness thickness)
method_1_4927(class_1936 arg0, class_2338 arg1, class_2350 arg2, class_5691 arg3)
place(WorldAccess world, BlockPos pos, Direction direction, Thickness thickness)
private void
createMergedTips(BlockState tipState, LevelAccessor level, BlockPos tipPos)
method_1_4926(class_2680 arg0, class_1936 arg1, class_2338 arg2)
mergeTips(BlockState state, WorldAccess world, BlockPos pos)
private void
growStalagmiteBelow(ServerLevel level, BlockPos posAboveStalagmite)
method_1_4932(class_3218 arg0, class_2338 arg1)
growStalagmite(ServerWorld world, BlockPos pos)
protected boolean
blocksStalagmiteScan(LevelReader level, BlockPos pos, BlockState state)
method_1_4922(class_4538 arg0, class_2338 arg1, class_2680 arg2)
isDrippingObstructed(WorldView world, BlockPos pos, BlockState state)
protected static boolean
isFreeHangingStalactite(BlockState state)
method_1_4933(class_2680 arg0)
isGrowableTip(BlockState state)
protected int
getMaxGrowthLength()
method_1_6302()
getMaxGrowthLength()
private static boolean
lambda$findTip$1(boolean arg0, BlockState arg1)
method_1_4942(boolean arg0, class_2680 arg1)
method_1_4942(boolean arg0, BlockState st)
private static boolean
lambda$findTip$0(BlockState arg0, Direction arg1, BlockPos arg2, BlockState arg3)
method_1_4941(class_2680 arg0, class_2350 arg1, class_2338 arg2, class_2680 arg3)
method_1_4941(BlockState arg0, Direction arg1, BlockPos p, BlockState st)