Class VaseBlock

All Implemented Interfaces:
ITileEntityProvider

public class VaseBlock extends BlockContainer
  • Field Details

  • Constructor Details

    • VaseBlock

      public VaseBlock(int iBlockID)
  • Method Details

    • isOpaqueCube

      public boolean isOpaqueCube()
      Description copied from class: Block
      // +++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
    • renderAsNormalBlock

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

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

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

      public TileEntity createNewTileEntity(World world)
      Description copied from interface: ITileEntityProvider
      Returns a new instance of a block's tile entity class. Called on placing the block.
    • onBlockActivated

      public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int iFacing, float fXClick, float fYClick, float fZClick)
      Description copied from class: Block
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class Block
    • breakBlock

      public void breakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Description copied from class: BlockContainer
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata
      Overrides:
      breakBlock in class BlockContainer
    • 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
    • onBlockHarvested

      public void onBlockHarvested(World world, int i, int j, int k, int iMetadata, EntityPlayer player)
      Description copied from class: Block
      Called when the block is attempted to be harvested
      Overrides:
      onBlockHarvested in class Block
    • collisionRayTrace

      public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay)
      Overrides:
      collisionRayTrace in class Block
    • 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
    • onArrowImpact

      public void onArrowImpact(World world, int i, int j, int k, EntityArrow arrow)
      Overrides:
      onArrowImpact 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
    • canWildVegetationGrowOnBlock

      public boolean canWildVegetationGrowOnBlock(World world, int i, int j, int k)
      Description copied from class: Block
      Covers stuff like flowers and tall grass
      Overrides:
      canWildVegetationGrowOnBlock in class Block
    • canSaplingsGrowOnBlock

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

      public void breakVase(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 side, int meta)
      Description copied from class: Block
      From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
      Overrides:
      getIcon in class Block
    • getSubBlocks

      @Environment(CLIENT) 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
    • colorMultiplier

      @Environment(CLIENT) public int colorMultiplier(IBlockAccess access, int i, int j, int k)
      Description copied from class: Block
      Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.
      Overrides:
      colorMultiplier in class Block
    • getRenderColor

      public int getRenderColor(int meta)
      Description copied from class: Block
      Returns the color this block should be rendered. Used by leaves.
      Overrides:
      getRenderColor in class Block
    • shouldSideBeRendered

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

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

      @Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness)
      Overrides:
      renderBlockAsItem in class Block
    • renderVase

      public static boolean renderVase(RenderBlocks render, int i, int j, int k, Block block)
      Generic vase renderer. Method is marked static since it's used by other static methods.
    • renderVaseBlock

      @Environment(CLIENT) public static boolean renderVaseBlock(RenderBlocks render, IBlockAccess access, int i, int j, int k, Block block)
      Vase block renderer.

      Method is marked static as it is used externally.

      See Also:
    • renderInvBlock

      @Environment(CLIENT) public static void renderInvBlock(RenderBlocks render, Block block, int damage)
      Inventory block renderer.

      Method is marked static as it is used externally.

      See Also:
    • renderLegacyVaseBlock

      @Environment(CLIENT) public static boolean renderLegacyVaseBlock(RenderBlocks render, IBlockAccess access, int i, int j, int k, Block block)
      Legacy FC vase block renderer
    • renderLegacyInvBlock

      @Environment(CLIENT) public static void renderLegacyInvBlock(RenderBlocks render, Block block, int damage)
      Legacy FC vase item renderer