Class BlockWeb

java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockWeb

public class BlockWeb extends Block
  • Constructor Details

    • BlockWeb

      public BlockWeb(int par1)
  • Method Details

    • onEntityCollidedWithBlock

      public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
      Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
      Overrides:
      onEntityCollidedWithBlock 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
    • getCollisionBoundingBoxFromPool

      public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
      Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been cleared to be reused)
      Overrides:
      getCollisionBoundingBoxFromPool 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
    • 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
    • harvestBlock

      public void harvestBlock(World world, EntityPlayer player, int i, int j, int k, int iMetadata)
      Description copied from class: Block
      Called when the player destroys a block with an item that can harvest it. (i, j, k) are the coordinates of the block and l is the block's subtype/damage. // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      harvestBlock in class Block
    • getEfficientToolLevel

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

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

      public boolean canConvertBlock(ItemStack stack, World world, int i, int j, int k)
      Overrides:
      canConvertBlock in class Block
    • convertBlock

      public boolean convertBlock(ItemStack stack, World world, int i, int j, int k, int iFromSide)
      Description copied from class: Block
      Returns false if the block has not been replaced with another, and should be removed
      Overrides:
      convertBlock in class Block
    • setDamageLevel

      public void setDamageLevel(World world, int i, int j, int k, int iDamageLevel)
    • setDamageLevel

      public int setDamageLevel(int iMetadata, int iDamageLevel)
    • getDamageLevel

      public int getDamageLevel(IBlockAccess blockAccess, int i, int j, int k)
    • getDamageLevel

      public int getDamageLevel(int iMetadata)
    • isEffectiveItemConversionTool

      public boolean isEffectiveItemConversionTool(ItemStack stack, World world, int i, int j, int k)
    • registerIcons

      @Environment(CLIENT) public void registerIcons(IconRegister register)
      Description copied from class: Block
      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
    • getIcon

      @Environment(CLIENT) public Icon getIcon(int iSide, int iMetadata)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderer, int i, int j, int k)
      Overrides:
      renderBlock in class Block