类 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
- 所有已实现的接口:
FeatureElement
,BucketPickup
,EntityBlock
,LiquidBlockContainer
,SimpleWaterloggedBlock
,ItemLike
,IForgeBlock
,IForgeBucketPickup
- 直接已知子类:
CalibratedSculkSensorBlock
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.ShapePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明static final int
static final com.mojang.serialization.MapCodec
<SculkSensorBlock> static final int
static final EnumProperty
<SculkSensorPhase> static final IntegerProperty
private static final float[]
protected static final VoxelShape
static final BooleanProperty
从类继承的字段 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_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
activate
(Entity p_277529_, Level p_277340_, BlockPos p_277386_, BlockState p_277799_, int p_277993_, int p_278003_) void
animateTick
(BlockState p_222148_, Level p_222149_, BlockPos p_222150_, RandomSource p_222151_) static boolean
canActivate
(BlockState p_154490_) com.mojang.serialization.MapCodec
<? extends SculkSensorBlock> codec()
protected void
static void
deactivate
(Level p_154408_, BlockPos p_154409_, BlockState p_154410_) int
protected int
getAnalogOutputSignal
(BlockState p_154442_, Level p_154443_, BlockPos p_154444_) int
getDirectSignal
(BlockState p_279407_, BlockGetter p_279217_, BlockPos p_279190_, Direction p_279273_) int
getExpDrop
(BlockState state, LevelReader level, RandomSource randomSource, BlockPos pos, int fortuneLevel, int silkTouchLevel) Gathers how much experience this block drops when broken.protected FluidState
getFluidState
(BlockState p_154479_) static SculkSensorPhase
getPhase
(BlockState p_154488_) protected VoxelShape
getShape
(BlockState p_154432_, BlockGetter p_154433_, BlockPos p_154434_, CollisionContext p_154435_) protected int
getSignal
(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_) protected boolean
hasAnalogOutputSignal
(BlockState p_154481_) protected boolean
isPathfindable
(BlockState p_154427_, PathComputationType p_154430_) protected boolean
isSignalSource
(BlockState p_154484_) newBlockEntity
(BlockPos p_154466_, BlockState p_154467_) protected void
onPlace
(BlockState p_154471_, Level p_154472_, BlockPos p_154473_, BlockState p_154474_, boolean p_154475_) protected void
onRemove
(BlockState p_154446_, Level p_154447_, BlockPos p_154448_, BlockState p_154449_, boolean p_154450_) protected void
spawnAfterBreak
(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) void
stepOn
(Level p_222132_, BlockPos p_222133_, BlockState p_222134_, Entity p_222135_) protected void
tick
(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) static void
tryResonateVibration
(Entity p_279315_, Level p_277804_, BlockPos p_277458_, int p_277347_) private static void
updateNeighbours
(Level p_278067_, BlockPos p_277440_, BlockState p_277354_) protected BlockState
updateShape
(BlockState p_154457_, LevelReader p_368197_, ScheduledTickAccess p_370168_, BlockPos p_154461_, Direction p_154458_, BlockPos p_154462_, BlockState p_154459_, RandomSource p_369381_) protected boolean
useShapeForLightOcclusion
(BlockState p_154486_) 从类继承的方法 net.minecraft.world.level.block.BaseEntityBlock
createTickerHelper, getMenuProvider, triggerEvent
从类继承的方法 net.minecraft.world.level.block.Block
appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDrops, getEntityInsideCollisionShape, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isRandomlyTicking, mirror, neighborChanged, onExplosionHit, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, updateIndirectNeighbourShapes, useItemOn, useWithoutItem
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.block.EntityBlock
getListener
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlock
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getEnchantPowerBonus, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, 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
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSound
从接口继承的方法 net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
字段详细资料
-
CODEC
-
ACTIVE_TICKS
public static final int ACTIVE_TICKS- 另请参阅:
-
COOLDOWN_TICKS
public static final int COOLDOWN_TICKS- 另请参阅:
-
PHASE
-
POWER
-
WATERLOGGED
-
SHAPE
-
RESONANCE_PITCH_BEND
private static final float[] RESONANCE_PITCH_BEND
-
-
构造器详细资料
-
SculkSensorBlock
-
-
方法详细资料
-
codec
- 指定者:
codec
在类中BaseEntityBlock
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
getFluidState
- 覆盖:
getFluidState
在类中BlockBehaviour
-
tick
protected void tick(BlockState p_222137_, ServerLevel p_222138_, BlockPos p_222139_, RandomSource p_222140_) - 覆盖:
tick
在类中BlockBehaviour
-
stepOn
-
onPlace
protected void onPlace(BlockState p_154471_, Level p_154472_, BlockPos p_154473_, BlockState p_154474_, boolean p_154475_) - 覆盖:
onPlace
在类中BlockBehaviour
-
onRemove
protected void onRemove(BlockState p_154446_, Level p_154447_, BlockPos p_154448_, BlockState p_154449_, boolean p_154450_) - 覆盖:
onRemove
在类中BlockBehaviour
-
updateShape
protected BlockState updateShape(BlockState p_154457_, LevelReader p_368197_, ScheduledTickAccess p_370168_, BlockPos p_154461_, Direction p_154458_, BlockPos p_154462_, BlockState p_154459_, RandomSource p_369381_) - 覆盖:
updateShape
在类中BlockBehaviour
-
updateNeighbours
-
newBlockEntity
- 指定者:
newBlockEntity
在接口中EntityBlock
-
getTicker
@Nullable public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level p_154401_, BlockState p_154402_, BlockEntityType<T> p_154403_) - 指定者:
getTicker
在接口中EntityBlock
-
getShape
protected VoxelShape getShape(BlockState p_154432_, BlockGetter p_154433_, BlockPos p_154434_, CollisionContext p_154435_) - 覆盖:
getShape
在类中BlockBehaviour
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
getSignal
protected int getSignal(BlockState p_154437_, BlockGetter p_154438_, BlockPos p_154439_, Direction p_154440_) - 覆盖:
getSignal
在类中BlockBehaviour
-
getDirectSignal
public int getDirectSignal(BlockState p_279407_, BlockGetter p_279217_, BlockPos p_279190_, Direction p_279273_) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
getPhase
-
canActivate
-
deactivate
-
getActiveTicks
public int getActiveTicks() -
activate
public void activate(@Nullable Entity p_277529_, Level p_277340_, BlockPos p_277386_, BlockState p_277799_, int p_277993_, int p_278003_) -
tryResonateVibration
-
animateTick
public void animateTick(BlockState p_222148_, Level p_222149_, BlockPos p_222150_, RandomSource p_222151_) - 覆盖:
animateTick
在类中Block
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
hasAnalogOutputSignal
- 覆盖:
hasAnalogOutputSignal
在类中BlockBehaviour
-
getAnalogOutputSignal
- 覆盖:
getAnalogOutputSignal
在类中BlockBehaviour
-
isPathfindable
- 覆盖:
isPathfindable
在类中BlockBehaviour
-
useShapeForLightOcclusion
-
spawnAfterBreak
protected void spawnAfterBreak(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) - 覆盖:
spawnAfterBreak
在类中BlockBehaviour
-
getExpDrop
public int getExpDrop(BlockState state, LevelReader level, RandomSource randomSource, BlockPos pos, int fortuneLevel, int silkTouchLevel) 从接口复制的说明:IForgeBlock
Gathers how much experience this block drops when broken.- 指定者:
getExpDrop
在接口中IForgeBlock
- 参数:
state
- The current statelevel
- The levelrandomSource
- Random source to use for experience randomnesspos
- Block positionfortuneLevel
- fortune enchantment level of tool being usedsilkTouchLevel
- silk touch enchantment level of tool being used- 返回:
- Amount of XP from breaking this block.
-