Package net.minecraft.world.level.block
Class PointedDripstoneBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Block>
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.PointedDripstoneBlock
- All Implemented Interfaces:
BucketPickup
,Fallable
,LiquidBlockContainer
,SimpleWaterloggedBlock
,ItemLike
,IForgeBlock
,IForgeRegistryEntry<Block>
-
Nested Class Summary
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.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static float
private static VoxelShape
private static int
private static float
private static float
private static VoxelShape
private static float
private static float
private static int
private static float
private static int
private static int
private static int
private static int
private static int
private static VoxelShape
private static double
private static float
private static float
private static int
private static int
private static float
static EnumProperty<DripstoneThickness>
static DirectionProperty
private static VoxelShape
private static VoxelShape
private static VoxelShape
private static float
static BooleanProperty
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, LOGGER, RANDOM, 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, UPDATE_SUPPRESS_LIGHT
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
animateTick(BlockState p_154122_, Level p_154123_, BlockPos p_154124_, Random p_154125_)
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
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_)
protected void
createBlockStateDefinition(StateDefinition.Builder<Block,BlockState> p_154157_)
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_154081_, BlockPos p_154082_, Direction.AxisDirection p_154083_, Predicate<BlockState> p_154084_, Predicate<BlockState> p_154085_, int p_154086_)
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(Level p_154179_, BlockPos p_154180_)
private static Fluid
getDripFluid(Level p_154053_, Fluid p_154054_)
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_)
getPistonPushReaction(BlockState p_154237_)
getShape(BlockState p_154117_, BlockGetter p_154118_, BlockPos p_154119_, CollisionContext p_154120_)
private static int
getStalactiteSizeFromTip(ServerLevel p_154175_, BlockPos p_154176_, int p_154177_)
getStateForPlacement(BlockPlaceContext p_154040_)
private static void
grow(ServerLevel p_154036_, BlockPos p_154037_, Direction p_154038_)
static void
growStalactiteOrStalagmiteIfPossible(BlockState p_154226_, ServerLevel p_154227_, BlockPos p_154228_, Random p_154229_)
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
maybeFillCauldron(BlockState p_154102_, ServerLevel p_154103_, BlockPos p_154104_, float p_154105_)
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_154199_, ServerLevel p_154200_, BlockPos p_154201_, Random p_154202_)
private void
scheduleStalactiteFallTicks(BlockState p_154127_, LevelAccessor p_154128_, BlockPos p_154129_)
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_154107_, ServerLevel p_154108_, BlockPos p_154109_, Random p_154110_)
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, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getTags, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxVerticalOffset, getMenuProvider, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isSignalSource, mirror, neighborChanged, onPlace, onRemove, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusion
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getPickBlock, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onNeighborChange, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
Methods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
Field Details
-
TIP_DIRECTION
-
THICKNESS
-
WATERLOGGED
-
MAX_SEARCH_LENGTH_WHEN_CHECKING_DRIP_TYPE
private static final int MAX_SEARCH_LENGTH_WHEN_CHECKING_DRIP_TYPE- See Also:
- Constant Field Values
-
MAX_SEARCH_LENGTH_WHEN_LOOKING_FOR_TIP_OF_FALLING_STALACTITE
private static final int MAX_SEARCH_LENGTH_WHEN_LOOKING_FOR_TIP_OF_FALLING_STALACTITE- See Also:
- Constant Field Values
-
DELAY_BEFORE_FALLING
private static final int DELAY_BEFORE_FALLING- See Also:
- Constant Field Values
-
DRIP_PROBABILITY_PER_ANIMATE_TICK
private static final float DRIP_PROBABILITY_PER_ANIMATE_TICK- See Also:
- Constant Field Values
-
DRIP_PROBABILITY_PER_ANIMATE_TICK_IF_UNDER_LIQUID_SOURCE
private static final float DRIP_PROBABILITY_PER_ANIMATE_TICK_IF_UNDER_LIQUID_SOURCE- See Also:
- Constant Field Values
-
MAX_SEARCH_LENGTH_BETWEEN_STALACTITE_TIP_AND_CAULDRON
private static final int MAX_SEARCH_LENGTH_BETWEEN_STALACTITE_TIP_AND_CAULDRON- See Also:
- Constant Field Values
-
WATER_CAULDRON_FILL_PROBABILITY_PER_RANDOM_TICK
private static final float WATER_CAULDRON_FILL_PROBABILITY_PER_RANDOM_TICK- See Also:
- Constant Field Values
-
LAVA_CAULDRON_FILL_PROBABILITY_PER_RANDOM_TICK
private static final float LAVA_CAULDRON_FILL_PROBABILITY_PER_RANDOM_TICK- See Also:
- Constant Field Values
-
MIN_TRIDENT_VELOCITY_TO_BREAK_DRIPSTONE
private static final double MIN_TRIDENT_VELOCITY_TO_BREAK_DRIPSTONE- See Also:
- Constant Field Values
-
STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE
private static final float STALACTITE_DAMAGE_PER_FALL_DISTANCE_AND_SIZE- See Also:
- Constant Field Values
-
STALACTITE_MAX_DAMAGE
private static final int STALACTITE_MAX_DAMAGE- See Also:
- Constant Field Values
-
MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION
private static final int MAX_STALACTITE_HEIGHT_FOR_DAMAGE_CALCULATION- See Also:
- Constant Field Values
-
STALAGMITE_FALL_DISTANCE_OFFSET
private static final float STALAGMITE_FALL_DISTANCE_OFFSET- See Also:
- Constant Field Values
-
STALAGMITE_FALL_DAMAGE_MODIFIER
private static final int STALAGMITE_FALL_DAMAGE_MODIFIER- See Also:
- Constant Field Values
-
AVERAGE_DAYS_PER_GROWTH
private static final float AVERAGE_DAYS_PER_GROWTH- See Also:
- Constant Field Values
-
GROWTH_PROBABILITY_PER_RANDOM_TICK
private static final float GROWTH_PROBABILITY_PER_RANDOM_TICK- See Also:
- Constant Field Values
-
MAX_GROWTH_LENGTH
private static final int MAX_GROWTH_LENGTH- See Also:
- Constant Field Values
-
MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING
private static final int MAX_STALAGMITE_SEARCH_RANGE_WHEN_GROWING- See Also:
- Constant Field Values
-
STALACTITE_DRIP_START_PIXEL
private static final float STALACTITE_DRIP_START_PIXEL- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Constructor Details
-
PointedDripstoneBlock
-
-
Method Details
-
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_154122_, Level p_154123_, BlockPos p_154124_, Random p_154125_)- Overrides:
animateTick
in classBlock
-
tick
public void tick(BlockState p_154107_, ServerLevel p_154108_, BlockPos p_154109_, Random p_154110_)- Overrides:
tick
in classBlockBehaviour
-
randomTick
public void randomTick(BlockState p_154199_, ServerLevel p_154200_, BlockPos p_154201_, Random p_154202_)- Overrides:
randomTick
in classBlockBehaviour
-
maybeFillCauldron
public static void maybeFillCauldron(BlockState p_154102_, ServerLevel p_154103_, BlockPos p_154104_, float p_154105_) -
getPistonPushReaction
- Overrides:
getPistonPushReaction
in classBlockBehaviour
-
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
-
getOffsetType
- Overrides:
getOffsetType
in classBlockBehaviour
-
getMaxHorizontalOffset
public float getMaxHorizontalOffset()- Overrides:
getMaxHorizontalOffset
in classBlockBehaviour
-
onBrokenAfterFall
- Specified by:
onBrokenAfterFall
in interfaceFallable
-
getFallDamageSource
- Specified by:
getFallDamageSource
in interfaceFallable
-
getHurtsEntitySelector
- Specified by:
getHurtsEntitySelector
in interfaceFallable
-
scheduleStalactiteFallTicks
private void scheduleStalactiteFallTicks(BlockState p_154127_, LevelAccessor p_154128_, BlockPos p_154129_) -
getStalactiteSizeFromTip
private static int getStalactiteSizeFromTip(ServerLevel p_154175_, BlockPos p_154176_, int p_154177_) -
spawnFallingStalactite
private static void spawnFallingStalactite(BlockState p_154098_, ServerLevel p_154099_, BlockPos p_154100_) -
growStalactiteOrStalagmiteIfPossible
public static void growStalactiteOrStalagmiteIfPossible(BlockState p_154226_, ServerLevel p_154227_, BlockPos p_154228_, Random p_154229_) -
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<Fluid> getFluidAboveStalactite(Level p_154182_, BlockPos p_154183_, BlockState p_154184_) -
canFillCauldron
-
canGrow
-
getDripFluid
-
findBlockVertical
private static Optional<BlockPos> findBlockVertical(LevelAccessor p_154081_, BlockPos p_154082_, Direction.AxisDirection p_154083_, Predicate<BlockState> p_154084_, Predicate<BlockState> p_154085_, int p_154086_)
-