Class BlockHalfSlab

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockHalfSlab
Direct Known Subclasses:
BlockStep, BlockWoodSlab, CobblestoneSlabBlock, SmoothStoneSlabBlock, StoneBrickSlabBlock, WoodSlabBlock

public abstract class BlockHalfSlab extends Block
  • Field Details

    • isDoubleSlab

      protected final boolean isDoubleSlab
  • Constructor Details

    • BlockHalfSlab

      public BlockHalfSlab(int par1, boolean par2, Material par3Material)
  • Method Details

    • isOpaqueCube

      public boolean isOpaqueCube()
      // +++START EDIT+++ // ---END EDIT--- Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
      Overrides:
      isOpaqueCube in class Block
    • onBlockPlaced

      public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
      Called when a block is placed using its ItemBlock. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata
      Overrides:
      onBlockPlaced in class Block
    • quantityDropped

      public int quantityDropped(Random par1Random)
      Returns the quantity of items to drop on block destruction.
      Overrides:
      quantityDropped in class Block
    • damageDropped

      public int damageDropped(int par1)
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
      Overrides:
      renderAsNormalBlock in class Block
    • getFullSlabName

      public abstract String getFullSlabName(int var1)
      Returns the slab block name with step type.
    • getDamageValue

      public int getDamageValue(World par1World, int par2, int par3, int par4)
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue in class Block
    • idPicked

      public int idPicked(World par1World, int par2, int par3, int par4)
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
      Overrides:
      idPicked in class Block
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class Block
    • hasLargeCenterHardPointToFacing

      public boolean hasLargeCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      large attachment points that can support a full block width
      Overrides:
      hasLargeCenterHardPointToFacing in class Block
    • groundCoverRestingOnVisualOffset

      public float groundCoverRestingOnVisualOffset(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      groundCoverRestingOnVisualOffset in class Block
    • canGroundCoverRestOnBlock

      public boolean canGroundCoverRestOnBlock(World world, int i, int j, int k)
      Overrides:
      canGroundCoverRestOnBlock in class Block
    • canMobsSpawnOn

      public boolean canMobsSpawnOn(World world, int i, int j, int k)
      Description copied from class: Block
      This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.
      Overrides:
      canMobsSpawnOn in class Block
    • mobSpawnOnVerticalOffset

      public float mobSpawnOnVerticalOffset(World world, int i, int j, int k)
      Overrides:
      mobSpawnOnVerticalOffset in class Block
    • canSilkHarvest

      protected boolean canSilkHarvest()
      Description copied from class: Block
      Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
      Overrides:
      canSilkHarvest in class Block
    • getIsUpsideDown

      public boolean getIsUpsideDown(IBlockAccess blockAccess, int i, int j, int k)
    • getIsUpsideDown

      public boolean getIsUpsideDown(int iMetadata)
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Overrides:
      shouldSideBeRendered in class Block
    • shouldRenderNeighborHalfSlabSide

      @Environment(CLIENT) public boolean shouldRenderNeighborHalfSlabSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSlabSide, boolean bNeighborUpsideDown)
      Overrides:
      shouldRenderNeighborHalfSlabSide in class Block
    • shouldRenderNeighborFullFaceSide

      @Environment(CLIENT) public boolean shouldRenderNeighborFullFaceSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSide)
      Overrides:
      shouldRenderNeighborFullFaceSide in class Block