Class BlockPane

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockPane
Direct Known Subclasses:
PaneBlock

public class BlockPane extends Block
  • Constructor Details

    • BlockPane

      protected BlockPane(int par1, String par2Str, String par3Str, Material par4Material, boolean par5)
  • Method Details

    • idDropped

      public int idDropped(int par1, Random par2Random, int par3)
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • isOpaqueCube

      public boolean isOpaqueCube()
      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
    • 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
    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType in class Block
    • shouldSideBeRendered

      public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
      Returns true if the given side of this block type should be rendered, if the adjacent block is at the given coordinates. Args: blockAccess, x, y, z, side
      Overrides:
      shouldSideBeRendered in class Block
    • addCollisionBoxesToList

      public void addCollisionBoxesToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
      Adds all intersecting collision boxes to a list. (Be sure to only add boxes to the list if they intersect the mask.) Parameters: World, X, Y, Z, mask, list, colliding entity
      Overrides:
      addCollisionBoxesToList in class Block
    • setBlockBoundsForItemRender

      public void setBlockBoundsForItemRender()
      Sets the block's bounds for rendering it as an item
      Overrides:
      setBlockBoundsForItemRender in class Block
    • setBlockBoundsBasedOnState

      public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Updates the blocks bounds based on its current state. Args: world, x, y, z
      Overrides:
      setBlockBoundsBasedOnState in class Block
    • getSideTextureIndex

      public Icon getSideTextureIndex()
      Returns the texture index of the thin side of the pane.
    • canThisPaneConnectToThisBlockID

      public final boolean canThisPaneConnectToThisBlockID(int par1)
      Gets passed in the blockID of the block adjacent and supposed to return true if its allowed to connect to the type of blockID passed in. Args: blockID
    • canSilkHarvest

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

      protected ItemStack createStackedBlock(int par1)
      Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null.
      Overrides:
      createStackedBlock in class Block
    • registerIcons

      public void registerIcons(IconRegister par1IconRegister)
      When this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.
      Overrides:
      registerIcons in class Block