net.minecraft.block

public class PointedDripstoneBlock

extends Block implements Waterloggable, Falling

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable, Falling

net.minecraft.world.level.block.PointedDripstoneBlock
net.minecraft.world.level.block.PointedDripstoneBlock
net.minecraft.class_5689
net.minecraft.block.PointedDripstoneBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<PointedDripstoneBlock>
CODEC
CODEC
field_46413
CODEC
public static final EnumProperty<Direction>
TIP_DIRECTION
TIP_DIRECTION
field_28050
VERTICAL_DIRECTION
public static final EnumProperty<Thickness>
THICKNESS
THICKNESS
field_28051
THICKNESS
public static final BooleanProperty
WATERLOGGED
WATERLOGGED
field_28052
WATERLOGGED
private static final int
MAX_SEARCH_LENGTH_WHEN_CHECKING_DRIP_TYPE
MAX_SEARCH_LENGTH_WHEN_CHECKING_DRIP_TYPE
field_31205
field_31205
private static final int
DELAY_BEFORE_FALLING
DELAY_BEFORE_FALLING
field_31207
field_31207
private static final float
DRIP_PROBABILITY_PER_ANIMATE_TICK
DRIP_PROBABILITY_PER_ANIMATE_TICK
field_31208
field_31208
private static final float
DRIP_PROBABILITY_PER_ANIMATE_TICK_IF_UNDER_LIQUID_SOURCE
DRIP_PROBABILITY_PER_ANIMATE_TICK_IF_UNDER_LIQUID_SOURCE
field_31209
field_31209
private static final int
MAX_SEARCH_LENGTH_BETWEEN_STALACTITE_TIP_AND_CAULDRON
MAX_SEARCH_LENGTH_BETWEEN_STALACTITE_TIP_AND_CAULDRON
field_31210
field_31210
private static final float
WATER_TRANSFER_PROBABILITY_PER_RANDOM_TICK
WATER_TRANSFER_PROBABILITY_PER_RANDOM_TICK
field_31211
WATER_DRIP_CHANCE
private static final float
LAVA_TRANSFER_PROBABILITY_PER_RANDOM_TICK
LAVA_TRANSFER_PROBABILITY_PER_RANDOM_TICK
field_31212
LAVA_DRIP_CHANCE
private static final double
MIN_TRIDENT_VELOCITY_TO_BREAK_DRIPSTONE
MIN_TRIDENT_VELOCITY_TO_BREAK_DRIPSTONE
field_31213
field_31213
private static final float
STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE
STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE
field_31214
field_31214
private static final int
STALACTITE_MAX_DAMAGE
STALACTITE_MAX_DAMAGE
field_31215
field_31215
private static final int
MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION
MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION
field_31200
field_31200
private static final float
STALAGMITE_FALL_DISTANCE_OFFSET
STALAGMITE_FALL_DISTANCE_OFFSET
field_31201
field_31201
private static final int
STALAGMITE_FALL_DAMAGE_MODIFIER
STALAGMITE_FALL_DAMAGE_MODIFIER
field_31202
field_31202
private static final float
AVERAGE_DAYS_PER_GROWTH
AVERAGE_DAYS_PER_GROWTH
field_33566
field_33566
private static final float
GROWTH_PROBABILITY_PER_RANDOM_TICK
GROWTH_PROBABILITY_PER_RANDOM_TICK
field_33567
field_33567
private static final int
MAX_GROWTH_LENGTH
MAX_GROWTH_LENGTH
field_33568
MAX_STALACTITE_GROWTH
private static final int
MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING
MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING
field_33569
STALACTITE_FLOOR_SEARCH_RANGE
private static final VoxelShape
SHAPE_TIP_MERGE
SHAPE_TIP_MERGE
field_28053
TIP_MERGE_SHAPE
private static final VoxelShape
SHAPE_TIP_UP
SHAPE_TIP_UP
field_28054
UP_TIP_SHAPE
private static final VoxelShape
SHAPE_TIP_DOWN
SHAPE_TIP_DOWN
field_28055
DOWN_TIP_SHAPE
private static final VoxelShape
SHAPE_FRUSTUM
SHAPE_FRUSTUM
field_28058
FRUSTUM_SHAPE
private static final VoxelShape
SHAPE_MIDDLE
SHAPE_MIDDLE
field_28056
MIDDLE_SHAPE
private static final VoxelShape
SHAPE_BASE
SHAPE_BASE
field_28057
BASE_SHAPE
private static final double
STALACTITE_DRIP_START_PIXEL
STALACTITE_DRIP_START_PIXEL
field_31203
DOWN_TIP_Y
private static final float
MAX_HORIZONTAL_OFFSET
MAX_HORIZONTAL_OFFSET
field_31204
MAX_HORIZONTAL_MODEL_OFFSET
private static final VoxelShape
REQUIRED_SPACE_TO_DRIP_THROUGH_NON_SOLID_BLOCK
REQUIRED_SPACE_TO_DRIP_THROUGH_NON_SOLID_BLOCK
field_36340
DRIP_COLLISION_SHAPE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<PointedDripstoneBlock>
codec()
codec()
method_53969()
getCodec()
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
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)
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)
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)
protected void
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile)
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)
public void
fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance)
fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance)
method_9554(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, double arg4)
onLandedUpon(World arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
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)
protected void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
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)
public static void
maybeTransferFluid(BlockState state, ServerLevel level, BlockPos pos, float randomValue)
maybeTransferFluid(BlockState state, ServerLevel level, BlockPos pos, float randomValue)
method_32772(class_2680 arg0, class_3218 arg1, class_2338 arg2, float arg3)
dripTick(BlockState state, ServerWorld world, BlockPos pos, float dripChance)
public BlockState
getStateForPlacement(BlockPlaceContext context)
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected FluidState
getFluidState(BlockState state)
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
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)
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()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
public void
onBrokenAfterFall(Level level, BlockPos pos, FallingBlockEntity entity)
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)
public DamageSource
getFallDamageSource(Entity entity)
getFallDamageSource(Entity entity)
method_32898(class_1297 arg0)
getDamageSource(Entity arg0)
private static void
spawnFallingStalactite(BlockState state, ServerLevel level, BlockPos pos)
spawnFallingStalactite(BlockState state, ServerLevel level, BlockPos pos)
method_32771(class_2680 arg0, class_3218 arg1, class_2338 arg2)
spawnFallingBlock(BlockState state, ServerWorld world, BlockPos pos)
public static void
growStalactiteOrStalagmiteIfPossible(BlockState stalactiteStartState, ServerLevel level, BlockPos stalactiteStartPos, RandomSource random)
growStalactiteOrStalagmiteIfPossible(BlockState stalactiteStartState, ServerLevel level, BlockPos stalactiteStartPos, RandomSource random)
method_36375(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
tryGrow(BlockState state, ServerWorld world, BlockPos pos, Random random)
private static void
growStalagmiteBelow(ServerLevel level, BlockPos posAboveStalagmite)
growStalagmiteBelow(ServerLevel level, BlockPos posAboveStalagmite)
method_36368(class_3218 arg0, class_2338 arg1)
tryGrowStalagmite(ServerWorld world, BlockPos pos)
private static void
grow(ServerLevel level, BlockPos growFromPos, Direction growToDirection)
grow(ServerLevel level, BlockPos growFromPos, Direction growToDirection)
method_36369(class_3218 arg0, class_2338 arg1, class_2350 arg2)
tryGrow(ServerWorld world, BlockPos pos, Direction direction)
private static void
createDripstone(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness)
createDripstone(LevelAccessor level, BlockPos pos, Direction direction, DripstoneThickness thickness)
method_36370(class_1936 arg0, class_2338 arg1, class_2350 arg2, class_5691 arg3)
place(WorldAccess world, BlockPos pos, Direction direction, Thickness thickness)
private static void
createMergedTips(BlockState tipState, LevelAccessor level, BlockPos tipPos)
createMergedTips(BlockState tipState, LevelAccessor level, BlockPos tipPos)
method_36376(class_2680 arg0, class_1936 arg1, class_2338 arg2)
growMerged(BlockState state, WorldAccess world, BlockPos pos)
public static void
spawnDripParticle(Level level, BlockPos stalactiteTipPos, BlockState stalactiteTipState)
spawnDripParticle(Level level, BlockPos stalactiteTipPos, BlockState stalactiteTipState)
method_32899(class_1937 arg0, class_2338 arg1, class_2680 arg2)
createParticle(World world, BlockPos pos, BlockState state)
private static void
spawnDripParticle(Level level, BlockPos stalactiteTipPos, BlockState stalactiteTipState, Fluid fluidAbove, BlockPos posAbove)
spawnDripParticle(Level level, BlockPos stalactiteTipPos, BlockState stalactiteTipState, Fluid fluidAbove, BlockPos posAbove)
method_32768(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_3611 arg3, class_2338 arg4)
createParticle(World world, BlockPos pos, BlockState state, Fluid fluid, BlockPos fluidPos)
private static BlockPos
findTip(BlockState dripstoneState, LevelAccessor level, BlockPos dripstonePos, int maxSearchLength, boolean includeMergedTip)
findTip(BlockState dripstoneState, LevelAccessor level, BlockPos dripstonePos, int maxSearchLength, boolean includeMergedTip)
method_32782(class_2680 arg0, class_1936 arg1, class_2338 arg2, int arg3, boolean arg4)
getTipPos(BlockState state, WorldAccess world, BlockPos pos, int range, boolean allowMerged)
private static Direction
calculateTipDirection(LevelReader level, BlockPos pos, Direction defaultTipDirection)
calculateTipDirection(LevelReader level, BlockPos pos, Direction defaultTipDirection)
method_32777(class_4538 arg0, class_2338 arg1, class_2350 arg2)
getDirectionToPlaceAt(WorldView world, BlockPos pos, Direction direction)
private static Thickness
calculateDripstoneThickness(LevelReader level, BlockPos pos, Direction tipDirection, boolean mergeOpposingTips)
calculateDripstoneThickness(LevelReader level, BlockPos pos, Direction tipDirection, boolean mergeOpposingTips)
method_32770(class_4538 arg0, class_2338 arg1, class_2350 arg2, boolean arg3)
getThickness(WorldView world, BlockPos pos, Direction direction, boolean tryMerge)
public static boolean
canDrip(BlockState state)
canDrip(BlockState state)
method_32783(class_2680 arg0)
canDrip(BlockState state)
private static boolean
canTipGrow(BlockState tipState, ServerLevel level, BlockPos tipPos)
canTipGrow(BlockState tipState, ServerLevel level, BlockPos tipPos)
method_36374(class_2680 arg0, class_3218 arg1, class_2338 arg2)
canGrow(BlockState state, ServerWorld world, BlockPos pos)
private static Optional<BlockPos>
findRootBlock(Level level, BlockPos pos, BlockState dripStoneState, int maxSearchLength)
findRootBlock(Level level, BlockPos pos, BlockState dripStoneState, int maxSearchLength)
method_32776(class_1937 arg0, class_2338 arg1, class_2680 arg2, int arg3)
getSupportingPos(World world, BlockPos pos, BlockState state, int range)
private static boolean
isValidPointedDripstonePlacement(LevelReader level, BlockPos pos, Direction tipDirection)
isValidPointedDripstonePlacement(LevelReader level, BlockPos pos, Direction tipDirection)
method_32781(class_4538 arg0, class_2338 arg1, class_2350 arg2)
canPlaceAtWithDirection(WorldView world, BlockPos pos, Direction direction)
private static boolean
isTip(BlockState state, boolean includeMergedTip)
isTip(BlockState state, boolean includeMergedTip)
method_32784(class_2680 arg0, boolean arg1)
isTip(BlockState state, boolean allowMerged)
private static boolean
isUnmergedTipWithDirection(BlockState state, Direction tipDirection)
isUnmergedTipWithDirection(BlockState state, Direction tipDirection)
method_36372(class_2680 arg0, class_2350 arg1)
isTip(BlockState state, Direction direction)
private static boolean
isStalactite(BlockState state)
isStalactite(BlockState state)
method_32785(class_2680 arg0)
isPointingDown(BlockState state)
private static boolean
isStalagmite(BlockState state)
isStalagmite(BlockState state)
method_35283(class_2680 arg0)
isPointingUp(BlockState state)
private static boolean
isStalactiteStartPos(BlockState state, LevelReader level, BlockPos pos)
isStalactiteStartPos(BlockState state, LevelReader level, BlockPos pos)
method_32778(class_2680 arg0, class_4538 arg1, class_2338 arg2)
isHeldByPointedDripstone(BlockState state, WorldView world, BlockPos pos)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
private static boolean
isPointedDripstoneWithDirection(BlockState blockState, Direction tipDirection)
isPointedDripstoneWithDirection(BlockState blockState, Direction tipDirection)
method_32774(class_2680 arg0, class_2350 arg1)
isPointedDripstoneFacingDirection(BlockState state, Direction direction)
private static BlockPos
findFillableCauldronBelowStalactiteTip(Level level, BlockPos stalactiteTipPos, Fluid fluid)
findFillableCauldronBelowStalactiteTip(Level level, BlockPos stalactiteTipPos, Fluid fluid)
method_32769(class_1937 arg0, class_2338 arg1, class_3611 arg2)
getCauldronPos(World world, BlockPos pos, Fluid fluid)
public static BlockPos
findStalactiteTipAboveCauldron(Level level, BlockPos cauldronPos)
findStalactiteTipAboveCauldron(Level level, BlockPos cauldronPos)
method_32767(class_1937 arg0, class_2338 arg1)
getDripPos(World world, BlockPos pos)
public static Fluid
getCauldronFillFluidType(ServerLevel level, BlockPos stalactitePos)
getCauldronFillFluidType(ServerLevel level, BlockPos stalactitePos)
method_32775(class_3218 arg0, class_2338 arg1)
getDripFluid(ServerWorld world, BlockPos pos)
private static Optional<PointedDripstoneBlock$DrippingFluid>
getFluidAboveStalactite(Level level, BlockPos stalactitePos, BlockState stalactiteState)
getFluidAboveStalactite(Level level, BlockPos stalactitePos, BlockState stalactiteState)
method_33276(class_1937 arg0, class_2338 arg1, class_2680 arg2)
getFluid(World world, BlockPos pos, BlockState state)
private static boolean
canFillCauldron(Fluid fluidAbove)
canFillCauldron(Fluid fluidAbove)
method_33273(class_3611 arg0)
isFluidLiquid(Fluid fluid)
private static boolean
canGrow(BlockState rootState, BlockState aboveState)
canGrow(BlockState rootState, BlockState aboveState)
method_36371(class_2680 arg0, class_2680 arg1)
canGrow(BlockState dripstoneBlockState, BlockState waterState)
private static ParticleEffect
getDripParticle(Level level, Fluid fluidAbove, BlockPos posAbove)
getDripParticle(Level level, Fluid fluidAbove, BlockPos posAbove)
method_75744(class_1937 arg0, class_3611 arg1, class_2338 arg2)
getParticleEffect(World world, Fluid fluid, BlockPos pos)
private static Optional<BlockPos>
findBlockVertical(LevelAccessor level, BlockPos pos, Direction$AxisDirection axisDirection, BiPredicate<BlockPos, BlockState> pathPredicate, Predicate<BlockState> targetPredicate, int maxSteps)
findBlockVertical(LevelAccessor level, BlockPos pos, Direction$AxisDirection axisDirection, BiPredicate<BlockPos, BlockState> pathPredicate, Predicate<BlockState> targetPredicate, int maxSteps)
method_33272(class_1936 arg0, class_2338 arg1, class_2350$class_2352 arg2, BiPredicate<class_2338, class_2680> arg3, Predicate<class_2680> arg4, int arg5)
searchInDirection(WorldAccess world, BlockPos pos, Direction$AxisDirection direction, BiPredicate<BlockPos, BlockState> continuePredicate, Predicate<BlockState> stopPredicate, int range)
private static boolean
canDripThrough(BlockGetter level, BlockPos pos, BlockState state)
canDripThrough(BlockGetter level, BlockPos pos, BlockState state)
method_40016(class_1922 arg0, class_2338 arg1, class_2680 arg2)
canDripThrough(BlockView world, BlockPos pos, BlockState state)