类 BasePressurePlateBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.BasePressurePlateBlock
- 所有已实现的接口:
FeatureElement
,ItemLike
,IBlockExtension
-
嵌套类概要
从类继承的嵌套类/接口 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
-
字段概要
字段修饰符和类型字段说明private static final VoxelShape
private static final VoxelShape
protected static final AABB
protected final BlockSetType
从类继承的字段 net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, CODEC, 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_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
affectNeighborsAfterRemoval
(BlockState p_394236_, ServerLevel p_394295_, BlockPos p_393547_, boolean p_394138_) protected boolean
canSurvive
(BlockState p_49325_, LevelReader p_49326_, BlockPos p_49327_) private void
checkPressed
(Entity p_152144_, Level p_152145_, BlockPos p_152146_, BlockState p_152147_, int p_152148_) protected abstract com.mojang.serialization.MapCodec
<? extends BasePressurePlateBlock> codec()
protected void
entityInside
(BlockState p_49314_, Level p_49315_, BlockPos p_49316_, Entity p_49317_, InsideBlockEffectApplier p_405011_) protected int
getDirectSignal
(BlockState p_49346_, BlockGetter p_49347_, BlockPos p_49348_, Direction p_49349_) protected static int
getEntityCount
(Level p_289656_, AABB p_289647_, Class<? extends Entity> p_289686_) protected int
protected VoxelShape
getShape
(BlockState p_49341_, BlockGetter p_49342_, BlockPos p_49343_, CollisionContext p_49344_) protected int
getSignal
(BlockState p_49309_, BlockGetter p_49310_, BlockPos p_49311_, Direction p_49312_) protected abstract int
getSignalForState
(BlockState p_49354_) protected abstract int
getSignalStrength
(Level p_49336_, BlockPos p_49337_) boolean
isPossibleToRespawnInThis
(BlockState p_279155_) protected boolean
isSignalSource
(BlockState p_49351_) protected abstract BlockState
setSignalForState
(BlockState p_49301_, int p_49302_) protected void
tick
(BlockState p_220768_, ServerLevel p_220769_, BlockPos p_220770_, RandomSource p_220771_) protected void
updateNeighbours
(Level p_49292_, BlockPos p_49293_) protected BlockState
updateShape
(BlockState p_49329_, LevelReader p_374394_, ScheduledTickAccess p_374263_, BlockPos p_49333_, Direction p_49330_, BlockPos p_49334_, BlockState p_49331_, RandomSource p_374547_) 从类继承的方法 net.minecraft.world.level.block.Block
animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, column, column, createBlockStateDefinition, cube, cube, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
attack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, getAnalogOutputSignal, getBlockSupportShape, getCloneItemStack, getCollisionShape, getDescriptionId, getDestroyProgress, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, simpleCodec, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItem
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockExtension
addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, playFallSound, playStepSound, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
-
字段详细资料
-
SHAPE_PRESSED
-
SHAPE
-
TOUCH_AABB
-
type
-
-
构造器详细资料
-
BasePressurePlateBlock
-
-
方法详细资料
-
codec
-
getShape
protected VoxelShape getShape(BlockState p_49341_, BlockGetter p_49342_, BlockPos p_49343_, CollisionContext p_49344_) - 覆盖:
getShape
在类中BlockBehaviour
-
getPressedTime
protected int getPressedTime() -
isPossibleToRespawnInThis
- 覆盖:
isPossibleToRespawnInThis
在类中Block
-
updateShape
protected BlockState updateShape(BlockState p_49329_, LevelReader p_374394_, ScheduledTickAccess p_374263_, BlockPos p_49333_, Direction p_49330_, BlockPos p_49334_, BlockState p_49331_, RandomSource p_374547_) - 覆盖:
updateShape
在类中BlockBehaviour
-
canSurvive
- 覆盖:
canSurvive
在类中BlockBehaviour
-
tick
protected void tick(BlockState p_220768_, ServerLevel p_220769_, BlockPos p_220770_, RandomSource p_220771_) - 覆盖:
tick
在类中BlockBehaviour
-
entityInside
protected void entityInside(BlockState p_49314_, Level p_49315_, BlockPos p_49316_, Entity p_49317_, InsideBlockEffectApplier p_405011_) - 覆盖:
entityInside
在类中BlockBehaviour
-
checkPressed
private void checkPressed(@Nullable Entity p_152144_, Level p_152145_, BlockPos p_152146_, BlockState p_152147_, int p_152148_) -
affectNeighborsAfterRemoval
protected void affectNeighborsAfterRemoval(BlockState p_394236_, ServerLevel p_394295_, BlockPos p_393547_, boolean p_394138_) -
updateNeighbours
-
getSignal
protected int getSignal(BlockState p_49309_, BlockGetter p_49310_, BlockPos p_49311_, Direction p_49312_) - 覆盖:
getSignal
在类中BlockBehaviour
-
getDirectSignal
protected int getDirectSignal(BlockState p_49346_, BlockGetter p_49347_, BlockPos p_49348_, Direction p_49349_) - 覆盖:
getDirectSignal
在类中BlockBehaviour
-
isSignalSource
- 覆盖:
isSignalSource
在类中BlockBehaviour
-
getEntityCount
-
getSignalStrength
-
getSignalForState
-
setSignalForState
-