Class UnfiredPotteryBlock

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

public class UnfiredPotteryBlock extends Block
  • Field Details

    • NUM_SUBTYPES

      public static final int NUM_SUBTYPES
      See Also:
    • NUM_SPUN_POTTERY_TYPES

      public static final int NUM_SPUN_POTTERY_TYPES
      See Also:
    • SUBTYPE_CRUCIBLE

      public static final int SUBTYPE_CRUCIBLE
      See Also:
    • SUBTYPE_PLANTER

      public static final int SUBTYPE_PLANTER
      See Also:
    • SUBTYPE_VASE

      public static final int SUBTYPE_VASE
      See Also:
    • SUBTYPE_URN

      public static final int SUBTYPE_URN
      See Also:
    • SUBTYPE_MOULD

      public static final int SUBTYPE_MOULD
      See Also:
    • SUBTYPE_CLAY_BRICK

      public static final int SUBTYPE_CLAY_BRICK
      See Also:
    • SUBTYPE_CLAY_BRICK_X_ALIGNED

      public static final int SUBTYPE_CLAY_BRICK_X_ALIGNED
      See Also:
    • SUBTYPE_NETHER_BRICK

      public static final int SUBTYPE_NETHER_BRICK
      See Also:
    • SUBTYPE_NETHER_BRICK_X_ALIGNED

      public static final int SUBTYPE_NETHER_BRICK_X_ALIGNED
      See Also:
    • SUBTYPE_UNCOOKED_CAKE

      public static final int SUBTYPE_UNCOOKED_CAKE
      See Also:
    • SUBTYPE_UNCOOKED_COOKIES

      public static final int SUBTYPE_UNCOOKED_COOKIES
      See Also:
    • SUBTYPE_UNCOOKED_COOKIES_I_ALIGNED

      public static final int SUBTYPE_UNCOOKED_COOKIES_I_ALIGNED
      See Also:
    • SUBTYPE_UNCOOKED_PUMPKIN_PIE

      public static final int SUBTYPE_UNCOOKED_PUMPKIN_PIE
      See Also:
    • SUBTYPE_UNCOOKED_BREAD

      public static final int SUBTYPE_UNCOOKED_BREAD
      See Also:
    • SUBTYPE_UNCOOKED_BREAD_I_ALIGNED

      public static final int SUBTYPE_UNCOOKED_BREAD_I_ALIGNED
      See Also:
    • ROTATIONS_ON_TURNTABLE_TO_CHANG_STATE

      public static final int ROTATIONS_ON_TURNTABLE_TO_CHANG_STATE
      See Also:
    • UNFIRED_POTTERY_URN_BASE_WIDTH

      public static final float UNFIRED_POTTERY_URN_BASE_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_BASE_HALF_WIDTH

      public static final float UNFIRED_POTTERY_URN_BASE_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_BASE_HEIGHT

      public static final float UNFIRED_POTTERY_URN_BASE_HEIGHT
      See Also:
    • UNFIRED_POTTERY_URN_BODY_WIDTH

      public static final float UNFIRED_POTTERY_URN_BODY_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_BODY_HALF_WIDTH

      public static final float UNFIRED_POTTERY_URN_BODY_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_BODY_HEIGHT

      public static final float UNFIRED_POTTERY_URN_BODY_HEIGHT
      See Also:
    • UNFIRED_POTTERY_URN_NECK_WIDTH

      public static final float UNFIRED_POTTERY_URN_NECK_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_NECK_HALF_WIDTH

      public static final float UNFIRED_POTTERY_URN_NECK_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_NECK_HEIGHT

      public static final float UNFIRED_POTTERY_URN_NECK_HEIGHT
      See Also:
    • UNFIRED_POTTERY_URN_TOP_WIDTH

      public static final float UNFIRED_POTTERY_URN_TOP_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_TOP_HALF_WIDTH

      public static final float UNFIRED_POTTERY_URN_TOP_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_TOP_HEIGHT

      public static final float UNFIRED_POTTERY_URN_TOP_HEIGHT
      See Also:
    • UNFIRED_POTTERY_URN_LID_WIDTH

      public static final float UNFIRED_POTTERY_URN_LID_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_LID_HALF_WIDTH

      public static final float UNFIRED_POTTERY_URN_LID_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_URN_LID_HEIGHT

      public static final float UNFIRED_POTTERY_URN_LID_HEIGHT
      See Also:
    • UNFIRED_POTTERY_URN_HEIGHT

      public static final float UNFIRED_POTTERY_URN_HEIGHT
      See Also:
    • UNFIRED_POTTERY_MOULD_HEIGHT

      public static final float UNFIRED_POTTERY_MOULD_HEIGHT
      See Also:
    • UNFIRED_POTTERY_MOULD_WIDTH

      public static final float UNFIRED_POTTERY_MOULD_WIDTH
      See Also:
    • UNFIRED_POTTERY_MOULD_HALF_WIDTH

      public static final float UNFIRED_POTTERY_MOULD_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_BRICK_HEIGHT

      public static final float UNFIRED_POTTERY_BRICK_HEIGHT
      See Also:
    • UNFIRED_POTTERY_BRICK_WIDTH

      public static final float UNFIRED_POTTERY_BRICK_WIDTH
      See Also:
    • UNFIRED_POTTERY_BRICK_HALF_WIDTH

      public static final float UNFIRED_POTTERY_BRICK_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_BRICK_LENGTH

      public static final float UNFIRED_POTTERY_BRICK_LENGTH
      See Also:
    • UNFIRED_POTTERY_BRICK_HALF_LENGTH

      public static final float UNFIRED_POTTERY_BRICK_HALF_LENGTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_CAKE_HEIGHT

      public static final float UNFIRED_POTTERY_UNCOOKED_CAKE_HEIGHT
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_CAKE_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_CAKE_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_CAKE_HALF_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_CAKE_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_CAKE_LENGTH

      public static final float UNFIRED_POTTERY_UNCOOKED_CAKE_LENGTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_CAKE_HALF_LENGTH

      public static final float UNFIRED_POTTERY_UNCOOKED_CAKE_HALF_LENGTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_HEIGHT

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_HEIGHT
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_HALF_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_LENGTH

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_LENGTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_HALF_LENGTH

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_HALF_LENGTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_INDIVIDUAL_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_INDIVIDUAL_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_COOKIES_INDIVIDUAL_HALF_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_COOKIES_INDIVIDUAL_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_HEIGHT

      public static final float UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_HEIGHT
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_HALF_WIDTH

      public static final float UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_HALF_WIDTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_LENGTH

      public static final float UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_LENGTH
      See Also:
    • UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_HALF_LENGTH

      public static final float UNFIRED_POTTERY_UNCOOKED_PUMPKIN_PIE_HALF_LENGTH
      See Also:
  • Constructor Details

    • UnfiredPotteryBlock

      public UnfiredPotteryBlock(int iBlockID)
  • Method Details

    • onBlockAdded

      public void onBlockAdded(World world, int i, int j, int k)
      Description copied from class: Block
      Called whenever the block is added into the world. Args: world, x, y, z // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---
      Overrides:
      onBlockAdded 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
    • onBlockPlacedBy

      public void onBlockPlacedBy(World world, int i, int j, int k, EntityLivingBase placingEntity, ItemStack stack)
      Description copied from class: Block
      Called when the block is placed in the world. // +++START EDIT+++ FCNOTE: Called AFTER the block is placed, unlike onBlockPlaced() // ---END EDIT---
      Overrides:
      onBlockPlacedBy in class Block
    • idDropped

      public int idDropped(int iMetadata, Random random, 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
    • 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
    • getBlockBoundsFromPoolBasedOnState

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

      public boolean canPlaceBlockAt(World world, int i, int j, int k)
      Description copied from class: Block
      Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
      Overrides:
      canPlaceBlockAt in class Block
    • updateTick

      public void updateTick(World world, int i, int j, int k, Random rand)
      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
    • onNeighborBlockChange

      public void onNeighborBlockChange(World world, int i, int j, int k, int iBlockID)
      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
    • collisionRayTrace

      public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3 startRay, Vec3 endRay)
      Overrides:
      collisionRayTrace in class Block
    • canRotateOnTurntable

      public boolean canRotateOnTurntable(IBlockAccess blockAccess, int i, int j, int k)
      Overrides:
      canRotateOnTurntable in class Block
    • rotateMetadataAroundYAxis

      @Environment(CLIENT) public int rotateMetadataAroundYAxis(int iMetadata, boolean bReverse)
      Overrides:
      rotateMetadataAroundYAxis in class Block
    • canBePistonShoveled

      public boolean canBePistonShoveled(World world, int i, int j, int k)
      Overrides:
      canBePistonShoveled 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
    • shouldSideBeRendered

      @Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
      Overrides:
      shouldSideBeRendered 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
    • idPicked

      @Environment(CLIENT) public int idPicked(World world, int x, int y, int z)
      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
    • renderBlock

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

      @Environment(CLIENT) public void renderBlockSecondPass(RenderBlocks renderBlocks, int i, int j, int k, boolean bFirstPassResult)
      Description copied from class: Block
      If the block has a second pass, like a kiln cooking overlay texture, it should Override this method. This method does not call the overlay by default to cut down on rendering time, since this function is called by every single loaded block. Note that this function is necessary to prevent potential recursion within RenderBlock, if it were to call its own overlays directly, and then potentially get called with a texture overlay itself through RenderBlockWithTexture.
      Overrides:
      renderBlockSecondPass in class Block
    • renderUnfiredUrn

      @Environment(CLIENT) public static boolean renderUnfiredUrn(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block, Icon texture, float fVerticalOffset)
    • renderUnfiredCrucible

      @Environment(CLIENT) public static boolean renderUnfiredCrucible(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block, Icon texture)
    • renderUncookedCookies

      @Environment(CLIENT) public static boolean renderUncookedCookies(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Block block, boolean bIAligned)
    • renderBlockAsItem

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

      @Environment(CLIENT) public static void renderUnfiredUrnInvBlock(RenderBlocks renderBlocks, Block block, int iItemDamage, Icon texture)
    • renderUnfiredCrucibleInvBlock

      @Environment(CLIENT) public static void renderUnfiredCrucibleInvBlock(RenderBlocks renderBlocks, Block block, int iItemDamage, Icon texture)
    • renderUnfiredCookiesInvBlock

      @Environment(CLIENT) public static void renderUnfiredCookiesInvBlock(RenderBlocks renderBlocks, Block block)