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_143
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_9472 Lnet/minecraft/class_143;field_9472:Lnet/minecraft/class_2245;
      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_197;<init>(Lnet/minecraft/class_63;)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_475 Lnet/minecraft/class_197;method_475()Z
      named requiresSilkTouch Lnet/minecraft/block/Block;requiresSilkTouch()Z
    • setBoundingBox

      public void setBoundingBox(BlockView view, BlockPos pos)
      Overrides:
      setBoundingBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Ladq;Lcj;)V
      intermediary method_8652 Lnet/minecraft/class_197;method_8652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)V
      named setBoundingBox Lnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/BlockView;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_456 Lnet/minecraft/class_197;method_456()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_8642 Lnet/minecraft/class_197;method_8642(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_231;Ljava/util/List;Lnet/minecraft/class_864;)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_449 Lnet/minecraft/class_197;method_449()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_8645 Lnet/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 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_403 Lnet/minecraft/class_197;method_403(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_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • isSideInvisible

      @Environment(CLIENT) public boolean isSideInvisible(BlockView 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 - BlockView 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_8654 Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Z
      named isSideInvisible Lnet/minecraft/block/Block;isSideInvisible(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
    • method_6490

      @Environment(CLIENT) protected static boolean method_6490(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lahh;c(Lafh;)Z
      intermediary method_6490 Lnet/minecraft/class_143;method_6490(Lnet/minecraft/class_197;)Z
      named method_6490 Lnet/minecraft/block/SlabBlock;method_6490(Lnet/minecraft/block/Block;)Z
    • method_323

      public abstract String method_323(int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Lahh;b(I)Ljava/lang/String;
      intermediary method_323 Lnet/minecraft/class_143;method_323(I)Ljava/lang/String;
      named method_323 Lnet/minecraft/block/SlabBlock;method_323(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_8683 Lnet/minecraft/class_197;method_8683(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)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_8794 Lnet/minecraft/class_143;method_8794()Z
      named isDoubleSlab Lnet/minecraft/block/SlabBlock;isDoubleSlab()Z
    • method_8795

      public abstract Property<?> method_8795()
      Mappings:
      Namespace Name Mixin selector
      official n Lahh;n()Lamo;
      intermediary method_8795 Lnet/minecraft/class_143;method_8795()Lnet/minecraft/class_2247;
      named method_8795 Lnet/minecraft/block/SlabBlock;method_8795()Lnet/minecraft/state/property/Property;
    • method_8793

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