Package net.minecraft.block
Class StoneSlabBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.SlabBlock
net.minecraft.block.StoneSlabBlock
- Direct Known Subclasses:
DoubleStoneSlabBlock,SingleStoneSlabBlock
- Mappings:
Namespace Name official arfintermediary net/minecraft/class_191named net/minecraft/block/StoneSlabBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final EnumProperty<StoneSlabBlock.SlabType>Fields inherited from class net.minecraft.block.SlabBlock
field_12683, field_12684, HALDFields 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 TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokengetMaterialColor(BlockState state) Returns the block's material color from it's state Blockstates can have different material colorsintgetMeta(BlockState state) Returns the metadata value for a certain BlockStateComparable<?>method_11615(ItemStack itemStack) voidmethod_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) method_323(int int2) method_8640(World world, BlockPos blockPos, BlockState blockState) Property<?>stateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.SlabBlock
getCollisionBox, getDropCount, getStateFromData, isDoubleSlab, isFullBoundsCubeForCulling, method_11562, method_11568, method_11616, method_8654, requiresSilkTouchMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11575, method_11576, method_11577, method_13315, method_13701, method_13702, method_13703, method_13704, method_414, method_435, method_8638, method_8640, method_8651, method_8653, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreak, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, use, useNeighbourLight, withMirror, withRotation
-
Field Details
-
SEAMLESS
- Mappings:
Namespace Name Mixin selector official dLarf;d:Latx;intermediary field_9720Lnet/minecraft/class_191;field_9720:Lnet/minecraft/class_2243;named SEAMLESSLnet/minecraft/block/StoneSlabBlock;SEAMLESS:Lnet/minecraft/state/property/BooleanProperty;
-
VARIANT
- Mappings:
Namespace Name Mixin selector official eLarf;e:Latz;intermediary field_9719Lnet/minecraft/class_191;field_9719:Lnet/minecraft/class_2245;named VARIANTLnet/minecraft/block/StoneSlabBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
StoneSlabBlock
public StoneSlabBlock()
-
-
Method Details
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Ljava/util/Random;I)Lafh;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;)Lafj;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
method_323
- Specified by:
method_323in classSlabBlock- Mappings:
Namespace Name Mixin selector official eLaob;e(I)Ljava/lang/String;intermediary method_323Lnet/minecraft/class_143;method_323(I)Ljava/lang/String;named method_323Lnet/minecraft/block/SlabBlock;method_323(I)Ljava/lang/String;
-
method_8795
- Specified by:
method_8795in classSlabBlock- Mappings:
Namespace Name Mixin selector official gLaob;g()Laub;intermediary method_8795Lnet/minecraft/class_143;method_8795()Lnet/minecraft/class_2247;named method_8795Lnet/minecraft/block/SlabBlock;method_8795()Lnet/minecraft/state/property/Property;
-
method_11615
- Specified by:
method_11615in classSlabBlock- Mappings:
Namespace Name Mixin selector official aLaob;a(Lafj;)Ljava/lang/Comparable;intermediary method_11615Lnet/minecraft/class_143;method_11615(Lnet/minecraft/class_1071;)Ljava/lang/Comparable;named method_11615Lnet/minecraft/block/SlabBlock;method_11615(Lnet/minecraft/item/ItemStack;)Ljava/lang/Comparable;
-
method_13700
@Environment(CLIENT) public void method_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) - Overrides:
method_13700in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lafh;Laej;Ldd;)Vintermediary method_13700Lnet/minecraft/class_197;method_13700(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed method_13700Lnet/minecraft/block/Block;method_13700(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
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 aLalu;a(I)Latl;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 eLalu;e(Latl;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLalu;b()Latm;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
getMeta
Returns the metadata value for a certain BlockState- Overrides:
getMetain classBlock- Parameters:
state- The BlockState- Returns:
- Metadata value
- Mappings:
Namespace Name Mixin selector official dLalu;d(Latl;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
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 rLalu;r(Latl;)Lazt;intermediary method_8680Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;)Lnet/minecraft/class_65;named getMaterialColorLnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/MaterialColor;
-