Class AestheticVegetationBlock

java.lang.Object
net.minecraft.src.Block
btw.block.blocks.AestheticVegetationBlock

public class AestheticVegetationBlock extends Block
  • Field Details

    • SUBTYPE_VINE_TRAP

      public static final int SUBTYPE_VINE_TRAP
      See Also:
    • SUBTYPE_VINE_TRAP_TRIGGERED_BY_ENTITY

      public static final int SUBTYPE_VINE_TRAP_TRIGGERED_BY_ENTITY
      See Also:
    • SUBTYPE_BLOOD_WOOD_SAPLING

      public static final int SUBTYPE_BLOOD_WOOD_SAPLING
      See Also:
    • SUBTYPE_BLOOD_LEAVES

      public static final int SUBTYPE_BLOOD_LEAVES
      See Also:
    • SUBTYPE_VINE_TRAP_UPSIDE_DOWN

      public static final int SUBTYPE_VINE_TRAP_UPSIDE_DOWN
      See Also:
    • SUBTYPE_VINE_TRAP_UPSIDE_DOWN_TRIGGERED_BY_ENTITY

      public static final int SUBTYPE_VINE_TRAP_UPSIDE_DOWN_TRIGGERED_BY_ENTITY
      See Also:
    • NUM_SUBTYPES

      public static final int NUM_SUBTYPES
      See Also:
    • BLOOD_WOOD_SAPLING_MIN_TRUNK_HEIGHT

      public static final int BLOOD_WOOD_SAPLING_MIN_TRUNK_HEIGHT
      See Also:
  • Constructor Details

    • AestheticVegetationBlock

      public AestheticVegetationBlock(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
    • onBlockPlaced

      public int onBlockPlaced(World world, int i, int j, int k, int iFacing, float fClickX, float fClickY, float fClickZ, int iMetadata)
      Description copied from class: Block
      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
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iChangedBlockID)
      Description copied from class: Block
      Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID // +++START EDIT+++ FCNOTE: Only called on server // ---END EDIT---
      Overrides:
      onNeighborBlockChange in class Block
    • canBlockStay

      public boolean canBlockStay(World world, int i, int j, int k)
      Description copied from class: Block
      Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
      Overrides:
      canBlockStay 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
    • dropBlockAsItem_do

      protected void dropBlockAsItem_do(World world, int i, int j, int k, ItemStack itemStack)
      Description copied from class: Block
      Spawns EntityItem in the world for the given ItemStack if the world is not remote.
      Overrides:
      dropBlockAsItem_do in class Block
    • harvestBlock

      public void harvestBlock(World world, EntityPlayer entityPlayer, 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
    • getCollisionBoundingBoxFromPool

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

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

      public int tickRate(World world)
      Description copied from class: Block
      How many world ticks before ticking
      Overrides:
      tickRate in class Block
    • getMovementModifier

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

      public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
      Description copied from class: Block
      Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
      Overrides:
      onEntityCollidedWithBlock in class Block
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random random)
      Description copied from class: Block
      Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      updateTick in class Block
    • onBlockSawed

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

      public boolean doesBlockHopperEject(World world, int i, int j, int k)
      Description copied from class: Block
      Applies to Hopper ejecting items into the world, not inserting into the block itself
      Overrides:
      doesBlockHopperEject in class Block
    • canPlaceBlockOnSide

      public boolean canPlaceBlockOnSide(World world, int i, int j, int k, int iSide, ItemStack stack)
      Overrides:
      canPlaceBlockOnSide in class Block
    • getStepSoundInternal

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

      public int getSubtype(IBlockAccess blockAccess, int i, int j, int k)
    • setSubtype

      public void setSubtype(World world, int i, int j, int k, int iSubtype)
    • getBlockBoundsFromPoolBasedOnSubtype

      public AxisAlignedBB getBlockBoundsFromPoolBasedOnSubtype(int iSubtype)
    • validateBloodWoodSapling

      public boolean validateBloodWoodSapling(World world, int i, int j, int k)
    • attemptToGrowBloodwoodSapling

      public void attemptToGrowBloodwoodSapling(World world, int i, int j, int k, Random random)
    • canBloodwoodSaplingStayAtLocation

      public boolean canBloodwoodSaplingStayAtLocation(World world, int i, int j, int k)
    • attemptToAffectBlockWithSoul

      public boolean attemptToAffectBlockWithSoul(World world, int x, int y, int z)
      Overrides:
      attemptToAffectBlockWithSoul in class Block
    • 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
    • getSubBlocks

      @Environment(CLIENT) public void getSubBlocks(int iBlockID, CreativeTabs creativeTabs, List list)
      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
    • shouldSideBeRendered

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

      @Environment(CLIENT) public int idPicked(World world, int i, int j, int k)
      Description copied from class: Block
      only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---
      Overrides:
      idPicked in class Block
    • getDamageValue

      @Environment(CLIENT) public int getDamageValue(World world, int i, int j, int k)
      Description copied from class: Block
      Get the block's damage value (for use with pick block).
      Overrides:
      getDamageValue 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
    • doesItemRenderAsBlock

      @Environment(CLIENT) public boolean doesItemRenderAsBlock(int iItemDamage)
      Overrides:
      doesItemRenderAsBlock in class Block