类 StairBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.StairBlock
- 所有已实现的接口:
FeatureElement
,BucketPickup
,LiquidBlockContainer
,SimpleWaterloggedBlock
,ItemLike
,IForgeBlock
,IForgeBucketPickup
- 直接已知子类:
WeatheringCopperStairBlock
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.Block
Block.BlockStatePairKey
从类继承的嵌套类/接口 net.minecraft.world.level.block.state.BlockBehaviour
BlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
-
字段概要
字段修饰符和类型字段说明private final Block
private final BlockState
protected static final VoxelShape
protected static final VoxelShape[]
static final DirectionProperty
static final EnumProperty<Half>
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
protected static final VoxelShape
static final EnumProperty<StairsShape>
private static final int[]
private final Supplier<BlockState>
protected static final VoxelShape
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_SUPPRESS_DROPS
从类继承的字段 net.minecraft.world.level.block.state.BlockBehaviour
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDER
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器构造器说明StairBlock
(Supplier<BlockState> state, BlockBehaviour.Properties properties) StairBlock
(BlockState pBaseState, BlockBehaviour.Properties pProperties) 已过时。 -
方法概要
修饰符和类型方法说明void
animateTick
(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom) void
attack
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer) private static boolean
canTakeShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pFace) protected void
void
destroy
(LevelAccessor pLevel, BlockPos pPos, BlockState pState) float
getFluidState
(BlockState pState) private Block
private BlockState
getShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) private int
getShapeIndex
(BlockState pState) private static StairsShape
getStairsShape
(BlockState pState, BlockGetter pLevel, BlockPos pPos) getStateForPlacement
(BlockPlaceContext pContext) boolean
isPathfindable
(BlockState pState, BlockGetter pLevel, BlockPos pPos, PathComputationType pType) boolean
isRandomlyTicking
(BlockState pState) static boolean
isStairs
(BlockState pState) private static VoxelShape[]
makeShapes
(VoxelShape pSlabShape, VoxelShape pNwCorner, VoxelShape pNeCorner, VoxelShape pSwCorner, VoxelShape pSeCorner) private static VoxelShape
makeStairShape
(int pBitfield, VoxelShape pSlabShape, VoxelShape pNwCorner, VoxelShape pNeCorner, VoxelShape pSwCorner, VoxelShape pSeCorner) mirror
(BlockState pState, Mirror pMirror) void
onPlace
(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) void
onRemove
(BlockState pState, Level pLevel, BlockPos pPos, BlockState pNewState, boolean pIsMoving) void
randomTick
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) rotate
(BlockState pState, Rotation pRot) void
stepOn
(Level pLevel, BlockPos pPos, BlockState pState, Entity pEntity) void
tick
(BlockState pState, ServerLevel pLevel, BlockPos pPos, RandomSource pRandom) updateShape
(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) use
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) boolean
useShapeForLightOcclusion
(BlockState pState) void
wasExploded
(Level pLevel, BlockPos pPos, Explosion pExplosion) 从类继承的方法 net.minecraft.world.level.block.Block
appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, withPropertiesOf
从类继承的方法 net.minecraft.world.level.block.state.BlockBehaviour
canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isSignalSource, neighborChanged, onProjectileHit, requiredFeatures, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 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, 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
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBucketPickup
getPickupSound
从接口继承的方法 net.minecraft.world.level.block.SimpleWaterloggedBlock
canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
-
字段详细资料
-
FACING
-
HALF
-
SHAPE
-
WATERLOGGED
-
TOP_AABB
-
BOTTOM_AABB
-
OCTET_NNN
-
OCTET_NNP
-
OCTET_NPN
-
OCTET_NPP
-
OCTET_PNN
-
OCTET_PNP
-
OCTET_PPN
-
OCTET_PPP
-
TOP_SHAPES
-
BOTTOM_SHAPES
-
SHAPE_BY_STATE
private static final int[] SHAPE_BY_STATE -
base
-
baseState
-
stateSupplier
-
-
构造器详细资料
-
StairBlock
已过时。 -
StairBlock
-
-
方法详细资料
-
makeShapes
private static VoxelShape[] makeShapes(VoxelShape pSlabShape, VoxelShape pNwCorner, VoxelShape pNeCorner, VoxelShape pSwCorner, VoxelShape pSeCorner) -
makeStairShape
private static VoxelShape makeStairShape(int pBitfield, VoxelShape pSlabShape, VoxelShape pNwCorner, VoxelShape pNeCorner, VoxelShape pSwCorner, VoxelShape pSeCorner) -
useShapeForLightOcclusion
-
getShape
public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) - 覆盖:
getShape
在类中BlockBehaviour
-
getShapeIndex
-
animateTick
- 覆盖:
animateTick
在类中Block
-
attack
- 覆盖:
attack
在类中BlockBehaviour
-
destroy
-
getExplosionResistance
public float getExplosionResistance()- 覆盖:
getExplosionResistance
在类中Block
-
onPlace
public void onPlace(BlockState pState, Level pLevel, BlockPos pPos, BlockState pOldState, boolean pIsMoving) - 覆盖:
onPlace
在类中BlockBehaviour
-
onRemove
public void onRemove(BlockState pState, Level pLevel, BlockPos pPos, BlockState pNewState, boolean pIsMoving) - 覆盖:
onRemove
在类中BlockBehaviour
-
stepOn
-
isRandomlyTicking
- 覆盖:
isRandomlyTicking
在类中Block
-
randomTick
- 覆盖:
randomTick
在类中BlockBehaviour
-
tick
- 覆盖:
tick
在类中BlockBehaviour
-
use
public InteractionResult use(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) - 覆盖:
use
在类中BlockBehaviour
-
wasExploded
- 覆盖:
wasExploded
在类中Block
-
getStateForPlacement
- 覆盖:
getStateForPlacement
在类中Block
-
updateShape
public BlockState updateShape(BlockState pState, Direction pFacing, BlockState pFacingState, LevelAccessor pLevel, BlockPos pCurrentPos, BlockPos pFacingPos) - 覆盖:
updateShape
在类中BlockBehaviour
-
getStairsShape
-
canTakeShape
private static boolean canTakeShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, Direction pFace) -
isStairs
-
rotate
- 覆盖:
rotate
在类中BlockBehaviour
-
mirror
- 覆盖:
mirror
在类中BlockBehaviour
-
createBlockStateDefinition
- 覆盖:
createBlockStateDefinition
在类中Block
-
getFluidState
- 覆盖:
getFluidState
在类中BlockBehaviour
-
isPathfindable
public boolean isPathfindable(BlockState pState, BlockGetter pLevel, BlockPos pPos, PathComputationType pType) - 覆盖:
isPathfindable
在类中BlockBehaviour
-
getModelBlock
-
getModelState
-