Package net.minecraft.block
Class SlabBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.SlabBlock
- Direct Known Subclasses:
PurpurSlab,RedSandstoneSlabBlock,StoneSlabBlock,WoodSlabBlock
- Mappings:
Namespace Name official alzintermediary net/minecraft/class_143named net/minecraft/block/SlabBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Boxprotected static final Boxstatic final EnumProperty<SlabBlock.SlabType>Fields 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 TypeMethodDescriptiongetCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idabstract booleanbooleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) booleanmethod_11568(BlockState state) abstract Comparable<?>method_11615(ItemStack itemStack) protected static booleanmethod_11616(BlockState blockState) abstract Stringmethod_323(int int2) booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) abstract Property<?>protected booleanMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getData, getDefaultState, getDropItem, 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_8640, 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, stateFromData, ticksRandomly, toString, useNeighbourLight, withMirror, withRotation
-
Field Details
-
HALD
- Mappings:
Namespace Name Mixin selector official aLalz;a:Larq;intermediary field_9472Lnet/minecraft/class_143;field_9472:Lnet/minecraft/class_2245;named HALDLnet/minecraft/block/SlabBlock;HALD:Lnet/minecraft/state/property/EnumProperty;
-
field_12683
- Mappings:
Namespace Name Mixin selector official bLalz;b:Lbbf;intermediary field_12683Lnet/minecraft/class_143;field_12683:Lnet/minecraft/class_231;named field_12683Lnet/minecraft/block/SlabBlock;field_12683:Lnet/minecraft/util/math/Box;
-
field_12684
- Mappings:
Namespace Name Mixin selector official cLalz;c:Lbbf;intermediary field_12684Lnet/minecraft/class_143;field_12684:Lnet/minecraft/class_231;named field_12684Lnet/minecraft/block/SlabBlock;field_12684:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
SlabBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Lajt;<init>(Laxe;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
-
-
Method Details
-
requiresSilkTouch
protected boolean requiresSilkTouch()- Overrides:
requiresSilkTouchin classBlock- Mappings:
Namespace Name Mixin selector official oLajt;o()Zintermediary method_475Lnet/minecraft/class_197;method_475()Znamed requiresSilkTouchLnet/minecraft/block/Block;requiresSilkTouch()Z
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;)Lbbf;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
method_11568
- Overrides:
method_11568in classBlock- Mappings:
Namespace Name Mixin selector official kLajt;k(Lard;)Zintermediary method_11568Lnet/minecraft/class_197;method_11568(Lnet/minecraft/class_2232;)Znamed method_11568Lnet/minecraft/block/Block;method_11568(Lnet/minecraft/block/BlockState;)Z
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
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 aLajt;a(Laht;Lcl;Lcs;FFFILsa;)Lard;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;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;
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLajt;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
method_8654
@Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) - Overrides:
method_8654in classBlock- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;Lcs;)Zintermediary method_8654Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8654Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_11616
- Mappings:
Namespace Name Mixin selector official iLalz;i(Lard;)Zintermediary method_11616Lnet/minecraft/class_143;method_11616(Lnet/minecraft/class_2232;)Znamed method_11616Lnet/minecraft/block/SlabBlock;method_11616(Lnet/minecraft/block/BlockState;)Z
-
method_323
- 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;
-
isDoubleSlab
public abstract boolean isDoubleSlab()- Mappings:
Namespace Name Mixin selector official eLalz;e()Zintermediary method_8794Lnet/minecraft/class_143;method_8794()Znamed isDoubleSlabLnet/minecraft/block/SlabBlock;isDoubleSlab()Z
-
method_8795
- 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
- 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;
-