Package net.minecraft.block
Class SlabBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.SlabBlock
- Direct Known Subclasses:
RedSandstoneSlabBlock,StoneSlabBlock,WoodSlabBlock
public abstract class SlabBlock extends Block
- Mappings:
Namespace Name official ahhintermediary net/minecraft/class_226named net/minecraft/block/SlabBlock
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlabBlock.SlabTypeNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description static EnumProperty<SlabBlock.SlabType>HALDFields inherited from class net.minecraft.block.Block
ANVIL, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, resistance, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, strength, transluscent, useNeighbourLight, WOOD -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidappendCollisionBoxes(World world, BlockPos pos, BlockState state, Box box, List<Box> list, Entity entity)intgetDropCount(Random rand)Returns the amount of items the block should drop on breaking without bonus rolls.intgetMeta(World world, BlockPos pos)Returns metadata from a world and a BlockPosBlockStategetStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity)Returns a BlockState from an idbooleanhasTransperancy()abstract booleanisDoubleSlab()booleanisSideInvisible(WorldView view, BlockPos pos, Direction facing)Returns whether the current block has connected sides, i.e its side faces are invisible when covered by other blocks.abstract Objectmethod_874(ItemStack itemStack)abstract Stringmethod_875(int int2)protected static booleanmethod_876(Block block)abstract Property<?>method_878()booleanrenderAsNormalBlock()Returns whether the block can be rendered as a normal blockprotected booleanrequiresSilkTouch()voidsetBlockItemBounds()Sets the bounds for the BlockItemvoidsetBoundingBox(WorldView view, BlockPos pos)Methods inherited from class net.minecraft.block.Block
appendItemStacks, appendProperties, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBePlacedAtPos, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getCollisionBox, getColor, getColor, getComparatorOutput, getData, getDefaultState, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, 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_655, method_696, neighborUpdate, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, scheduledTick, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, stateFromData, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
HALD
- Mappings:
Namespace Name Mixin selector official aLahh;a:Lamm;intermediary field_976Lnet/minecraft/class_226;field_976:Lnet/minecraft/class_390;named HALDLnet/minecraft/block/SlabBlock;HALD:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
SlabBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Lafh;<init>(Larm;)Vintermediary <init>Lnet/minecraft/class_160;<init>(Lnet/minecraft/class_591;)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 ILafh;I()Zintermediary method_623Lnet/minecraft/class_160;method_623()Znamed requiresSilkTouchLnet/minecraft/block/Block;requiresSilkTouch()Z
-
setBoundingBox
- Overrides:
setBoundingBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;)Vintermediary method_665Lnet/minecraft/class_160;method_665(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Vnamed setBoundingBoxLnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)V
-
setBlockItemBounds
public void setBlockItemBounds()Sets the bounds for the BlockItem- Overrides:
setBlockItemBoundsin classBlock- Mappings:
Namespace Name Mixin selector official jLafh;j()Vintermediary method_725Lnet/minecraft/class_160;method_725()Vnamed setBlockItemBoundsLnet/minecraft/block/Block;setBlockItemBounds()V
-
appendCollisionBoxes
public void appendCollisionBoxes(World world, BlockPos pos, BlockState state, Box box, List<Box> list, Entity entity)- Overrides:
appendCollisionBoxesin classBlock- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;Laug;Ljava/util/List;Lpk;)Vintermediary method_649Lnet/minecraft/class_160;method_649(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_646;Ljava/util/List;Lnet/minecraft/class_1745;)Vnamed appendCollisionBoxesLnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;)V
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_699Lnet/minecraft/class_160;method_699()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()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 aLafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;intermediary method_656Lnet/minecraft/class_160;method_656(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;FFFILnet/minecraft/class_1752;)Lnet/minecraft/class_376;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 aLafh;a(Ljava/util/Random;)Iintermediary method_677Lnet/minecraft/class_160;method_677(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLafh;d()Zintermediary method_709Lnet/minecraft/class_160;method_709()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
isSideInvisible
@Environment(CLIENT) public boolean isSideInvisible(WorldView view, BlockPos pos, Direction facing)Returns whether the current block has connected sides, i.e its side faces are invisible when covered by other blocks. Used by glass to prevent the white dots from appearing everywhere through adjacent glass blocks.- Overrides:
isSideInvisiblein classBlock- Parameters:
view- WorldView instancepos- The current block's positionfacing- The direction the block is facing- Returns:
- Whether the current block has connected sides
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladq;Lcj;Lcq;)Zintermediary method_668Lnet/minecraft/class_160;method_668(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Znamed isSideInvisibleLnet/minecraft/block/Block;isSideInvisible(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_876
- Mappings:
Namespace Name Mixin selector official cLahh;c(Lafh;)Zintermediary method_876Lnet/minecraft/class_226;method_876(Lnet/minecraft/class_160;)Znamed method_876Lnet/minecraft/block/SlabBlock;method_876(Lnet/minecraft/block/Block;)Z
-
method_875
- Mappings:
Namespace Name Mixin selector official bLahh;b(I)Ljava/lang/String;intermediary method_875Lnet/minecraft/class_226;method_875(I)Ljava/lang/String;named method_875Lnet/minecraft/block/SlabBlock;method_875(I)Ljava/lang/String;
-
getMeta
Returns metadata from a world and a BlockPos- Overrides:
getMetain classBlock- Parameters:
world- The world that the block is placed inpos- The block's position- Returns:
- Metadata
- Mappings:
Namespace Name Mixin selector official jLafh;j(Ladm;Lcj;)Iintermediary method_726Lnet/minecraft/class_160;method_726(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
isDoubleSlab
public abstract boolean isDoubleSlab()- Mappings:
Namespace Name Mixin selector official lLahh;l()Zintermediary method_877Lnet/minecraft/class_226;method_877()Znamed isDoubleSlabLnet/minecraft/block/SlabBlock;isDoubleSlab()Z
-
method_878
- Mappings:
Namespace Name Mixin selector official nLahh;n()Lamo;intermediary method_878Lnet/minecraft/class_226;method_878()Lnet/minecraft/class_392;named method_878Lnet/minecraft/block/SlabBlock;method_878()Lnet/minecraft/state/property/Property;
-
method_874
- Mappings:
Namespace Name Mixin selector official aLahh;a(Lzx;)Ljava/lang/Object;intermediary method_874Lnet/minecraft/class_226;method_874(Lnet/minecraft/class_2056;)Ljava/lang/Object;named method_874Lnet/minecraft/block/SlabBlock;method_874(Lnet/minecraft/item/ItemStack;)Ljava/lang/Object;
-