Package net.minecraft.block
Class WoodSlabBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.SlabBlock
net.minecraft.block.WoodSlabBlock
- Direct Known Subclasses:
DoubleWoodSlabBlock,SingleWoodSlabBlock
- Mappings:
Namespace Name official bcfintermediary net/minecraft/class_212named net/minecraft/block/WoodSlabBlock
-
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_483, field_484, field_486, field_487, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, field_9285, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, soundGroup, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List stacks) Appends ItemStacks to an itemgroup.protected 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 brokenintgetMeta(BlockState state) Returns the metadata value for a certain BlockStategetPickItem(World world, BlockPos pos) Called when a player presses the pick block key while facing the block.method_323(int int2) method_8793(ItemStack itemStack) stateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.SlabBlock
appendCollisionBoxes, getDropCount, getMeta, getStateFromData, hasTransperancy, isDoubleSlab, isSideInvisible, method_6490, renderAsNormalBlock, requiresSilkTouch, setBlockItemBounds, setBoundingBoxMethods inherited from class net.minecraft.block.Block
areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getColor, getColor, getComparatorOutput, getDefaultState, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getOpacity, getPistonInteractionType, getRenderLayerType, getSelectionBox, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isTransluscent, method_414, method_8634, method_8666, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, scheduledTick, setBlockSoundGroup, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
VARIANT
- Mappings:
Namespace Name Mixin selector official bLbcf;b:Lbev;intermediary field_9794Lnet/minecraft/class_212;field_9794:Lnet/minecraft/class_2245;named VARIANTLnet/minecraft/block/WoodSlabBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
WoodSlabBlock
public WoodSlabBlock()
-
-
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 aLatr;a(Lbec;Ljava/util/Random;I)Lalq;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;
-
getPickItem
Called when a player presses the pick block key while facing the block. It returns the item that must be placed into the player's inventory.- Overrides:
getPickItemin classBlock- Returns:
- The Item that must be placed into the player's inventory
- Mappings:
Namespace Name Mixin selector official bLatr;b(Laqu;Ldt;)Lalq;intermediary method_8667Lnet/minecraft/class_197;method_8667(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_1069;named getPickItemLnet/minecraft/block/Block;getPickItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/item/Item;
-
method_323
- Specified by:
method_323in classSlabBlock- Mappings:
Namespace Name Mixin selector official bLawq;b(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 lLawq;l()Lbex;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_8793
- Specified by:
method_8793in classSlabBlock- Mappings:
Namespace Name Mixin selector official aLawq;a(Lamj;)Ljava/lang/Object;intermediary method_8793Lnet/minecraft/class_143;method_8793(Lnet/minecraft/class_1071;)Ljava/lang/Object;named method_8793Lnet/minecraft/block/SlabBlock;method_8793(Lnet/minecraft/item/ItemStack;)Ljava/lang/Object;
-
appendItemStacks
Appends ItemStacks to an itemgroup. Only called on the client.- Overrides:
appendItemStacksin classBlock- Parameters:
item- The Item that must be addedgroup- The ItemGroup that the item must be added tostacks- The list of currently added ItemStacks to the ItemGroup- Mappings:
Namespace Name Mixin selector official aLatr;a(Lalq;Lakf;Ljava/util/List;)Vintermediary method_399Lnet/minecraft/class_197;method_399(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)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 aLatr;a(I)Lbec;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 cLatr;c(Lbec;)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 eLatr;e()Lbed;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 aLatr;a(Lbec;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-