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 ahh
intermediary net/minecraft/class_226
named net/minecraft/block/SlabBlock
  • Field Details

    • HALD

      public static final EnumProperty<SlabBlock.SlabType> HALD
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a:Lamm;
      intermediary field_976 Lnet/minecraft/class_226;field_976:Lnet/minecraft/class_390;
      named HALD Lnet/minecraft/block/SlabBlock;HALD:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • SlabBlock

      public SlabBlock​(Material material)
      Parameters:
      material - The block's material
      Mappings:
      Namespace Name Mixin selector
      official <init> Lafh;<init>(Larm;)V
      intermediary <init> Lnet/minecraft/class_160;<init>(Lnet/minecraft/class_591;)V
      named <init> Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
  • Method Details

    • requiresSilkTouch

      protected boolean requiresSilkTouch()
      Overrides:
      requiresSilkTouch in class Block
      Mappings:
      Namespace Name Mixin selector
      official I Lafh;I()Z
      intermediary method_623 Lnet/minecraft/class_160;method_623()Z
      named requiresSilkTouch Lnet/minecraft/block/Block;requiresSilkTouch()Z
    • setBoundingBox

      public void setBoundingBox​(WorldView view, BlockPos pos)
      Overrides:
      setBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;)V
      intermediary method_665 Lnet/minecraft/class_160;method_665(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)V
      named setBoundingBox Lnet/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:
      setBlockItemBounds in class Block
      Mappings:
      Namespace Name Mixin selector
      official j Lafh;j()V
      intermediary method_725 Lnet/minecraft/class_160;method_725()V
      named setBlockItemBounds Lnet/minecraft/block/Block;setBlockItemBounds()V
    • appendCollisionBoxes

      public void appendCollisionBoxes​(World world, BlockPos pos, BlockState state, Box box, List<Box> list, Entity entity)
      Overrides:
      appendCollisionBoxes in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lalz;Laug;Ljava/util/List;Lpk;)V
      intermediary method_649 Lnet/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;)V
      named appendCollisionBoxes Lnet/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:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lafh;c()Z
      intermediary method_699 Lnet/minecraft/class_160;method_699()Z
      named hasTransperancy Lnet/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:
      getStateFromData in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      dir - The block's direction
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladm;Lcj;Lcq;FFFILpr;)Lalz;
      intermediary method_656 Lnet/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 getStateFromData Lnet/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

      public int getDropCount​(Random rand)
      Returns the amount of items the block should drop on breaking without bonus rolls.
      Overrides:
      getDropCount in class Block
      Parameters:
      rand - Random object
      Returns:
      Amount of items to be dropped
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ljava/util/Random;)I
      intermediary method_677 Lnet/minecraft/class_160;method_677(Ljava/util/Random;)I
      named getDropCount Lnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Lafh;d()Z
      intermediary method_709 Lnet/minecraft/class_160;method_709()Z
      named renderAsNormalBlock Lnet/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:
      isSideInvisible in class Block
      Parameters:
      view - WorldView instance
      pos - The current block's position
      facing - The direction the block is facing
      Returns:
      Whether the current block has connected sides
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;Lcq;)Z
      intermediary method_668 Lnet/minecraft/class_160;method_668(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)Z
      named isSideInvisible Lnet/minecraft/block/Block;isSideInvisible(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_876

      @Environment(CLIENT) protected static boolean method_876​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lahh;c(Lafh;)Z
      intermediary method_876 Lnet/minecraft/class_226;method_876(Lnet/minecraft/class_160;)Z
      named method_876 Lnet/minecraft/block/SlabBlock;method_876(Lnet/minecraft/block/Block;)Z
    • method_875

      public abstract String method_875​(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lahh;b(I)Ljava/lang/String;
      intermediary method_875 Lnet/minecraft/class_226;method_875(I)Ljava/lang/String;
      named method_875 Lnet/minecraft/block/SlabBlock;method_875(I)Ljava/lang/String;
    • getMeta

      public int getMeta​(World world, BlockPos pos)
      Returns metadata from a world and a BlockPos
      Overrides:
      getMeta in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      Returns:
      Metadata
      Mappings:
      Namespace Name Mixin selector
      official j Lafh;j(Ladm;Lcj;)I
      intermediary method_726 Lnet/minecraft/class_160;method_726(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)I
      named getMeta Lnet/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 l Lahh;l()Z
      intermediary method_877 Lnet/minecraft/class_226;method_877()Z
      named isDoubleSlab Lnet/minecraft/block/SlabBlock;isDoubleSlab()Z
    • method_878

      public abstract Property<?> method_878()
      Mappings:
      Namespace Name Mixin selector
      official n Lahh;n()Lamo;
      intermediary method_878 Lnet/minecraft/class_226;method_878()Lnet/minecraft/class_392;
      named method_878 Lnet/minecraft/block/SlabBlock;method_878()Lnet/minecraft/state/property/Property;
    • method_874

      public abstract Object method_874​(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a(Lzx;)Ljava/lang/Object;
      intermediary method_874 Lnet/minecraft/class_226;method_874(Lnet/minecraft/class_2056;)Ljava/lang/Object;
      named method_874 Lnet/minecraft/block/SlabBlock;method_874(Lnet/minecraft/item/ItemStack;)Ljava/lang/Object;