Package net.minecraft.block
Class StairsBlock
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Block>
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.StairsBlock
- All Implemented Interfaces:
IBucketPickupHandler,ILiquidContainer,IWaterLoggable,IItemProvider,IForgeBlock,IForgeRegistryEntry<Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.RenderSideCacheKeyNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.PropertiesNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Blockprivate final BlockStateprotected static final VoxelShapeprotected static final VoxelShape[]static final DirectionPropertystatic final EnumProperty<Half>protected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapestatic final EnumProperty<StairsShape>private static final int[]private final Supplier<BlockState>protected static final VoxelShapeprotected static final VoxelShape[]static final BooleanPropertyFields inherited from class net.minecraft.block.Block
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinitionFields inherited from class net.minecraft.block.AbstractBlock
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionStairsBlock(Supplier<BlockState> state, AbstractBlock.Properties properties) StairsBlock(BlockState p_i48321_1_, AbstractBlock.Properties p_i48321_2_) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidanimateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, Random p_180655_4_) voidattack(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) private static booleancanTakeShape(BlockState p_185704_0_, IBlockReader p_185704_1_, BlockPos p_185704_2_, Direction p_185704_3_) protected voidcreateBlockStateDefinition(StateContainer.Builder<Block, BlockState> p_206840_1_) voiddestroy(IWorld p_176206_1_, BlockPos p_176206_2_, BlockState p_176206_3_) floatgetFluidState(BlockState p_204507_1_) private Blockprivate BlockStategetShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) private intgetShapeIndex(BlockState p_196511_1_) private static StairsShapegetStairsShape(BlockState p_208064_0_, IBlockReader p_208064_1_, BlockPos p_208064_2_) getStateForPlacement(BlockItemUseContext p_196258_1_) booleanisPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_) booleanisRandomlyTicking(BlockState p_149653_1_) static booleanisStairs(BlockState p_185709_0_) private static VoxelShape[]makeShapes(VoxelShape p_199779_0_, VoxelShape p_199779_1_, VoxelShape p_199779_2_, VoxelShape p_199779_3_, VoxelShape p_199779_4_) private static VoxelShapemakeStairShape(int p_199781_0_, VoxelShape p_199781_1_, VoxelShape p_199781_2_, VoxelShape p_199781_3_, VoxelShape p_199781_4_, VoxelShape p_199781_5_) mirror(BlockState p_185471_1_, Mirror p_185471_2_) voidonPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) voidonRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) voidrandomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) rotate(BlockState p_185499_1_, Rotation p_185499_2_) voidvoidtick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_) use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) booleanuseShapeForLightOcclusion(BlockState p_220074_1_) voidwasExploded(World p_180652_1_, BlockPos p_180652_2_, Explosion p_180652_3_) Methods inherited from class net.minecraft.block.Block
appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroyMethods inherited from class net.minecraft.block.AbstractBlock
canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isSignalSource, neighborChanged, onProjectileHit, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapesMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlock
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlayMethods inherited from interface net.minecraft.block.IWaterLoggable
canPlaceLiquid, placeLiquid, takeLiquid
-
Field Details
-
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
-
-
Constructor Details
-
StairsBlock
Deprecated. -
StairsBlock
-
-
Method Details
-
makeShapes
private static VoxelShape[] makeShapes(VoxelShape p_199779_0_, VoxelShape p_199779_1_, VoxelShape p_199779_2_, VoxelShape p_199779_3_, VoxelShape p_199779_4_) -
makeStairShape
private static VoxelShape makeStairShape(int p_199781_0_, VoxelShape p_199781_1_, VoxelShape p_199781_2_, VoxelShape p_199781_3_, VoxelShape p_199781_4_, VoxelShape p_199781_5_) -
useShapeForLightOcclusion
- Overrides:
useShapeForLightOcclusionin classAbstractBlock
-
getShape
public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) - Overrides:
getShapein classAbstractBlock
-
getShapeIndex
-
animateTick
public void animateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, Random p_180655_4_) - Overrides:
animateTickin classBlock
-
attack
public void attack(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) - Overrides:
attackin classAbstractBlock
-
destroy
-
getExplosionResistance
public float getExplosionResistance()- Overrides:
getExplosionResistancein classBlock
-
onPlace
public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) - Overrides:
onPlacein classAbstractBlock
-
onRemove
public void onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) - Overrides:
onRemovein classAbstractBlock
-
stepOn
-
isRandomlyTicking
- Overrides:
isRandomlyTickingin classBlock
-
randomTick
public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) - Overrides:
randomTickin classAbstractBlock
-
tick
public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) - Overrides:
tickin classAbstractBlock
-
use
public ActionResultType use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) - Overrides:
usein classAbstractBlock
-
wasExploded
- Overrides:
wasExplodedin classBlock
-
getStateForPlacement
- Overrides:
getStateForPlacementin classBlock
-
updateShape
public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_) - Overrides:
updateShapein classAbstractBlock
-
getStairsShape
private static StairsShape getStairsShape(BlockState p_208064_0_, IBlockReader p_208064_1_, BlockPos p_208064_2_) -
canTakeShape
private static boolean canTakeShape(BlockState p_185704_0_, IBlockReader p_185704_1_, BlockPos p_185704_2_, Direction p_185704_3_) -
isStairs
-
rotate
- Overrides:
rotatein classAbstractBlock
-
mirror
- Overrides:
mirrorin classAbstractBlock
-
createBlockStateDefinition
- Overrides:
createBlockStateDefinitionin classBlock
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock
-
isPathfindable
public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_) - Overrides:
isPathfindablein classAbstractBlock
-
getModelBlock
-
getModelState
-