Class BlockWall

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockWall
Direct Known Subclasses:
WallBlock

public class BlockWall extends Block
  • Field Details

    • types

      public static final String[] types
      The types of the wall.
  • Constructor Details

    • BlockWall

      public BlockWall(int par1, Block par2Block)
  • Method Details

    • getBlocksMovement

      public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Description copied from class: Block
      FCNOTE: This is misnamed and returns true if the block *doesn't* block movement
      Overrides:
      getBlocksMovement 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
    • canConnectWallTo

      public boolean canConnectWallTo(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
      Return whether an adjacent block can connect to a wall.
    • hasCenterHardPointToFacing

      public boolean hasCenterHardPointToFacing(IBlockAccess blockAccess, int i, int j, int k, int iFacing, boolean bIgnoreTransparency)
      Description copied from class: Block
      medium sized attachment points like the top of fence posts (approx 1/4 block width)
      Overrides:
      hasCenterHardPointToFacing in class Block
    • getWeightOnPathBlocked

      public int getWeightOnPathBlocked(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      getWeightOnPathBlocked in class Block
    • idDropped

      public int idDropped(int iMetadata, Random rand, int iFortuneModifier)
      Description copied from class: Block
      Returns the ID of the items to drop on destruction.
      Overrides:
      idDropped in class Block
    • damageDropped

      public int damageDropped(int iMetadata)
      Description copied from class: Block
      Determines the damage on the item the block drops. Used in cloth and wood.
      Overrides:
      damageDropped in class Block
    • dropBlockAsItemWithChance

      public void dropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier)
      Description copied from class: Block
      Drops the block items with a specified chance of dropping the specified items
      Overrides:
      dropBlockAsItemWithChance in class Block
    • canGroundCoverRestOnBlock

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

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

      public void setBlockBoundsBasedOnState(IBlockAccess blockAccess, int i, int j, int k)
      Description copied from class: Block
      FCNOTE: DEPRECATED
      Overrides:
      setBlockBoundsBasedOnState in class Block
    • getBlockBoundsFromPoolBasedOnState

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int x, int y, int z)
      Overrides:
      getBlockBoundsFromPoolBasedOnState in class Block
    • addCollisionBoxesToList

      public void addCollisionBoxesToList(World world, int x, int y, int z, AxisAlignedBB aabb, List collisionList, Entity entity)
      Description copied from class: Block
      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 // +++START EDIT+++ FCNOTE: The "mask" referred to above is just the bounding box to check for intersection with // ---END EDIT---
      Overrides:
      addCollisionBoxesToList in class Block
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
      Overrides:
      getCollisionBoundingBoxFromPool in class Block
    • collisionRayTrace

      public MovingObjectPosition collisionRayTrace(World world, int x, int y, int z, Vec3 var5, Vec3 var6)
      Overrides:
      collisionRayTrace in class Block
    • isWall

      public boolean isWall(int metadata)
      Overrides:
      isWall in class Block
    • getStepSoundInternal

      protected StepSound getStepSoundInternal(World world, int meta)
      Overrides:
      getStepSoundInternal in class Block
    • shouldPaneConnectToThisBlockToFacing

      public boolean shouldPaneConnectToThisBlockToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing)
      Overrides:
      shouldPaneConnectToThisBlockToFacing in class Block
    • getStoneType

      public int getStoneType(int metadata)
      normal mossy
    • getStrata

      public int getStrata(IBlockAccess blockAccess, int i, int j, int k)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • getStrata

      public int getStrata(int iMetadata)
      returns 0 - 2 regardless of what metadata is used to store strata. BEWARE: different blocks store strata differently
    • canConnectToBlockToFacing

      public static boolean canConnectToBlockToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing)
    • wallHasPost

      public static boolean wallHasPost(IBlockAccess blockAccess, int x, int y, int z, boolean checkAbove, boolean checkBelow)
    • shouldHaveFullHeightWallToFacing

      public static boolean shouldHaveFullHeightWallToFacing(IBlockAccess blockAccess, int x, int y, int z, int facing)
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks render, int x, int y, int z)
      Overrides:
      renderBlock in class Block
    • renderWall

      @Environment(CLIENT) public static boolean renderWall(RenderBlocks render, Block block, int x, int y, int z)
    • shouldSideBeRendered

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

      public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
      Description copied from class: Block
      returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
      Overrides:
      getSubBlocks in class Block
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int side, int metadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon 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
    • getRenderType

      public int getRenderType()
      The type of render function that is called for this block
      Overrides:
      getRenderType 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