Class StairsBlock
- All Implemented Interfaces:
FluidDrainable,FluidFillable,Waterloggable,ItemConvertible,ToggleableFeature
- Direct Known Subclasses:
OxidizableStairsBlock
- Mappings:
Namespace Name named net/minecraft/block/StairsBlockintermediary net/minecraft/class_2510official dnt
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Blockprotected final BlockStateprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShape[]protected static final VoxelShapeprotected static final VoxelShapestatic final com.mojang.serialization.MapCodec<StairsBlock> static final DirectionPropertystatic final EnumProperty<BlockHalf> static final EnumProperty<StairShape> private static final int[]protected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShapeprotected static final VoxelShape[]protected static final VoxelShapeprotected static final VoxelShapestatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStairsBlock(BlockState baseBlockState, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.protected booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.private static VoxelShapecomposeShape(int i, VoxelShape base, VoxelShape northWest, VoxelShape northEast, VoxelShape southWest, VoxelShape southEast) private static VoxelShape[]composeShapes(VoxelShape base, VoxelShape northWest, VoxelShape northEast, VoxelShape southWest, VoxelShape southEast) floatcom.mojang.serialization.MapCodec<? extends StairsBlock> getCodec()protected FluidStategetFluidState(BlockState state) Returns the state's associated fluid state.protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) private intgetShapeIndexIndex(BlockState state) private static StairShapegetStairShape(BlockState state, BlockView world, BlockPos pos) protected BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.protected booleanhasSidedTransparency(BlockState state) Returns whether the block's transparency depends on the side of the block, like slabs.private static booleanisDifferentOrientation(BlockState state, BlockView world, BlockPos pos, Direction dir) static booleanisStairs(BlockState state) protected BlockStatemirror(BlockState state, BlockMirror mirror) Returnsstatemirrored bymirror.protected BlockStaterotate(BlockState state, BlockRotation rotation) Returnsstaterotated byrotation.Methods inherited from class net.minecraft.block.Block
afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabledMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/StairsBlock;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46460Lnet/minecraft/class_2510;field_46460:Lcom/mojang/serialization/MapCodec;official aLdnt;a:Lcom/mojang/serialization/MapCodec;
-
FACING
- Mappings:
Namespace Name Mixin selector named FACINGLnet/minecraft/block/StairsBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;intermediary field_11571Lnet/minecraft/class_2510;field_11571:Lnet/minecraft/class_2753;official bLdnt;b:Ldtw;
-
HALF
- Mappings:
Namespace Name Mixin selector named HALFLnet/minecraft/block/StairsBlock;HALF:Lnet/minecraft/state/property/EnumProperty;intermediary field_11572Lnet/minecraft/class_2510;field_11572:Lnet/minecraft/class_2754;official cLdnt;c:Ldua;
-
SHAPE
- Mappings:
Namespace Name Mixin selector named SHAPELnet/minecraft/block/StairsBlock;SHAPE:Lnet/minecraft/state/property/EnumProperty;intermediary field_11565Lnet/minecraft/class_2510;field_11565:Lnet/minecraft/class_2754;official dLdnt;d:Ldua;
-
WATERLOGGED
- Mappings:
Namespace Name Mixin selector named WATERLOGGEDLnet/minecraft/block/StairsBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;intermediary field_11573Lnet/minecraft/class_2510;field_11573:Lnet/minecraft/class_2746;official eLdnt;e:Ldtt;
-
TOP_SHAPE
- Mappings:
Namespace Name Mixin selector named TOP_SHAPELnet/minecraft/block/StairsBlock;TOP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11562Lnet/minecraft/class_2510;field_11562:Lnet/minecraft/class_265;official fLdnt;f:Lexv;
-
BOTTOM_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_SHAPELnet/minecraft/block/StairsBlock;BOTTOM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11576Lnet/minecraft/class_2510;field_11576:Lnet/minecraft/class_265;official gLdnt;g:Lexv;
-
BOTTOM_NORTH_WEST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_NORTH_WEST_CORNER_SHAPELnet/minecraft/block/StairsBlock;BOTTOM_NORTH_WEST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11561Lnet/minecraft/class_2510;field_11561:Lnet/minecraft/class_265;official hLdnt;h:Lexv;
-
BOTTOM_SOUTH_WEST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_SOUTH_WEST_CORNER_SHAPELnet/minecraft/block/StairsBlock;BOTTOM_SOUTH_WEST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11578Lnet/minecraft/class_2510;field_11578:Lnet/minecraft/class_265;official iLdnt;i:Lexv;
-
TOP_NORTH_WEST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named TOP_NORTH_WEST_CORNER_SHAPELnet/minecraft/block/StairsBlock;TOP_NORTH_WEST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11568Lnet/minecraft/class_2510;field_11568:Lnet/minecraft/class_265;official jLdnt;j:Lexv;
-
TOP_SOUTH_WEST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named TOP_SOUTH_WEST_CORNER_SHAPELnet/minecraft/block/StairsBlock;TOP_SOUTH_WEST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11563Lnet/minecraft/class_2510;field_11563:Lnet/minecraft/class_265;official kLdnt;k:Lexv;
-
BOTTOM_NORTH_EAST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_NORTH_EAST_CORNER_SHAPELnet/minecraft/block/StairsBlock;BOTTOM_NORTH_EAST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11575Lnet/minecraft/class_2510;field_11575:Lnet/minecraft/class_265;official lLdnt;l:Lexv;
-
BOTTOM_SOUTH_EAST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named BOTTOM_SOUTH_EAST_CORNER_SHAPELnet/minecraft/block/StairsBlock;BOTTOM_SOUTH_EAST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11569Lnet/minecraft/class_2510;field_11569:Lnet/minecraft/class_265;official mLdnt;m:Lexv;
-
TOP_NORTH_EAST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named TOP_NORTH_EAST_CORNER_SHAPELnet/minecraft/block/StairsBlock;TOP_NORTH_EAST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11577Lnet/minecraft/class_2510;field_11577:Lnet/minecraft/class_265;official nLdnt;n:Lexv;
-
TOP_SOUTH_EAST_CORNER_SHAPE
- Mappings:
Namespace Name Mixin selector named TOP_SOUTH_EAST_CORNER_SHAPELnet/minecraft/block/StairsBlock;TOP_SOUTH_EAST_CORNER_SHAPE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_11567Lnet/minecraft/class_2510;field_11567:Lnet/minecraft/class_265;official oLdnt;o:Lexv;
-
TOP_SHAPES
- Mappings:
Namespace Name Mixin selector named TOP_SHAPESLnet/minecraft/block/StairsBlock;TOP_SHAPES:[Lnet/minecraft/util/shape/VoxelShape;intermediary field_11566Lnet/minecraft/class_2510;field_11566:[Lnet/minecraft/class_265;official FLdnt;F:[Lexv;
-
BOTTOM_SHAPES
- Mappings:
Namespace Name Mixin selector named BOTTOM_SHAPESLnet/minecraft/block/StairsBlock;BOTTOM_SHAPES:[Lnet/minecraft/util/shape/VoxelShape;intermediary field_11564Lnet/minecraft/class_2510;field_11564:[Lnet/minecraft/class_265;official GLdnt;G:[Lexv;
-
SHAPE_INDICES
private static final int[] SHAPE_INDICES- Mappings:
Namespace Name Mixin selector named SHAPE_INDICESLnet/minecraft/block/StairsBlock;SHAPE_INDICES:[Iintermediary field_11570Lnet/minecraft/class_2510;field_11570:[Iofficial ILdnt;I:[I
-
baseBlock
- Mappings:
Namespace Name Mixin selector named baseBlockLnet/minecraft/block/StairsBlock;baseBlock:Lnet/minecraft/block/Block;intermediary field_11579Lnet/minecraft/class_2510;field_11579:Lnet/minecraft/class_2248;official JLdnt;J:Ldfy;
-
baseBlockState
- Mappings:
Namespace Name Mixin selector named baseBlockStateLnet/minecraft/block/StairsBlock;baseBlockState:Lnet/minecraft/block/BlockState;intermediary field_11574Lnet/minecraft/class_2510;field_11574:Lnet/minecraft/class_2680;official HLdnt;H:Ldtc;
-
-
Constructor Details
-
StairsBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/StairsBlock;<init>(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_2510;<init>(Lnet/minecraft/class_2680;Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldnt;<init>(Ldtc;Ldtb$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdtb;a()Lcom/mojang/serialization/MapCodec;
-
composeShapes
private static VoxelShape[] composeShapes(VoxelShape base, VoxelShape northWest, VoxelShape northEast, VoxelShape southWest, VoxelShape southEast) - Mappings:
Namespace Name Mixin selector named composeShapesLnet/minecraft/block/StairsBlock;composeShapes(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)[Lnet/minecraft/util/shape/VoxelShape;intermediary method_10672Lnet/minecraft/class_2510;method_10672(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_265;)[Lnet/minecraft/class_265;official aLdnt;a(Lexv;Lexv;Lexv;Lexv;Lexv;)[Lexv;
-
composeShape
private static VoxelShape composeShape(int i, VoxelShape base, VoxelShape northWest, VoxelShape northEast, VoxelShape southWest, VoxelShape southEast) - Mappings:
Namespace Name Mixin selector named composeShapeLnet/minecraft/block/StairsBlock;composeShape(ILnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_10671Lnet/minecraft/class_2510;method_10671(ILnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Lnet/minecraft/class_265;official aLdnt;a(ILexv;Lexv;Lexv;Lexv;Lexv;)Lexv;
-
hasSidedTransparency
Returns whether the block's transparency depends on the side of the block, like slabs.- Overrides:
hasSidedTransparencyin classAbstractBlock- Returns:
- whether the block's transparency depends on the side of the block, like slabs
- See Also:
- Mappings:
Namespace Name Mixin selector named hasSidedTransparencyLnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Zintermediary method_9526Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Zofficial f_Ldtb;f_(Ldtc;)Z
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named getOutlineShapeLnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_9530Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;official aLdtb;a(Ldtc;Ldcc;Ljd;Lexh;)Lexv;
-
getShapeIndexIndex
- Mappings:
Namespace Name Mixin selector named getShapeIndexIndexLnet/minecraft/block/StairsBlock;getShapeIndexIndex(Lnet/minecraft/block/BlockState;)Iintermediary method_10673Lnet/minecraft/class_2510;method_10673(Lnet/minecraft/class_2680;)Iofficial nLdnt;n(Ldtc;)I
-
getBlastResistance
public float getBlastResistance()- Overrides:
getBlastResistancein classBlock- Mappings:
Namespace Name Mixin selector named getBlastResistanceLnet/minecraft/block/Block;getBlastResistance()Fintermediary method_9520Lnet/minecraft/class_2248;method_9520()Fofficial eLdfy;e()F
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;official aLdfy;a(Lcyd;)Ldtc;
-
getStateForNeighborUpdate
protected BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) Returns the state of the block after a neighboring block's state change.Returning
Blocks.AIRbreaks the block. This is useful to implement supporting block requirement for blocks (if used along withAbstractBlock.canPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).Side effects like activating a redstone component (but not scheduling a tick) should be performed in
AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean)instead. If the block supports waterlogging and currently has water, this method should be overridden to tick the fluid at the block's position.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient. This is not called ifBlock.FORCE_STATEflag is set in thesetBlockStatecall.This method can be used for multiple purposes. Here are some examples:
FenceBlockuses it to update the fence's connection when a horizontally neighboring block's state is changed.PlantBlockuses it to break the plant if the state change causes it to lose its supporting block.DoorBlockuses it to copy the state of the other half of the door.SlabBlockuses it to schedule the fluid to tick if waterlogged.SoulSandBlockuses it to schedule the water block above to tick so that it becomes a bubble column.FallingBlockuses it to schedule the block to tick so that it can fall if needed.
- Overrides:
getStateForNeighborUpdatein classAbstractBlock- Parameters:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- Returns:
- the state of the block after a neighboring block's state change
- See Also:
- Mappings:
Namespace Name Mixin selector named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official aLdtb;a(Ldtc;Lji;Ldtc;Ldcx;Ljd;Ljd;)Ldtc;
-
getStairShape
- Mappings:
Namespace Name Mixin selector named getStairShapeLnet/minecraft/block/StairsBlock;getStairShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/enums/StairShape;intermediary method_10675Lnet/minecraft/class_2510;method_10675(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2778;official iLdnt;i(Ldtc;Ldcc;Ljd;)Ldul;
-
isDifferentOrientation
private static boolean isDifferentOrientation(BlockState state, BlockView world, BlockPos pos, Direction dir) - Mappings:
Namespace Name Mixin selector named isDifferentOrientationLnet/minecraft/block/StairsBlock;isDifferentOrientation(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Zintermediary method_10678Lnet/minecraft/class_2510;method_10678(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Zofficial cLdnt;c(Ldtc;Ldcc;Ljd;Lji;)Z
-
isStairs
- Mappings:
Namespace Name Mixin selector named isStairsLnet/minecraft/block/StairsBlock;isStairs(Lnet/minecraft/block/BlockState;)Zintermediary method_10676Lnet/minecraft/class_2510;method_10676(Lnet/minecraft/class_2680;)Zofficial mLdnt;m(Ldtc;)Z
-
rotate
Returnsstaterotated byrotation.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
staterotated byrotation- See Also:
- Mappings:
Namespace Name Mixin selector named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;official aLdtb;a(Ldtc;Ldmm;)Ldtc;
-
mirror
Returnsstatemirrored bymirror.By default, this returns the provided block state.
- Overrides:
mirrorin classAbstractBlock- Returns:
statemirrored bymirror- See Also:
- Mappings:
Namespace Name Mixin selector named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;official aLdtb;a(Ldtc;Ldkv;)Ldtc;
-
appendProperties
Appends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector named appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLdfy;a(Ldtd$a;)V
-
getFluidState
Returns the state's associated fluid state.Waterloggable blocks must override this to return
Fluids.WATER.getStill(false)when waterlogged.- Overrides:
getFluidStatein classAbstractBlock- Returns:
- the state's associated fluid state
- See Also:
- Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;official b_Ldtb;b_(Ldtc;)Lepe;
-