Package net.minecraft.world.level.block
Class PointedDripstoneBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.PointedDripstoneBlock
- All Implemented Interfaces:
FeatureElement
,BucketPickup
,Fallable
,LiquidBlockContainer
,SimpleWaterloggedBlock
,ItemLike
,IForgeBlock
,IForgeBucketPickup
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
Block.BlockStatePairKey
Nested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final VoxelShape
static final com.mojang.serialization.MapCodec<PointedDripstoneBlock>
private static final int
private static final float
private static final float
private static final VoxelShape
private static final float
private static final float
private static final int
private static final float
private static final int
private static final int
private static final int
private static final int
private static final VoxelShape
private static final double
private static final VoxelShape
private static final float
private static final float
private static final int
private static final int
private static final float
static final EnumProperty<DripstoneThickness>
static final DirectionProperty
private static final VoxelShape
private static final VoxelShape
private static final VoxelShape
private static final float
static final BooleanProperty
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPS
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick
(BlockState p_221870_, Level p_221871_, BlockPos p_221872_, RandomSource p_221873_) private static DripstoneThickness
calculateDripstoneThickness
(LevelReader p_154093_, BlockPos p_154094_, Direction p_154095_, boolean p_154096_) private static Direction
calculateTipDirection
(LevelReader p_154191_, BlockPos p_154192_, Direction p_154193_) static boolean
canDrip
(BlockState p_154239_) private static boolean
canDripThrough
(BlockGetter p_202018_, BlockPos p_202019_, BlockState p_202020_) private static boolean
canFillCauldron
(Fluid p_154159_) private static boolean
canGrow
(BlockState p_154141_, BlockState p_154142_) boolean
canSurvive
(BlockState p_154137_, LevelReader p_154138_, BlockPos p_154139_) private static boolean
canTipGrow
(BlockState p_154195_, ServerLevel p_154196_, BlockPos p_154197_) com.mojang.serialization.MapCodec<PointedDripstoneBlock>
codec()
protected void
private static void
createDripstone
(LevelAccessor p_154088_, BlockPos p_154089_, Direction p_154090_, DripstoneThickness p_154091_) private static void
createMergedTips
(BlockState p_154231_, LevelAccessor p_154232_, BlockPos p_154233_) void
fallOn
(Level p_154047_, BlockState p_154048_, BlockPos p_154049_, Entity p_154050_, float p_154051_) findBlockVertical
(LevelAccessor p_202007_, BlockPos p_202008_, Direction.AxisDirection p_202009_, BiPredicate<BlockPos, BlockState> p_202010_, Predicate<BlockState> p_202011_, int p_202012_) private static BlockPos
findFillableCauldronBelowStalactiteTip
(Level p_154077_, BlockPos p_154078_, Fluid p_154079_) findRootBlock
(Level p_154067_, BlockPos p_154068_, BlockState p_154069_, int p_154070_) static BlockPos
findStalactiteTipAboveCauldron
(Level p_154056_, BlockPos p_154057_) private static BlockPos
findTip
(BlockState p_154131_, LevelAccessor p_154132_, BlockPos p_154133_, int p_154134_, boolean p_154135_) static Fluid
getCauldronFillFluidType
(ServerLevel p_221850_, BlockPos p_221851_) private static Fluid
getDripFluid
(Level p_154053_, Fluid p_154054_) getFallDamageSource
(Entity p_254432_) private static Optional<PointedDripstoneBlock.FluidInfo>
getFluidAboveStalactite
(Level p_154182_, BlockPos p_154183_, BlockState p_154184_) getFluidState
(BlockState p_154235_) float
getOcclusionShape
(BlockState p_154170_, BlockGetter p_154171_, BlockPos p_154172_) getShape
(BlockState p_154117_, BlockGetter p_154118_, BlockPos p_154119_, CollisionContext p_154120_) getStateForPlacement
(BlockPlaceContext p_154040_) private static void
grow
(ServerLevel p_154036_, BlockPos p_154037_, Direction p_154038_) static void
growStalactiteOrStalagmiteIfPossible
(BlockState p_221888_, ServerLevel p_221889_, BlockPos p_221890_, RandomSource p_221891_) private static void
growStalagmiteBelow
(ServerLevel p_154033_, BlockPos p_154034_) boolean
isCollisionShapeFullBlock
(BlockState p_181235_, BlockGetter p_181236_, BlockPos p_181237_) boolean
isPathfindable
(BlockState p_154112_, BlockGetter p_154113_, BlockPos p_154114_, PathComputationType p_154115_) private static boolean
isPointedDripstoneWithDirection
(BlockState p_154208_, Direction p_154209_) private static boolean
isStalactite
(BlockState p_154241_) private static boolean
isStalactiteStartPos
(BlockState p_154204_, LevelReader p_154205_, BlockPos p_154206_) private static boolean
isStalagmite
(BlockState p_154243_) private static boolean
isTip
(BlockState p_154154_, boolean p_154155_) private static boolean
isUnmergedTipWithDirection
(BlockState p_154144_, Direction p_154145_) private static boolean
isValidPointedDripstonePlacement
(LevelReader p_154222_, BlockPos p_154223_, Direction p_154224_) static void
maybeTransferFluid
(BlockState p_221860_, ServerLevel p_221861_, BlockPos p_221862_, float p_221863_) void
onBrokenAfterFall
(Level p_154059_, BlockPos p_154060_, FallingBlockEntity p_154061_) void
onProjectileHit
(Level p_154042_, BlockState p_154043_, BlockHitResult p_154044_, Projectile p_154045_) void
randomTick
(BlockState p_221883_, ServerLevel p_221884_, BlockPos p_221885_, RandomSource p_221886_) static void
spawnDripParticle
(Level p_154063_, BlockPos p_154064_, BlockState p_154065_) private static void
spawnDripParticle
(Level p_154072_, BlockPos p_154073_, BlockState p_154074_, Fluid p_154075_) private static void
spawnFallingStalactite
(BlockState p_154098_, ServerLevel p_154099_, BlockPos p_154100_) void
tick
(BlockState p_221865_, ServerLevel p_221866_, BlockPos p_221867_, RandomSource p_221868_) updateShape
(BlockState p_154147_, Direction p_154148_, BlockState p_154149_, LevelAccessor p_154150_, BlockPos p_154151_, BlockPos p_154152_) Methods inherited from class net.minecraft.world.level.block.Block
appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxVerticalOffset, getMenuProvider, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isOcclusionShapeFullBlock, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onRemove, properties, propertiesCodec, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSound
Methods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
CODEC
-
TIP_DIRECTION
-
THICKNESS
-
WATERLOGGED
-
MAX_SEARCH_LENGTH_WHEN_CHECKING_DRIP_TYPE
private static final int MAX_SEARCH_LENGTH_WHEN_CHECKING_DRIP_TYPE- See Also:
-
DELAY_BEFORE_FALLING
private static final int DELAY_BEFORE_FALLING- See Also:
-
DRIP_PROBABILITY_PER_ANIMATE_TICK
private static final float DRIP_PROBABILITY_PER_ANIMATE_TICK- See Also:
-
DRIP_PROBABILITY_PER_ANIMATE_TICK_IF_UNDER_LIQUID_SOURCE
private static final float DRIP_PROBABILITY_PER_ANIMATE_TICK_IF_UNDER_LIQUID_SOURCE- See Also:
-
MAX_SEARCH_LENGTH_BETWEEN_STALACTITE_TIP_AND_CAULDRON
private static final int MAX_SEARCH_LENGTH_BETWEEN_STALACTITE_TIP_AND_CAULDRON- See Also:
-
WATER_TRANSFER_PROBABILITY_PER_RANDOM_TICK
private static final float WATER_TRANSFER_PROBABILITY_PER_RANDOM_TICK- See Also:
-
LAVA_TRANSFER_PROBABILITY_PER_RANDOM_TICK
private static final float LAVA_TRANSFER_PROBABILITY_PER_RANDOM_TICK- See Also:
-
MIN_TRIDENT_VELOCITY_TO_BREAK_DRIPSTONE
private static final double MIN_TRIDENT_VELOCITY_TO_BREAK_DRIPSTONE- See Also:
-
STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE
private static final float STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE- See Also:
-
STALACTITE_MAX_DAMAGE
private static final int STALACTITE_MAX_DAMAGE- See Also:
-
MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION
private static final int MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION- See Also:
-
STALAGMITE_FALL_DISTANCE_OFFSET
private static final float STALAGMITE_FALL_DISTANCE_OFFSET- See Also:
-
STALAGMITE_FALL_DAMAGE_MODIFIER
private static final int STALAGMITE_FALL_DAMAGE_MODIFIER- See Also:
-
AVERAGE_DAYS_PER_GROWTH
private static final float AVERAGE_DAYS_PER_GROWTH- See Also:
-
GROWTH_PROBABILITY_PER_RANDOM_TICK
private static final float GROWTH_PROBABILITY_PER_RANDOM_TICK- See Also:
-
MAX_GROWTH_LENGTH
private static final int MAX_GROWTH_LENGTH- See Also:
-
MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING
private static final int MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING- See Also:
-
STALACTITE_DRIP_START_PIXEL
private static final float STALACTITE_DRIP_START_PIXEL- See Also:
-
TIP_MERGE_SHAPE
-
TIP_SHAPE_UP
-
TIP_SHAPE_DOWN
-
FRUSTUM_SHAPE
-
MIDDLE_SHAPE
-
BASE_SHAPE
-
MAX_HORIZONTAL_OFFSET
private static final float MAX_HORIZONTAL_OFFSET- See Also:
-
REQUIRED_SPACE_TO_DRIP_THROUGH_NON_SOLID_BLOCK
-
-
Constructor Details
-
PointedDripstoneBlock
-
-
Method Details
-
codec
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinition
in classBlock
-
canSurvive
- Overrides:
canSurvive
in classBlockBehaviour
-
updateShape
public BlockState updateShape(BlockState p_154147_, Direction p_154148_, BlockState p_154149_, LevelAccessor p_154150_, BlockPos p_154151_, BlockPos p_154152_) - Overrides:
updateShape
in classBlockBehaviour
-
onProjectileHit
public void onProjectileHit(Level p_154042_, BlockState p_154043_, BlockHitResult p_154044_, Projectile p_154045_) - Overrides:
onProjectileHit
in classBlockBehaviour
-
fallOn
public void fallOn(Level p_154047_, BlockState p_154048_, BlockPos p_154049_, Entity p_154050_, float p_154051_) -
animateTick
public void animateTick(BlockState p_221870_, Level p_221871_, BlockPos p_221872_, RandomSource p_221873_) - Overrides:
animateTick
in classBlock
-
tick
public void tick(BlockState p_221865_, ServerLevel p_221866_, BlockPos p_221867_, RandomSource p_221868_) - Overrides:
tick
in classBlockBehaviour
-
randomTick
public void randomTick(BlockState p_221883_, ServerLevel p_221884_, BlockPos p_221885_, RandomSource p_221886_) - Overrides:
randomTick
in classBlockBehaviour
-
maybeTransferFluid
public static void maybeTransferFluid(BlockState p_221860_, ServerLevel p_221861_, BlockPos p_221862_, float p_221863_) -
getStateForPlacement
- Overrides:
getStateForPlacement
in classBlock
-
getFluidState
- Overrides:
getFluidState
in classBlockBehaviour
-
getOcclusionShape
public VoxelShape getOcclusionShape(BlockState p_154170_, BlockGetter p_154171_, BlockPos p_154172_) - Overrides:
getOcclusionShape
in classBlockBehaviour
-
getShape
public VoxelShape getShape(BlockState p_154117_, BlockGetter p_154118_, BlockPos p_154119_, CollisionContext p_154120_) - Overrides:
getShape
in classBlockBehaviour
-
isCollisionShapeFullBlock
public boolean isCollisionShapeFullBlock(BlockState p_181235_, BlockGetter p_181236_, BlockPos p_181237_) - Overrides:
isCollisionShapeFullBlock
in classBlockBehaviour
-
getMaxHorizontalOffset
public float getMaxHorizontalOffset()- Overrides:
getMaxHorizontalOffset
in classBlockBehaviour
-
onBrokenAfterFall
- Specified by:
onBrokenAfterFall
in interfaceFallable
-
getFallDamageSource
- Specified by:
getFallDamageSource
in interfaceFallable
-
spawnFallingStalactite
private static void spawnFallingStalactite(BlockState p_154098_, ServerLevel p_154099_, BlockPos p_154100_) -
growStalactiteOrStalagmiteIfPossible
public static void growStalactiteOrStalagmiteIfPossible(BlockState p_221888_, ServerLevel p_221889_, BlockPos p_221890_, RandomSource p_221891_) -
growStalagmiteBelow
-
grow
-
createDripstone
private static void createDripstone(LevelAccessor p_154088_, BlockPos p_154089_, Direction p_154090_, DripstoneThickness p_154091_) -
createMergedTips
private static void createMergedTips(BlockState p_154231_, LevelAccessor p_154232_, BlockPos p_154233_) -
spawnDripParticle
-
spawnDripParticle
private static void spawnDripParticle(Level p_154072_, BlockPos p_154073_, BlockState p_154074_, Fluid p_154075_) -
findTip
@Nullable private static BlockPos findTip(BlockState p_154131_, LevelAccessor p_154132_, BlockPos p_154133_, int p_154134_, boolean p_154135_) -
calculateTipDirection
@Nullable private static Direction calculateTipDirection(LevelReader p_154191_, BlockPos p_154192_, Direction p_154193_) -
calculateDripstoneThickness
private static DripstoneThickness calculateDripstoneThickness(LevelReader p_154093_, BlockPos p_154094_, Direction p_154095_, boolean p_154096_) -
canDrip
-
canTipGrow
-
findRootBlock
private static Optional<BlockPos> findRootBlock(Level p_154067_, BlockPos p_154068_, BlockState p_154069_, int p_154070_) -
isValidPointedDripstonePlacement
private static boolean isValidPointedDripstonePlacement(LevelReader p_154222_, BlockPos p_154223_, Direction p_154224_) -
isTip
-
isUnmergedTipWithDirection
-
isStalactite
-
isStalagmite
-
isStalactiteStartPos
private static boolean isStalactiteStartPos(BlockState p_154204_, LevelReader p_154205_, BlockPos p_154206_) -
isPathfindable
public boolean isPathfindable(BlockState p_154112_, BlockGetter p_154113_, BlockPos p_154114_, PathComputationType p_154115_) - Overrides:
isPathfindable
in classBlockBehaviour
-
isPointedDripstoneWithDirection
-
findFillableCauldronBelowStalactiteTip
-
findStalactiteTipAboveCauldron
-
getCauldronFillFluidType
-
getFluidAboveStalactite
private static Optional<PointedDripstoneBlock.FluidInfo> getFluidAboveStalactite(Level p_154182_, BlockPos p_154183_, BlockState p_154184_) -
canFillCauldron
-
canGrow
-
getDripFluid
-
findBlockVertical
private static Optional<BlockPos> findBlockVertical(LevelAccessor p_202007_, BlockPos p_202008_, Direction.AxisDirection p_202009_, BiPredicate<BlockPos, BlockState> p_202010_, Predicate<BlockState> p_202011_, int p_202012_) -
canDripThrough
private static boolean canDripThrough(BlockGetter p_202018_, BlockPos p_202019_, BlockState p_202020_)
-