Package net.minecraft.world.level.block
Class SculkSensorBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BaseEntityBlock
net.minecraft.world.level.block.SculkSensorBlock
- All Implemented Interfaces:
- FeatureElement,- BucketPickup,- EntityBlock,- LiquidBlockContainer,- SimpleWaterloggedBlock,- ItemLike,- IBlockExtension,- IBucketPickupExtension
- Direct Known Subclasses:
- CalibratedSculkSensorBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final com.mojang.serialization.MapCodec<SculkSensorBlock>static final intstatic final EnumProperty<SculkSensorPhase>static final IntegerPropertyprivate static final float[]protected static final VoxelShapestatic final BooleanPropertyFields inherited from class net.minecraft.world.level.block.BlockBLOCK_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_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivate(Entity p_277529_, Level p_277340_, BlockPos p_277386_, BlockState p_277799_, int p_277993_, int p_278003_) voidanimateTick(BlockState p_222148_, Level p_222149_, BlockPos p_222150_, RandomSource p_222151_) static booleancanActivate(BlockState p_154490_) com.mojang.serialization.MapCodec<? extends SculkSensorBlock>codec()protected voidstatic voiddeactivate(Level p_154408_, BlockPos p_154409_, BlockState p_154410_) intintgetAnalogOutputSignal(BlockState p_154442_, Level p_154443_, BlockPos p_154444_) intgetDirectSignal(BlockState p_279407_, BlockGetter p_279217_, BlockPos p_279190_, Direction p_279273_) intgetExpDrop(BlockState state, LevelReader level, RandomSource randomSource, BlockPos pos, int fortuneLevel, int silkTouchLevel) Gathers how much experience this block drops when broken.getFluidState(BlockState p_154479_) static SculkSensorPhasegetPhase(BlockState p_154488_) getRenderShape(BlockState p_154477_) getShape(BlockState p_154432_, BlockGetter p_154433_, BlockPos p_154434_, CollisionContext p_154435_) intgetSignal(BlockState p_154437_, BlockGetter p_154438_, BlockPos p_154439_, Direction p_154440_) getStateForPlacement(BlockPlaceContext p_154396_) <T extends BlockEntity>
 BlockEntityTicker<T>getTicker(Level p_154401_, BlockState p_154402_, BlockEntityType<T> p_154403_) booleanhasAnalogOutputSignal(BlockState p_154481_) booleanisPathfindable(BlockState p_154427_, BlockGetter p_154428_, BlockPos p_154429_, PathComputationType p_154430_) booleanisSignalSource(BlockState p_154484_) newBlockEntity(BlockPos p_154466_, BlockState p_154467_) voidonPlace(BlockState p_154471_, Level p_154472_, BlockPos p_154473_, BlockState p_154474_, boolean p_154475_) voidonRemove(BlockState p_154446_, Level p_154447_, BlockPos p_154448_, BlockState p_154449_, boolean p_154450_) voidspawnAfterBreak(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) voidstepOn(Level p_222132_, BlockPos p_222133_, BlockState p_222134_, Entity p_222135_) voidtick(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) static voidtryResonateVibration(Entity p_279315_, Level p_277804_, BlockPos p_277458_, int p_277347_) private static voidupdateNeighbours(Level p_278067_, BlockPos p_277440_, BlockState p_277354_) updateShape(BlockState p_154457_, Direction p_154458_, BlockState p_154459_, LevelAccessor p_154460_, BlockPos p_154461_, BlockPos p_154462_) booleanuseShapeForLightOcclusion(BlockState p_154486_) Methods inherited from class net.minecraft.world.level.block.BaseEntityBlockcreateTickerHelper, getMenuProvider, triggerEventMethods inherited from class net.minecraft.world.level.block.BlockappendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, 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, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getSeed, getShadeBrightness, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, mirror, neighborChanged, onExplosionHit, onProjectileHit, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, updateIndirectNeighbourShapes, useMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.block.EntityBlockgetListenerMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockExtensionaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHidingMethods inherited from interface net.neoforged.neoforge.common.extensions.IBucketPickupExtensiongetPickupSoundMethods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlockcanPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
- 
Field Details- 
CODEC
- 
ACTIVE_TICKSpublic static final int ACTIVE_TICKS- See Also:
 
- 
COOLDOWN_TICKSpublic static final int COOLDOWN_TICKS- See Also:
 
- 
PHASE
- 
POWER
- 
WATERLOGGED
- 
SHAPE
- 
RESONANCE_PITCH_BENDprivate static final float[] RESONANCE_PITCH_BEND
 
- 
- 
Constructor Details- 
SculkSensorBlock
 
- 
- 
Method Details- 
codec- Specified by:
- codecin class- BaseEntityBlock
 
- 
getStateForPlacement- Overrides:
- getStateForPlacementin class- Block
 
- 
getFluidState- Overrides:
- getFluidStatein class- BlockBehaviour
 
- 
tickpublic void tick(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) - Overrides:
- tickin class- BlockBehaviour
 
- 
stepOn
- 
onPlacepublic void onPlace(BlockState p_154471_, Level p_154472_, BlockPos p_154473_, BlockState p_154474_, boolean p_154475_) - Overrides:
- onPlacein class- BlockBehaviour
 
- 
onRemovepublic void onRemove(BlockState p_154446_, Level p_154447_, BlockPos p_154448_, BlockState p_154449_, boolean p_154450_) - Overrides:
- onRemovein class- BlockBehaviour
 
- 
updateShapepublic BlockState updateShape(BlockState p_154457_, Direction p_154458_, BlockState p_154459_, LevelAccessor p_154460_, BlockPos p_154461_, BlockPos p_154462_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
updateNeighbours
- 
newBlockEntity- Specified by:
- newBlockEntityin interface- EntityBlock
 
- 
getTicker@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_154401_, BlockState p_154402_, BlockEntityType<T> p_154403_) - Specified by:
- getTickerin interface- EntityBlock
 
- 
getRenderShape- Overrides:
- getRenderShapein class- BaseEntityBlock
 
- 
getShapepublic VoxelShape getShape(BlockState p_154432_, BlockGetter p_154433_, BlockPos p_154434_, CollisionContext p_154435_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
isSignalSource- Overrides:
- isSignalSourcein class- BlockBehaviour
 
- 
getSignalpublic int getSignal(BlockState p_154437_, BlockGetter p_154438_, BlockPos p_154439_, Direction p_154440_) - Overrides:
- getSignalin class- BlockBehaviour
 
- 
getDirectSignalpublic int getDirectSignal(BlockState p_279407_, BlockGetter p_279217_, BlockPos p_279190_, Direction p_279273_) - Overrides:
- getDirectSignalin class- BlockBehaviour
 
- 
getPhase
- 
canActivate
- 
deactivate
- 
getActiveTickspublic int getActiveTicks()
- 
activatepublic void activate(@Nullable Entity p_277529_, Level p_277340_, BlockPos p_277386_, BlockState p_277799_, int p_277993_, int p_278003_) 
- 
tryResonateVibration
- 
animateTickpublic void animateTick(BlockState p_222148_, Level p_222149_, BlockPos p_222150_, RandomSource p_222151_) - Overrides:
- animateTickin class- Block
 
- 
createBlockStateDefinition- Overrides:
- createBlockStateDefinitionin class- Block
 
- 
hasAnalogOutputSignal- Overrides:
- hasAnalogOutputSignalin class- BlockBehaviour
 
- 
getAnalogOutputSignal- Overrides:
- getAnalogOutputSignalin class- BlockBehaviour
 
- 
isPathfindablepublic boolean isPathfindable(BlockState p_154427_, BlockGetter p_154428_, BlockPos p_154429_, PathComputationType p_154430_) - Overrides:
- isPathfindablein class- BlockBehaviour
 
- 
useShapeForLightOcclusion- Overrides:
- useShapeForLightOcclusionin class- BlockBehaviour
 
- 
spawnAfterBreakpublic void spawnAfterBreak(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) - Overrides:
- spawnAfterBreakin class- BlockBehaviour
 
- 
getExpDroppublic int getExpDrop(BlockState state, LevelReader level, RandomSource randomSource, BlockPos pos, int fortuneLevel, int silkTouchLevel) Description copied from interface:IBlockExtensionGathers how much experience this block drops when broken.- Specified by:
- getExpDropin interface- IBlockExtension
- Parameters:
- state- The current state
- level- The level
- randomSource- Random source to use for experience randomness
- pos- Block position
- fortuneLevel- fortune enchantment level of tool being used
- silkTouchLevel- silk touch enchantment level of tool being used
- Returns:
- Amount of XP from breaking this block.
 
 
-