Package net.minecraft.block
Class StairsBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.StairsBlock
- Mappings:
Namespace Name official audintermediary net/minecraft/class_188named net/minecraft/block/StairsBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Blockstatic final DirectionPropertyprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxstatic final EnumProperty<StairsBlock.Half>static final EnumProperty<StairsBlock.Shape>private final BlockStateFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, Entity entity, boolean isActualState) protected StateManagerReturns a new state manager with a property array.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosbooleancanCollide(BlockState state, boolean bl) Returns whether entities can collide with the blockfloatgetBlastResistance(Entity entity) Returns the block's blast resistance as per the entity provided.getBlockState(BlockState state, BlockView view, BlockPos pos) Returns the current block's blockstate at a certain positionintgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetMaterialColor(BlockState state, BlockView view, BlockPos pos) Returns the appropriate RenderLayer for a block.getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idintgetTickRate(World world) Returns the block's tick rate.booleanReturns whether a block has collision, i.e.booleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) method_11563(BlockState blockState, World world, BlockPos blockPos) intmethod_11564(BlockState state, BlockView view, BlockPos pos) booleanmethod_11568(BlockState state) private static StairsBlock.Shapemethod_11631(BlockState blockState, BlockView blockView, BlockPos blockPos) private static booleanmethod_11632(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) static booleanmethod_11633(BlockState blockState) method_11634(BlockState blockState) private static Boxmethod_11635(BlockState blockState) private static Boxmethod_11636(BlockState blockState) method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) method_414(BlockState blockState, World world, BlockPos blockPos, Vec3d vec3d, Vec3d vec3d2) voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) voidonBlockBreakStart(World world, BlockPos pos, PlayerEntity player) voidonBreakByPlayer(World world, BlockPos pos, BlockState state) Runs when the block is broken by the playervoidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).voidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).voidonDestroyedByExplosion(World world, BlockPos pos, Explosion explosion) onEntityCollision(World world, BlockPos pos, Entity entity, Vec3d velocity) voidonSteppedOn(World world, BlockPos pos, Entity entity) Runs every time an entity steps on the Block.voidscheduledTick(World world, BlockPos pos, BlockState state, Random rand) Runs when the block is updated as per a schedulestateFromData(int data) Returns a blockstate of the current block from it's idbooleanuse(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4) withMirror(BlockState state, BlockMirror mirror) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlockFromItem, getBlockRenderType, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMeta, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromRawId, getStateManager, getTranslatedName, getTranslationKey, hasBlockEntity, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11565, method_11566, method_11575, method_11576, method_11577, method_13315, method_13702, method_13703, method_13704, method_14306, method_14308, method_14309, method_435, method_8638, method_8640, method_8640, method_8651, method_8653, method_8654, method_8664, onBlockBreak, onBreak, onBreakByPlayer, onEntityCollision, onLandedUpon, onPlaced, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLaud;a:Laxg;intermediary field_9675Lnet/minecraft/class_188;field_9675:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/StairsBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
HALF
- Mappings:
Namespace Name Mixin selector official bLaud;b:Laxh;intermediary field_9676Lnet/minecraft/class_188;field_9676:Lnet/minecraft/class_2245;named HALFLnet/minecraft/block/StairsBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
SHAPE
- Mappings:
Namespace Name Mixin selector official cLaud;c:Laxh;intermediary field_9673Lnet/minecraft/class_188;field_9673:Lnet/minecraft/class_2245;named SHAPELnet/minecraft/block/StairsBlock;SHAPE:Lnet/minecraft/state/property/EnumProperty;
-
field_12791
- Mappings:
Namespace Name Mixin selector official dLaud;d:Lbhb;intermediary field_12791Lnet/minecraft/class_188;field_12791:Lnet/minecraft/class_231;named field_12791Lnet/minecraft/block/StairsBlock;field_12791:Lnet/minecraft/util/math/Box;
-
field_12792
- Mappings:
Namespace Name Mixin selector official eLaud;e:Lbhb;intermediary field_12792Lnet/minecraft/class_188;field_12792:Lnet/minecraft/class_231;named field_12792Lnet/minecraft/block/StairsBlock;field_12792:Lnet/minecraft/util/math/Box;
-
field_12793
- Mappings:
Namespace Name Mixin selector official fLaud;f:Lbhb;intermediary field_12793Lnet/minecraft/class_188;field_12793:Lnet/minecraft/class_231;named field_12793Lnet/minecraft/block/StairsBlock;field_12793:Lnet/minecraft/util/math/Box;
-
field_12794
- Mappings:
Namespace Name Mixin selector official gLaud;g:Lbhb;intermediary field_12794Lnet/minecraft/class_188;field_12794:Lnet/minecraft/class_231;named field_12794Lnet/minecraft/block/StairsBlock;field_12794:Lnet/minecraft/util/math/Box;
-
field_12777
- Mappings:
Namespace Name Mixin selector official BLaud;B:Lbhb;intermediary field_12777Lnet/minecraft/class_188;field_12777:Lnet/minecraft/class_231;named field_12777Lnet/minecraft/block/StairsBlock;field_12777:Lnet/minecraft/util/math/Box;
-
field_12778
- Mappings:
Namespace Name Mixin selector official CLaud;C:Lbhb;intermediary field_12778Lnet/minecraft/class_188;field_12778:Lnet/minecraft/class_231;named field_12778Lnet/minecraft/block/StairsBlock;field_12778:Lnet/minecraft/util/math/Box;
-
field_12779
- Mappings:
Namespace Name Mixin selector official DLaud;D:Lbhb;intermediary field_12779Lnet/minecraft/class_188;field_12779:Lnet/minecraft/class_231;named field_12779Lnet/minecraft/block/StairsBlock;field_12779:Lnet/minecraft/util/math/Box;
-
field_12780
- Mappings:
Namespace Name Mixin selector official ELaud;E:Lbhb;intermediary field_12780Lnet/minecraft/class_188;field_12780:Lnet/minecraft/class_231;named field_12780Lnet/minecraft/block/StairsBlock;field_12780:Lnet/minecraft/util/math/Box;
-
field_12781
- Mappings:
Namespace Name Mixin selector official FLaud;F:Lbhb;intermediary field_12781Lnet/minecraft/class_188;field_12781:Lnet/minecraft/class_231;named field_12781Lnet/minecraft/block/StairsBlock;field_12781:Lnet/minecraft/util/math/Box;
-
field_12782
- Mappings:
Namespace Name Mixin selector official GLaud;G:Lbhb;intermediary field_12782Lnet/minecraft/class_188;field_12782:Lnet/minecraft/class_231;named field_12782Lnet/minecraft/block/StairsBlock;field_12782:Lnet/minecraft/util/math/Box;
-
field_12783
- Mappings:
Namespace Name Mixin selector official HLaud;H:Lbhb;intermediary field_12783Lnet/minecraft/class_188;field_12783:Lnet/minecraft/class_231;named field_12783Lnet/minecraft/block/StairsBlock;field_12783:Lnet/minecraft/util/math/Box;
-
field_12784
- Mappings:
Namespace Name Mixin selector official ILaud;I:Lbhb;intermediary field_12784Lnet/minecraft/class_188;field_12784:Lnet/minecraft/class_231;named field_12784Lnet/minecraft/block/StairsBlock;field_12784:Lnet/minecraft/util/math/Box;
-
field_12785
- Mappings:
Namespace Name Mixin selector official JLaud;J:Lbhb;intermediary field_12785Lnet/minecraft/class_188;field_12785:Lnet/minecraft/class_231;named field_12785Lnet/minecraft/block/StairsBlock;field_12785:Lnet/minecraft/util/math/Box;
-
field_12786
- Mappings:
Namespace Name Mixin selector official KLaud;K:Lbhb;intermediary field_12786Lnet/minecraft/class_188;field_12786:Lnet/minecraft/class_231;named field_12786Lnet/minecraft/block/StairsBlock;field_12786:Lnet/minecraft/util/math/Box;
-
field_12787
- Mappings:
Namespace Name Mixin selector official LLaud;L:Lbhb;intermediary field_12787Lnet/minecraft/class_188;field_12787:Lnet/minecraft/class_231;named field_12787Lnet/minecraft/block/StairsBlock;field_12787:Lnet/minecraft/util/math/Box;
-
field_12788
- Mappings:
Namespace Name Mixin selector official MLaud;M:Lbhb;intermediary field_12788Lnet/minecraft/class_188;field_12788:Lnet/minecraft/class_231;named field_12788Lnet/minecraft/block/StairsBlock;field_12788:Lnet/minecraft/util/math/Box;
-
field_12789
- Mappings:
Namespace Name Mixin selector official NLaud;N:Lbhb;intermediary field_12789Lnet/minecraft/class_188;field_12789:Lnet/minecraft/class_231;named field_12789Lnet/minecraft/block/StairsBlock;field_12789:Lnet/minecraft/util/math/Box;
-
field_12790
- Mappings:
Namespace Name Mixin selector official OLaud;O:Lbhb;intermediary field_12790Lnet/minecraft/class_188;field_12790:Lnet/minecraft/class_231;named field_12790Lnet/minecraft/block/StairsBlock;field_12790:Lnet/minecraft/util/math/Box;
-
block
- Mappings:
Namespace Name Mixin selector official PLaud;P:Laow;intermediary field_324Lnet/minecraft/class_188;field_324:Lnet/minecraft/class_197;named blockLnet/minecraft/block/StairsBlock;block:Lnet/minecraft/block/Block;
-
state
- Mappings:
Namespace Name Mixin selector official QLaud;Q:Lawt;intermediary field_9674Lnet/minecraft/class_188;field_9674:Lnet/minecraft/class_2232;named stateLnet/minecraft/block/StairsBlock;state:Lnet/minecraft/block/BlockState;
-
-
Constructor Details
-
StairsBlock
- Mappings:
Namespace Name Mixin selector official <init>Laud;<init>(Lawt;)Vintermediary <init>Lnet/minecraft/class_188;<init>(Lnet/minecraft/class_2232;)Vnamed <init>Lnet/minecraft/block/StairsBlock;<init>(Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
appendCollisionBoxes
public void appendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, @Nullable Entity entity, boolean isActualState) - Overrides:
appendCollisionBoxesin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Lbhb;Ljava/util/List;Lvg;Z)Vintermediary method_11553Lnet/minecraft/class_197;method_11553(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_231;Ljava/util/List;Lnet/minecraft/class_864;Z)Vnamed appendCollisionBoxesLnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;Z)V
-
method_11634
- Mappings:
Namespace Name Mixin selector official yLaud;y(Lawt;)Ljava/util/List;intermediary method_11634Lnet/minecraft/class_188;method_11634(Lnet/minecraft/class_2232;)Ljava/util/List;named method_11634Lnet/minecraft/block/StairsBlock;method_11634(Lnet/minecraft/block/BlockState;)Ljava/util/List;
-
method_11635
- Mappings:
Namespace Name Mixin selector official zLaud;z(Lawt;)Lbhb;intermediary method_11635Lnet/minecraft/class_188;method_11635(Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;named method_11635Lnet/minecraft/block/StairsBlock;method_11635(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
method_11636
- Mappings:
Namespace Name Mixin selector official ALaud;A(Lawt;)Lbhb;intermediary method_11636Lnet/minecraft/class_188;method_11636(Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;named method_11636Lnet/minecraft/block/StairsBlock;method_11636(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
method_14307
public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) - Overrides:
method_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamy;Lawt;Let;Lfa;)Lawr;intermediary method_14307Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;named method_14307Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLaow;c(Lawt;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
method_8669
@Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random) - Overrides:
method_8669in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
onBlockBreakStart
- Overrides:
onBlockBreakStartin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Laed;)Vintermediary method_420Lnet/minecraft/class_197;method_420(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)Vnamed onBlockBreakStartLnet/minecraft/block/Block;onBlockBreakStart(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
-
onBreakByPlayer
Runs when the block is broken by the player- Overrides:
onBreakByPlayerin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official dLaow;d(Lamu;Let;Lawt;)Vintermediary method_8674Lnet/minecraft/class_197;method_8674(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakByPlayerLnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_11564
- Overrides:
method_11564in classBlock- Mappings:
Namespace Name Mixin selector official eLaow;e(Lawt;Lamy;Let;)Iintermediary method_11564Lnet/minecraft/class_197;method_11564(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Inamed method_11564Lnet/minecraft/block/Block;method_11564(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-
getBlastResistance
Returns the block's blast resistance as per the entity provided.- Overrides:
getBlastResistancein classBlock- Parameters:
entity- The entity that blast resistance must be calculated for- Returns:
- Blast Resistance
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lvg;)Fintermediary method_404Lnet/minecraft/class_197;method_404(Lnet/minecraft/class_864;)Fnamed getBlastResistanceLnet/minecraft/block/Block;getBlastResistance(Lnet/minecraft/entity/Entity;)F
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official fLaow;f()Lamm;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
getTickRate
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
method_11563
- Overrides:
method_11563in classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;Lamu;Let;)Lbhb;intermediary method_11563Lnet/minecraft/class_197;method_11563(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named method_11563Lnet/minecraft/block/Block;method_11563(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
onEntityCollision
- Overrides:
onEntityCollisionin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lvg;Lbhe;)Lbhe;intermediary method_8648Lnet/minecraft/class_197;method_8648(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;Lnet/minecraft/class_236;)Lnet/minecraft/class_236;named onEntityCollisionLnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
-
hasCollision
public boolean hasCollision()Returns whether a block has collision, i.e. stops entities- Overrides:
hasCollisionin classBlock- Returns:
- Whether a block has collision
- Mappings:
Namespace Name Mixin selector official mLaow;m()Zintermediary method_469Lnet/minecraft/class_197;method_469()Znamed hasCollisionLnet/minecraft/block/Block;hasCollision()Z
-
canCollide
Returns whether entities can collide with the block- Overrides:
canCollidein classBlock- Parameters:
state- The block's BlockState- Returns:
- Whether the block has collision
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Z)Zintermediary method_400Lnet/minecraft/class_197;method_400(Lnet/minecraft/class_2232;Z)Znamed canCollideLnet/minecraft/block/Block;canCollide(Lnet/minecraft/block/BlockState;Z)Z
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLaow;c(Lamu;Let;Lawt;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Overrides:
onBreakingin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLaow;b(Lamu;Let;Lawt;)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakingLnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onSteppedOn
Runs every time an entity steps on the Block. Used by redstone ore to change it's state.- Overrides:
onSteppedOnin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionentity- The entity who stepped on the block- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lvg;)Vintermediary method_437Lnet/minecraft/class_197;method_437(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;)Vnamed onSteppedOnLnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
-
scheduledTick
Runs when the block is updated as per a schedule- Overrides:
scheduledTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLaow;b(Lamu;Let;Lawt;Ljava/util/Random;)Vintermediary method_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
use
public boolean use(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4) - Overrides:
usein classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lawt;Laed;Lub;Lfa;FFF)Zintermediary method_421Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_2961;Lnet/minecraft/class_1354;FFF)Znamed useLnet/minecraft/block/Block;use(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Z
-
onDestroyedByExplosion
- Overrides:
onDestroyedByExplosionin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lamp;)Vintermediary method_8639Lnet/minecraft/class_197;method_8639(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1147;)Vnamed onDestroyedByExplosionLnet/minecraft/block/Block;onDestroyedByExplosion(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;)V
-
method_11568
- Overrides:
method_11568in classBlock- Mappings:
Namespace Name Mixin selector official kLaow;k(Lawt;)Zintermediary method_11568Lnet/minecraft/class_197;method_11568(Lnet/minecraft/class_2232;)Znamed method_11568Lnet/minecraft/block/Block;method_11568(Lnet/minecraft/block/BlockState;)Z
-
getMaterialColor
- Overrides:
getMaterialColorin classBlock- Mappings:
Namespace Name Mixin selector official cLaow;c(Lawt;Lamy;Let;)Lbda;intermediary method_8680Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_65;named getMaterialColorLnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/MaterialColor;
-
getStateFromData
public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an id- Overrides:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lfa;FFFILvp;)Lawt;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;named getStateFromDataLnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
-
method_414
@Nullable public BlockHitResult method_414(BlockState blockState, World world, BlockPos blockPos, Vec3d vec3d, Vec3d vec3d2) - Overrides:
method_414in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Lbhe;Lbhe;)Lbhc;intermediary method_414Lnet/minecraft/class_197;method_414(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_234;named method_414Lnet/minecraft/block/Block;method_414(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLaow;a(I)Lawt;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLaow;e(Lawt;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
getBlockState
Returns the current block's blockstate at a certain position- Overrides:
getBlockStatein classBlock- Parameters:
state- The original blockstateview- BlockView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official dLaow;d(Lawt;Lamy;Let;)Lawt;intermediary method_8656Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
method_11631
private static StairsBlock.Shape method_11631(BlockState blockState, BlockView blockView, BlockPos blockPos) - Mappings:
Namespace Name Mixin selector official gLaud;g(Lawt;Lamy;Let;)Laud$b;intermediary method_11631Lnet/minecraft/class_188;method_11631(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_188$class_2215;named method_11631Lnet/minecraft/block/StairsBlock;method_11631(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/StairsBlock$Shape;
-
method_11632
private static boolean method_11632(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) - Mappings:
Namespace Name Mixin selector official dLaud;d(Lawt;Lamy;Let;Lfa;)Zintermediary method_11632Lnet/minecraft/class_188;method_11632(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_11632Lnet/minecraft/block/StairsBlock;method_11632(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_11633
- Mappings:
Namespace Name Mixin selector official xLaud;x(Lawt;)Zintermediary method_11633Lnet/minecraft/class_188;method_11633(Lnet/minecraft/class_2232;)Znamed method_11633Lnet/minecraft/block/StairsBlock;method_11633(Lnet/minecraft/block/BlockState;)Z
-
withRotation
- Overrides:
withRotationin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Latm;)Lawt;intermediary method_11556Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;named withRotationLnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
withMirror
- Overrides:
withMirrorin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lary;)Lawt;intermediary method_11555Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;named withMirrorLnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLaow;b()Lawu;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-