Package net.minecraft.block
Class StairsBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.StairsBlock
public class StairsBlock extends Block
- Mappings:
Namespace Name official ajuintermediary net/minecraft/class_309named net/minecraft/block/StairsBlock
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStairsBlock.Halfstatic classStairsBlock.ShapeNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description private Blockblockstatic DirectionPropertyFACINGprivate static int[][]field_1196private booleanfield_1199private intfield_1200static EnumProperty<StairsBlock.Half>HALFstatic EnumProperty<StairsBlock.Shape>SHAPEprivate BlockStatestateFields inherited from class net.minecraft.block.Block
ANVIL, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, resistance, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, strength, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors Modifier Constructor Description protectedStairsBlock(BlockState blockState) -
Method Summary
Modifier and Type Method Description voidappendCollisionBoxes(World world, BlockPos pos, BlockState state, Box box, List<Box> list, Entity entity)protected StateManagerappendProperties()Returns 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.BlockStategetBlockState(BlockState state, WorldView view, BlockPos pos)Returns the current block's blockstate at a certain positionintgetBrightness(WorldView worldView, BlockPos pos)intgetData(BlockState state)Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workMaterialColorgetMaterialColor(BlockState state)Returns the block's material color from it's state Blockstates can have different material colorsRenderLayergetRenderLayerType()Returns the appropriate RenderLayer for a block.BoxgetSelectionBox(World world, BlockPos pos)BlockStategetStateFromData(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.booleanhasCollision()Returns whether a block has collision, i.e.booleanhasTransperancy()static booleanmethod_1005(WorldView worldView, BlockPos blockPos, BlockState blockState)static booleanmethod_1006(Block block)voidmethod_1007(WorldView worldView, BlockPos blockPos)intmethod_1008(WorldView worldView, BlockPos blockPos)intmethod_1009(WorldView worldView, BlockPos blockPos)booleanmethod_1010(WorldView worldView, BlockPos blockPos)booleanmethod_1011(WorldView worldView, BlockPos blockPos)HitResultmethod_655(World world, BlockPos pos, Vec3d vec1, Vec3d vec2)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)Vec3donEntityCollision(World world, BlockPos pos, Entity entity, Vec3d velocity)voidonSteppedOn(World world, BlockPos pos, Entity entity)Runs every time an entity steps on the Block.booleanonUse(World world, BlockPos pos, BlockState state, PlayerEntity player, Direction direction, float float2, float float3, float float4)Runs when the block is used, i.e.voidrandomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)Runs every random display Tick.booleanrenderAsNormalBlock()Returns whether the block can be rendered as a normal blockvoidscheduledTick(World world, BlockPos pos, BlockState state, Random rand)Runs when the block is updated as per a schedulevoidsetBoundingBox(WorldView view, BlockPos pos)BlockStatestateFromData(int data)Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.Block
appendItemStacks, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlendColor, getBlockColor, getBlockFromItem, getBlockType, getBonusDrops, getByBlockState, getById, getCollisionBox, getColor, getColor, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getPistonInteractionType, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_696, neighborUpdate, onBlockBreak, onBreakByPlayer, onEntityCollision, onEvent, onLandedUpon, onPlaced, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, setBlockItemBounds, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLaju;a:Laml;intermediary field_1201Lnet/minecraft/class_309;field_1201:Lnet/minecraft/class_389;named FACINGLnet/minecraft/block/StairsBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
HALF
- Mappings:
Namespace Name Mixin selector official bLaju;b:Lamm;intermediary field_1202Lnet/minecraft/class_309;field_1202:Lnet/minecraft/class_390;named HALFLnet/minecraft/block/StairsBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
SHAPE
- Mappings:
Namespace Name Mixin selector official NLaju;N:Lamm;intermediary field_1195Lnet/minecraft/class_309;field_1195:Lnet/minecraft/class_390;named SHAPELnet/minecraft/block/StairsBlock;SHAPE:Lnet/minecraft/state/property/EnumProperty;
-
field_1196
private static final int[][] field_1196- Mappings:
Namespace Name Mixin selector official OLaju;O:[[Iintermediary field_1196Lnet/minecraft/class_309;field_1196:[[Inamed field_1196Lnet/minecraft/block/StairsBlock;field_1196:[[I
-
block
- Mappings:
Namespace Name Mixin selector official PLaju;P:Lafh;intermediary field_1197Lnet/minecraft/class_309;field_1197:Lnet/minecraft/class_160;named blockLnet/minecraft/block/StairsBlock;block:Lnet/minecraft/block/Block;
-
state
- Mappings:
Namespace Name Mixin selector official QLaju;Q:Lalz;intermediary field_1198Lnet/minecraft/class_309;field_1198:Lnet/minecraft/class_376;named stateLnet/minecraft/block/StairsBlock;state:Lnet/minecraft/block/BlockState;
-
field_1199
private boolean field_1199- Mappings:
Namespace Name Mixin selector official RLaju;R:Zintermediary field_1199Lnet/minecraft/class_309;field_1199:Znamed field_1199Lnet/minecraft/block/StairsBlock;field_1199:Z
-
field_1200
private int field_1200- Mappings:
Namespace Name Mixin selector official SLaju;S:Iintermediary field_1200Lnet/minecraft/class_309;field_1200:Inamed field_1200Lnet/minecraft/block/StairsBlock;field_1200:I
-
-
Constructor Details
-
StairsBlock
- Mappings:
Namespace Name Mixin selector official <init>Laju;<init>(Lalz;)Vintermediary <init>Lnet/minecraft/class_309;<init>(Lnet/minecraft/class_376;)Vnamed <init>Lnet/minecraft/block/StairsBlock;<init>(Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
setBoundingBox
- Overrides:
setBoundingBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;)Vintermediary method_665Lnet/minecraft/class_160;method_665(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Vnamed setBoundingBoxLnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)V
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_699Lnet/minecraft/class_160;method_699()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLafh;d()Zintermediary method_709Lnet/minecraft/class_160;method_709()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
method_1007
- Mappings:
Namespace Name Mixin selector official eLaju;e(Ladq;Lcj;)Vintermediary method_1007Lnet/minecraft/class_309;method_1007(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Vnamed method_1007Lnet/minecraft/block/StairsBlock;method_1007(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)V
-
method_1006
- Mappings:
Namespace Name Mixin selector official cLaju;c(Lafh;)Zintermediary method_1006Lnet/minecraft/class_309;method_1006(Lnet/minecraft/class_160;)Znamed method_1006Lnet/minecraft/block/StairsBlock;method_1006(Lnet/minecraft/block/Block;)Z
-
method_1005
- Mappings:
Namespace Name Mixin selector official aLaju;a(Ladq;Lcj;Lalz;)Zintermediary method_1005Lnet/minecraft/class_309;method_1005(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Znamed method_1005Lnet/minecraft/block/StairsBlock;method_1005(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
method_1008
- Mappings:
Namespace Name Mixin selector official fLaju;f(Ladq;Lcj;)Iintermediary method_1008Lnet/minecraft/class_309;method_1008(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Inamed method_1008Lnet/minecraft/block/StairsBlock;method_1008(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)I
-
method_1009
- Mappings:
Namespace Name Mixin selector official gLaju;g(Ladq;Lcj;)Iintermediary method_1009Lnet/minecraft/class_309;method_1009(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Inamed method_1009Lnet/minecraft/block/StairsBlock;method_1009(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)I
-
method_1010
- Mappings:
Namespace Name Mixin selector official hLaju;h(Ladq;Lcj;)Zintermediary method_1010Lnet/minecraft/class_309;method_1010(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Znamed method_1010Lnet/minecraft/block/StairsBlock;method_1010(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
method_1011
- Mappings:
Namespace Name Mixin selector official iLaju;i(Ladq;Lcj;)Zintermediary method_1011Lnet/minecraft/class_309;method_1011(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Znamed method_1011Lnet/minecraft/block/StairsBlock;method_1011(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
appendCollisionBoxes
public void appendCollisionBoxes(World world, BlockPos pos, BlockState state, Box box, List<Box> list, Entity entity)- Overrides:
appendCollisionBoxesin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;Laug;Ljava/util/List;Lpk;)Vintermediary method_649Lnet/minecraft/class_160;method_649(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_646;Ljava/util/List;Lnet/minecraft/class_1745;)Vnamed appendCollisionBoxesLnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;)V
-
randomDisplayTick
@Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.- Overrides:
randomDisplayTickin 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 cLafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_704Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
onBlockBreakStart
- Overrides:
onBlockBreakStartin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lwn;)Vintermediary method_661Lnet/minecraft/class_160;method_661(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1963;)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 dLafh;d(Ladm;Lcj;Lalz;)Vintermediary method_712Lnet/minecraft/class_160;method_712(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Vnamed onBreakByPlayerLnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getBrightness
- Overrides:
getBrightnessin classBlock- Mappings:
Namespace Name Mixin selector official cLafh;c(Ladq;Lcj;)Iintermediary method_705Lnet/minecraft/class_160;method_705(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Inamed getBrightnessLnet/minecraft/block/Block;getBrightness(Lnet/minecraft/world/WorldView;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 aLafh;a(Lpk;)Fintermediary method_678Lnet/minecraft/class_160;method_678(Lnet/minecraft/class_1745;)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 mLafh;m()Ladf;intermediary method_731Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
-
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 aLafh;a(Ladm;)Iintermediary method_642Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
getSelectionBox
- Overrides:
getSelectionBoxin classBlock- Mappings:
Namespace Name Mixin selector official bLafh;b(Ladm;Lcj;)Laug;intermediary method_686Lnet/minecraft/class_160;method_686(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Lnet/minecraft/class_646;named getSelectionBoxLnet/minecraft/block/Block;getSelectionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
onEntityCollision
- Overrides:
onEntityCollisionin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lpk;Laui;)Laui;intermediary method_660Lnet/minecraft/class_160;method_660(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1745;Lnet/minecraft/class_649;)Lnet/minecraft/class_649;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 ALafh;A()Zintermediary method_615Lnet/minecraft/class_160;method_615()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 aLafh;a(Lalz;Z)Zintermediary method_675Lnet/minecraft/class_160;method_675(Lnet/minecraft/class_376;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 dLafh;d(Ladm;Lcj;)Zintermediary method_711Lnet/minecraft/class_160;method_711(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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 cLafh;c(Ladm;Lcj;Lalz;)Vintermediary method_703Lnet/minecraft/class_160;method_703(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 bLafh;b(Ladm;Lcj;Lalz;)Vintermediary method_688Lnet/minecraft/class_160;method_688(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 aLafh;a(Ladm;Lcj;Lpk;)Vintermediary method_658Lnet/minecraft/class_160;method_658(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1745;)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 bLafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_690Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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
-
onUse
public boolean onUse(World world, BlockPos pos, BlockState state, PlayerEntity player, Direction direction, float float2, float float3, float float4)Runs when the block is used, i.e. right clicked in most cases. It is similar to the same method in Item, but this method is called only when the player uses it when the block is placed, not when the player is holding the BlockItem.- Overrides:
onUsein classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateplayer- The player who used the blockdirection- The direction that the block is facing- Returns:
- Whether the action is succesful
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;Lwn;Lcq;FFF)Zintermediary method_654Lnet/minecraft/class_160;method_654(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_1963;Lnet/minecraft/class_1383;FFF)Znamed onUseLnet/minecraft/block/Block;onUse(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Direction;FFF)Z
-
onDestroyedByExplosion
- Overrides:
onDestroyedByExplosionin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Ladi;)Vintermediary method_644Lnet/minecraft/class_160;method_644(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_93;)Vnamed onDestroyedByExplosionLnet/minecraft/block/Block;onDestroyedByExplosion(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;)V
-
getMaterialColor
Returns the block's material color from it's state Blockstates can have different material colors- Overrides:
getMaterialColorin classBlock- Parameters:
state- The Blockstate for which the material color is returned- Returns:
- materialColor
- Mappings:
Namespace Name Mixin selector official gLafh;g(Lalz;)Larn;intermediary method_720Lnet/minecraft/class_160;method_720(Lnet/minecraft/class_376;)Lnet/minecraft/class_592;named getMaterialColorLnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)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 aLafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;intermediary method_656Lnet/minecraft/class_160;method_656(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFFILnet/minecraft/class_1752;)Lnet/minecraft/class_376;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_655
- Overrides:
method_655in classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Laui;Laui;)Lauh;intermediary method_655Lnet/minecraft/class_160;method_655(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_649;Lnet/minecraft/class_649;)Lnet/minecraft/class_647;named method_655Lnet/minecraft/block/Block;method_655(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/HitResult;
-
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 aLafh;a(I)Lalz;intermediary method_637Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;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 cLafh;c(Lalz;)Iintermediary method_706Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)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- WorldView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lalz;Ladq;Lcj;)Lalz;intermediary method_673Lnet/minecraft/class_160;method_673(Lnet/minecraft/class_376;Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Lnet/minecraft/class_376;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)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 eLafh;e()Lama;intermediary method_714Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-