Package net.minecraft.block
Class PurpurSlab
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.SlabBlock
net.minecraft.block.PurpurSlab
- Direct Known Subclasses:
PurpurSlab.Double,PurpurSlab.Single
- Mappings:
Namespace Name official anrintermediary net/minecraft/class_2729named net/minecraft/block/PurpurSlab
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classNested classes/interfaces inherited from class net.minecraft.block.SlabBlock
SlabBlock.SlabTypeNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields 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 brokenComparable<?>method_11615(ItemStack itemStack) 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, appendItemStacks, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getDefaultState, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isLeafBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11575, method_11576, method_11577, method_414, method_421, method_435, method_8638, method_8641, method_8651, method_8653, method_8664, method_8669, onBlockBreak, onBlockBreakStart, 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, useNeighbourLight, withMirror, withRotation
-
Field Details
-
field_12723
- Mappings:
Namespace Name Mixin selector official dLanr;d:Larq;intermediary field_12723Lnet/minecraft/class_2729;field_12723:Lnet/minecraft/class_2245;named field_12723Lnet/minecraft/block/PurpurSlab;field_12723:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
PurpurSlab
public PurpurSlab()
-
-
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 aLajt;a(Lard;Ljava/util/Random;I)Lado;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 aLajt;a(Laht;Lcl;Lard;)Ladq;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;
-
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 aLajt;a(I)Lard;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 eLajt;e(Lard;)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 bLajt;b()Lare;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
method_323
- Specified by:
method_323in classSlabBlock- Mappings:
Namespace Name Mixin selector official eLalz;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 gLalz;g()Lars;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 aLalz;a(Ladq;)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;
-