|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.block.Block
public class Block
Constructor Summary | |
---|---|
Block(int par1,
int par2,
Material par3Material)
|
|
Block(int par1,
Material par2Material)
|
Method Summary | |
---|---|
boolean |
addBlockDestroyEffects(World world,
int x,
int y,
int z,
int meta,
EffectRenderer effectRenderer)
Spawn particles for when the block is destroyed. |
boolean |
addBlockHitEffects(World worldObj,
MovingObjectPosition target,
EffectRenderer effectRenderer)
Spawn a digging particle effect in the world, this is a wrapper around EffectRenderer.addBlockHitEffects to allow the block more control over the particles. |
void |
addCollidingBlockToList(World par1World,
int par2,
int par3,
int par4,
AxisAlignedBB par5AxisAlignedBB,
List par6List,
Entity par7Entity)
if the specified block is in the given AABB, add its collision bounding box to the given list |
void |
addCreativeItems(ArrayList itemList)
Called when a new CreativeContainer is opened, populate the list with all of the items for this block you want a player in creative mode to have access to. |
void |
beginLeavesDecay(World world,
int x,
int y,
int z)
Called when a leaf should start its decay process. |
void |
breakBlock(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
ejects contained items into the world, and notifies neighbours of an update, as appropriate |
boolean |
canBeReplacedByLeaves(World world,
int x,
int y,
int z)
Used during tree growth to determine if newly generated leaves can replace this block. |
boolean |
canBlockStay(World par1World,
int par2,
int par3,
int par4)
Can this block stay at this position. |
boolean |
canCollideCheck(int par1,
boolean par2)
Returns whether this block is collideable based on the arguments passed in Args: blockMetaData, unknownFlag |
boolean |
canConnectRedstone(IBlockAccess world,
int x,
int y,
int z,
int side)
Determine if this block can make a redstone connection on the side provided, Useful to control which sides are inputs and outputs for redstone wires. |
boolean |
canCreatureSpawn(EnumCreatureType type,
World world,
int x,
int y,
int z)
Determines if a specified mob type can spawn on this block, returning false will prevent any mob from spawning on the block. |
boolean |
canDragonDestroy(World world,
int x,
int y,
int z)
Determines if this block is destroyed when a ender dragon tries to fly through it. |
boolean |
canDropFromExplosion(Explosion par1Explosion)
Return whether this block can drop from an explosion. |
boolean |
canHarvestBlock(EntityPlayer player,
int meta)
Determines if the player can harvest this block, obtaining it's drops when the block is destroyed. |
boolean |
canPlaceBlockAt(World par1World,
int par2,
int par3,
int par4)
Checks to see if its valid to put this block at the specified coordinates. |
boolean |
canPlaceBlockOnSide(World par1World,
int par2,
int par3,
int par4,
int par5)
checks to see if you can place this block can be placed on that side of a block: BlockLever overrides |
boolean |
canPlaceTorchOnTop(World world,
int x,
int y,
int z)
Determines if a torch can be placed on the top surface of this block. |
boolean |
canProvidePower()
Can this block provide power. |
boolean |
canRenderInPass(int pass)
Determines if this block should render in this pass. |
boolean |
canSilkHarvest(World world,
EntityPlayer player,
int x,
int y,
int z,
int metadata)
Return true from this function if the player with silk touch can harvest this block directly, and not it's normal drops. |
boolean |
canSustainLeaves(World world,
int x,
int y,
int z)
Determines if this block can prevent leaves connected to it from decaying. |
boolean |
canSustainPlant(World world,
int x,
int y,
int z,
ForgeDirection direction,
IPlantable plant)
Determines if this block can support the passed in plant, allowing it to be planted and grow. |
MovingObjectPosition |
collisionRayTrace(World par1World,
int par2,
int par3,
int par4,
Vec3 par5Vec3,
Vec3 par6Vec3)
Ray traces through the blocks collision from start vector to end vector returning a ray trace hit. |
int |
colorMultiplier(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
TileEntity |
createTileEntity(World world,
int metadata)
Called throughout the code as a replacement for BlockContainer.getBlockEntity Return the same thing you would from that function. |
int |
damageDropped(int par1)
Determines the damage on the item the block drops. |
void |
dropBlockAsItem(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
Drops the specified block items |
void |
dropBlockAsItemWithChance(World par1World,
int par2,
int par3,
int par4,
int par5,
float par6,
int par7)
Drops the block items with a specified chance of dropping the specified items |
void |
fillWithRain(World par1World,
int par2,
int par3,
int par4)
currently only used by BlockCauldron to incrament meta-data during rain |
boolean |
func_82505_u_()
|
boolean |
func_82506_l()
|
float |
getAmbientOcclusionLightValue(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBedDirection(IBlockAccess world,
int x,
int y,
int z)
Returns the direction of the block. |
ChunkCoordinates |
getBedSpawnPosition(World world,
int x,
int y,
int z,
EntityPlayer player)
Returns the position that the player is moved to upon waking up, or respawning at the bed. |
double |
getBlockBoundsMaxX()
returns the block bounderies maxX value |
double |
getBlockBoundsMaxY()
returns the block bounderies maxY value |
double |
getBlockBoundsMaxZ()
returns the block bounderies maxZ value |
double |
getBlockBoundsMinX()
returns the block bounderies minX value |
double |
getBlockBoundsMinY()
returns the block bounderies minY value |
double |
getBlockBoundsMinZ()
returns the block bounderies minZ value |
float |
getBlockBrightness(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBlockColor()
|
ArrayList<ItemStack> |
getBlockDropped(World world,
int x,
int y,
int z,
int metadata,
int fortune)
This returns a complete list of items dropped from this block. |
float |
getBlockHardness(World par1World,
int par2,
int par3,
int par4)
Returns the block hardness at a location. |
String |
getBlockName()
|
boolean |
getBlocksMovement(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getBlockTexture(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
|
int |
getBlockTextureFromSide(int par1)
Returns the block texture based on the side being looked at. |
int |
getBlockTextureFromSideAndMetadata(int par1,
int par2)
From the specified side and block metadata retrieves the blocks texture. |
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) |
CreativeTabs |
getCreativeTabToDisplayOn()
|
int |
getDamageValue(World par1World,
int par2,
int par3,
int par4)
Get the block's damage value (for use with pick block). |
boolean |
getEnableStats()
Return the state of blocks statistics flags - if the block is counted for mined and placed. |
float |
getExplosionResistance(Entity par1Entity)
Returns how much this block can resist explosions from the passed in entity. |
float |
getExplosionResistance(Entity par1Entity,
World world,
int x,
int y,
int z,
double explosionX,
double explosionY,
double explosionZ)
Location sensitive version of getExplosionRestance |
int |
getFireSpreadSpeed(World world,
int x,
int y,
int z,
int metadata,
ForgeDirection face)
Called when fire is updating on a neighbor block. |
int |
getFlammability(IBlockAccess world,
int x,
int y,
int z,
int metadata,
ForgeDirection face)
Chance that fire will spread and consume this block. |
int |
getLightOpacity(World world,
int x,
int y,
int z)
Location aware and overrideable version of the lightOpacity array, return the number to subtract from the light value when it passes through this block. |
int |
getLightValue(IBlockAccess world,
int x,
int y,
int z)
Get a light value for the block at the specified coordinates, normal ranges are between 0 and 15 |
int |
getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
|
int |
getMobilityFlag()
Returns the mobility information of the block, 0 = free, 1 = can't push but can move over, 2 = total immobility and stop pistons |
ItemStack |
getPickBlock(MovingObjectPosition target,
World world,
int x,
int y,
int z)
Called when a user uses the creative pick block button on this block |
float |
getPlayerRelativeBlockHardness(EntityPlayer par1EntityPlayer,
World par2World,
int par3,
int par4,
int par5)
Gets the hardness of block at the given coordinates in the given world, relative to the ability of the given EntityPlayer. |
int |
getRenderBlockPass()
|
int |
getRenderColor(int par1)
|
int |
getRenderType()
The type of render function that is called for this block |
AxisAlignedBB |
getSelectedBoundingBoxFromPool(World par1World,
int par2,
int par3,
int par4)
|
void |
getSubBlocks(int par1,
CreativeTabs par2CreativeTabs,
List par3List)
|
String |
getTextureFile()
Grabs the current texture file used for this block |
boolean |
getTickRandomly()
Returns whether or not this block is of a type that needs random ticking. |
void |
harvestBlock(World par1World,
EntityPlayer par2EntityPlayer,
int par3,
int par4,
int par5,
int par6)
Called when the player destroys a block with an item that can harvest it. |
boolean |
hasTileEntity()
Deprecated. |
boolean |
hasTileEntity(int metadata)
Called throughout the code as a replacement for block instanceof BlockContainer Moving this to the Block base class allows for mods that wish to extend vinella blocks, and also want to have a tile entity on that block, may. |
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction. |
int |
idPicked(World par1World,
int par2,
int par3,
int par4)
|
boolean |
isAirBlock(World world,
int x,
int y,
int z)
Determines this block should be treated as an air block by the rest of the code. |
boolean |
isBeaconBase(World worldObj,
int x,
int y,
int z,
int beaconX,
int beaconY,
int beaconZ)
Determines if this block can be used as the base of a beacon. |
boolean |
isBed(World world,
int x,
int y,
int z,
EntityLiving player)
Determines if this block is classified as a Bed, Allowing players to sleep in it, though the block has to specifically perform the sleeping functionality in it's activated event. |
boolean |
isBedFoot(IBlockAccess world,
int x,
int y,
int z)
Determines if the current block is the foot half of the bed. |
boolean |
isBlockBurning(World world,
int x,
int y,
int z)
Determines if this block should set fire and deal fire damage to entities coming into contact with it. |
boolean |
isBlockFoliage(World world,
int x,
int y,
int z)
Used by getTopSolidOrLiquidBlock while placing biome decorations, villages, etc Also used to determine if the player can spawn on this block. |
boolean |
isBlockNormalCube(World world,
int x,
int y,
int z)
Return true if the block is a normal, solid cube. |
boolean |
isBlockReplaceable(World world,
int x,
int y,
int z)
Determines if a new block can be replace the space occupied by this one, Used in the player's placement code to make the block act like water, and lava. |
boolean |
isBlockSolid(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns Returns true if the given side of this block type should be rendered (if it's solid or not), if the adjacent block is at the given coordinates. |
boolean |
isBlockSolidOnSide(World world,
int x,
int y,
int z,
ForgeDirection side)
Checks if the block is a solid face on the given side, used by placement logic. |
boolean |
isCollidable()
Returns if this block is collidable (only used by Fire). |
boolean |
isFertile(World world,
int x,
int y,
int z)
Checks if this soil is fertile, typically this means that growth rates of plants on this soil will be slightly sped up. |
boolean |
isFireSource(World world,
int x,
int y,
int z,
int metadata,
ForgeDirection side)
Currently only called by fire when it is on top of this block. |
boolean |
isFlammable(IBlockAccess world,
int x,
int y,
int z,
int metadata,
ForgeDirection face)
Called when fire is updating, checks if a block face can catch fire. |
boolean |
isGenMineableReplaceable(World world,
int x,
int y,
int z)
Determines if the current block is replaceable by Ore veins during world generation. |
boolean |
isLadder(World world,
int x,
int y,
int z)
Checks if a player or entity can use this block to 'climb' like a ladder. |
boolean |
isLeaves(World world,
int x,
int y,
int z)
Determines if this block is considered a leaf block, used to apply the leaf decay and generation system. |
static boolean |
isNormalCube(int par0)
|
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. |
boolean |
isProvidingStrongPower(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns true if the block is emitting direct/strong redstone power on the specified side. |
boolean |
isProvidingWeakPower(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
Returns true if the block is emitting indirect/weak redstone power on the specified side. |
boolean |
isWood(World world,
int x,
int y,
int z)
|
boolean |
onBlockActivated(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer,
int par6,
float par7,
float par8,
float par9)
Called upon block activation (right click on the block.) |
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world. |
void |
onBlockClicked(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer)
Called when the block is clicked by a player. |
void |
onBlockDestroyedByExplosion(World par1World,
int par2,
int par3,
int par4)
Called upon the block being destroyed by an explosion |
void |
onBlockDestroyedByPlayer(World par1World,
int par2,
int par3,
int par4,
int par5)
Called right before the block is destroyed by a player. |
void |
onBlockEventReceived(World par1World,
int par2,
int par3,
int par4,
int par5,
int par6)
Called when the block receives a BlockEvent - see World.addBlockEvent. |
void |
onBlockHarvested(World par1World,
int par2,
int par3,
int par4,
int par5,
EntityPlayer par6EntityPlayer)
Called when the block is attempted to be harvested |
int |
onBlockPlaced(World par1World,
int par2,
int par3,
int par4,
int par5,
float par6,
float par7,
float par8,
int par9)
Called when a block is placed using its ItemBlock. |
void |
onBlockPlacedBy(World par1World,
int par2,
int par3,
int par4,
EntityLiving par5EntityLiving)
Called when the block is placed in the world. |
void |
onEntityCollidedWithBlock(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Triggered whenever an entity collides with this block (enters into the block). |
void |
onEntityWalking(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity)
Called whenever an entity is walking on top of this block. |
void |
onFallenUpon(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity,
float par6)
Block's chance to react to an entity falling on it. |
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes. |
void |
onPostBlockPlaced(World par1World,
int par2,
int par3,
int par4,
int par5)
Called after a block is placed |
void |
onSetBlockIDWithMetaData(World par1World,
int par2,
int par3,
int par4,
int par5)
Called when this block is set (with meta data). |
int |
quantityDropped(int meta,
int fortune,
Random random)
Metadata and fortune sensitive version, this replaces the old (int meta, Random rand) version in 1.1. |
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction. |
int |
quantityDroppedWithBonus(int par1,
Random par2Random)
Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive). |
void |
randomDisplayTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
|
boolean |
removeBlockByPlayer(World world,
EntityPlayer player,
int x,
int y,
int z)
Called when a player removes a block. |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) |
void |
setBedOccupied(World world,
int x,
int y,
int z,
EntityPlayer player,
boolean occupied)
Called when a user either starts or stops sleeping in the bed. |
void |
setBlockBounds(float par1,
float par2,
float par3,
float par4,
float par5,
float par6)
Sets the bounds of the block. |
void |
setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4)
Updates the blocks bounds based on its current state. |
void |
setBlockBoundsForItemRender()
Sets the block's bounds for rendering it as an item |
Block |
setBlockName(String par1Str)
set name of block from language file |
Block |
setBlockUnbreakable()
This method will make the hardness of the block equals to -1, and the block is indestructible. |
static void |
setBurnProperties(int id,
int encouragement,
int flammability)
Called by BlockFire to setup the burn values of vanilla blocks. |
Block |
setCreativeTab(CreativeTabs par1CreativeTabs)
Sets the CreativeTab to display this block on. |
Block |
setHardness(float par1)
Sets how many hits it takes to break a block. |
Block |
setLightOpacity(int par1)
Sets how much light is blocked going through this block. |
Block |
setLightValue(float par1)
Sets the amount of light emitted by a block from 0.0f to 1.0f (converts internally to 0-15). |
Block |
setRequiresSelfNotify()
Blocks with this attribute will not notify all near blocks when it's metadata change. |
Block |
setResistance(float par1)
Sets the the blocks resistance to explosions. |
Block |
setStepSound(StepSound par1StepSound)
Sets the footstep sound for the block. |
Block |
setTextureFile(String texture)
Sets the current texture file for this block, used when rendering. |
Block |
setTickRandomly(boolean par1)
Sets whether this block type will receive random update ticks |
boolean |
shouldSideBeRendered(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5)
|
int |
tickRate()
How many world ticks before ticking |
String |
translateBlockName()
gets the localized version of the name of this block using StatCollector.translateToLocal. |
void |
updateTick(World par1World,
int par2,
int par3,
int par4,
Random par5Random)
Ticks the block if it's been scheduled |
void |
velocityToAddToEntity(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity,
Vec3 par6Vec3)
Can add to the passed in vector for a movement vector to be applied to the entity. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isDefaultTexture
public static final StepSound soundPowderFootstep
public static final StepSound soundWoodFootstep
public static final StepSound soundGravelFootstep
public static final StepSound soundGrassFootstep
public static final StepSound soundStoneFootstep
public static final StepSound soundMetalFootstep
public static final StepSound soundGlassFootstep
public static final StepSound soundClothFootstep
public static final StepSound soundSandFootstep
public static final StepSound soundSnowFootstep
public static final StepSound soundLadderFootstep
public static final StepSound soundAnvilFootstep
public static final Block[] blocksList
public static final boolean[] opaqueCubeLookup
public static final int[] lightOpacity
public static final boolean[] canBlockGrass
public static final int[] lightValue
public static final boolean[] requiresSelfNotify
public static boolean[] useNeighborBrightness
public static final Block stone
public static final BlockGrass grass
public static final Block dirt
public static final Block cobblestone
public static final Block planks
public static final Block sapling
public static final Block bedrock
public static final Block waterMoving
public static final Block waterStill
public static final Block lavaMoving
public static final Block lavaStill
public static final Block sand
public static final Block gravel
public static final Block oreGold
public static final Block oreIron
public static final Block oreCoal
public static final Block wood
public static final BlockLeaves leaves
public static final Block sponge
public static final Block glass
public static final Block oreLapis
public static final Block blockLapis
public static final Block dispenser
public static final Block sandStone
public static final Block music
public static final Block bed
public static final Block railPowered
public static final Block railDetector
public static final Block pistonStickyBase
public static final Block web
public static final BlockTallGrass tallGrass
public static final BlockDeadBush deadBush
public static final Block pistonBase
public static final BlockPistonExtension pistonExtension
public static final Block cloth
public static final BlockPistonMoving pistonMoving
public static final BlockFlower plantYellow
public static final BlockFlower plantRed
public static final BlockFlower mushroomBrown
public static final BlockFlower mushroomRed
public static final Block blockGold
public static final Block blockSteel
public static final BlockHalfSlab stoneDoubleSlab
public static final BlockHalfSlab stoneSingleSlab
public static final Block brick
public static final Block tnt
public static final Block bookShelf
public static final Block cobblestoneMossy
public static final Block obsidian
public static final Block torchWood
public static final BlockFire fire
public static final Block mobSpawner
public static final Block stairCompactPlanks
public static final Block chest
public static final Block redstoneWire
public static final Block oreDiamond
public static final Block blockDiamond
public static final Block workbench
public static final Block crops
public static final Block tilledField
public static final Block stoneOvenIdle
public static final Block stoneOvenActive
public static final Block signPost
public static final Block doorWood
public static final Block ladder
public static final Block rail
public static final Block stairCompactCobblestone
public static final Block signWall
public static final Block lever
public static final Block pressurePlateStone
public static final Block doorSteel
public static final Block pressurePlatePlanks
public static final Block oreRedstone
public static final Block oreRedstoneGlowing
public static final Block torchRedstoneIdle
public static final Block torchRedstoneActive
public static final Block stoneButton
public static final Block snow
public static final Block ice
public static final Block blockSnow
public static final Block cactus
public static final Block blockClay
public static final Block reed
public static final Block jukebox
public static final Block fence
public static final Block pumpkin
public static final Block netherrack
public static final Block slowSand
public static final Block glowStone
public static final BlockPortal portal
public static final Block pumpkinLantern
public static final Block cake
public static final Block redstoneRepeaterIdle
public static final Block redstoneRepeaterActive
public static final Block lockedChest
public static final Block trapdoor
public static final Block silverfish
public static final Block stoneBrick
public static final Block mushroomCapBrown
public static final Block mushroomCapRed
public static final Block fenceIron
public static final Block thinGlass
public static final Block melon
public static final Block pumpkinStem
public static final Block melonStem
public static final Block vine
public static final Block fenceGate
public static final Block stairsBrick
public static final Block stairsStoneBrickSmooth
public static final BlockMycelium mycelium
public static final Block waterlily
public static final Block netherBrick
public static final Block netherFence
public static final Block stairsNetherBrick
public static final Block netherStalk
public static final Block enchantmentTable
public static final Block brewingStand
public static final Block cauldron
public static final Block endPortal
public static final Block endPortalFrame
public static final Block whiteStone
public static final Block dragonEgg
public static final Block redstoneLampIdle
public static final Block redstoneLampActive
public static final BlockHalfSlab woodDoubleSlab
public static final BlockHalfSlab woodSingleSlab
public static final Block cocoaPlant
public static final Block stairsSandStone
public static final Block oreEmerald
public static final Block enderChest
public static final BlockTripWireSource tripWireSource
public static final Block tripWire
public static final Block blockEmerald
public static final Block stairsWoodSpruce
public static final Block stairsWoodBirch
public static final Block stairsWoodJungle
public static final Block commandBlock
public static final Block beacon
public static final Block cobblestoneWall
public static final Block flowerPot
public static final Block carrot
public static final Block potato
public static final Block woodenButton
public static final Block skull
public static final Block anvil
public int blockIndexInTexture
public final int blockID
public StepSound stepSound
public float blockParticleGravity
public final Material blockMaterial
public float slipperiness
Constructor Detail |
---|
public Block(int par1, Material par2Material)
public Block(int par1, int par2, Material par3Material)
Method Detail |
---|
public Block setRequiresSelfNotify()
public Block setStepSound(StepSound par1StepSound)
public Block setLightOpacity(int par1)
public Block setLightValue(float par1)
public Block setResistance(float par1)
public static boolean isNormalCube(int par0)
public boolean renderAsNormalBlock()
public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public int getRenderType()
public Block setHardness(float par1)
public Block setBlockUnbreakable()
public float getBlockHardness(World par1World, int par2, int par3, int par4)
public Block setTickRandomly(boolean par1)
public boolean getTickRandomly()
@Deprecated public boolean hasTileEntity()
public final void setBlockBounds(float par1, float par2, float par3, float par4, float par5, float par6)
public float getBlockBrightness(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean isBlockSolid(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public int getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
public int getBlockTextureFromSide(int par1)
public void addCollidingBlockToList(World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
public boolean isOpaqueCube()
public boolean canCollideCheck(int par1, boolean par2)
public boolean isCollidable()
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random)
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
public int tickRate()
public void onBlockAdded(World par1World, int par2, int par3, int par4)
public void breakBlock(World par1World, int par2, int par3, int par4, int par5, int par6)
public int quantityDropped(Random par1Random)
public int idDropped(int par1, Random par2Random, int par3)
public float getPlayerRelativeBlockHardness(EntityPlayer par1EntityPlayer, World par2World, int par3, int par4, int par5)
public final void dropBlockAsItem(World par1World, int par2, int par3, int par4, int par5, int par6)
public void dropBlockAsItemWithChance(World par1World, int par2, int par3, int par4, int par5, float par6, int par7)
public int damageDropped(int par1)
public float getExplosionResistance(Entity par1Entity)
public MovingObjectPosition collisionRayTrace(World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3)
public void onBlockDestroyedByExplosion(World par1World, int par2, int par3, int par4)
public int getRenderBlockPass()
public boolean canPlaceBlockOnSide(World par1World, int par2, int par3, int par4, int par5)
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)
public void onEntityWalking(World par1World, int par2, int par3, int par4, Entity par5Entity)
public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)
public void onBlockClicked(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
public void velocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public final double getBlockBoundsMinX()
public final double getBlockBoundsMaxX()
public final double getBlockBoundsMinY()
public final double getBlockBoundsMaxY()
public final double getBlockBoundsMinZ()
public final double getBlockBoundsMaxZ()
public int getBlockColor()
public int getRenderColor(int par1)
public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public boolean isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public boolean canProvidePower()
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
public boolean isProvidingStrongPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
public void setBlockBoundsForItemRender()
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
public int quantityDroppedWithBonus(int par1, Random par2Random)
public boolean canBlockStay(World par1World, int par2, int par3, int par4)
public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving)
public void onPostBlockPlaced(World par1World, int par2, int par3, int par4, int par5)
public Block setBlockName(String par1Str)
public String translateBlockName()
public String getBlockName()
public void onBlockEventReceived(World par1World, int par2, int par3, int par4, int par5, int par6)
public boolean getEnableStats()
public int getMobilityFlag()
public float getAmbientOcclusionLightValue(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public void onFallenUpon(World par1World, int par2, int par3, int par4, Entity par5Entity, float par6)
public int idPicked(World par1World, int par2, int par3, int par4)
public int getDamageValue(World par1World, int par2, int par3, int par4)
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
public Block setCreativeTab(CreativeTabs par1CreativeTabs)
public void onBlockHarvested(World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer)
public CreativeTabs getCreativeTabToDisplayOn()
public void onSetBlockIDWithMetaData(World par1World, int par2, int par3, int par4, int par5)
public void fillWithRain(World par1World, int par2, int par3, int par4)
public boolean func_82505_u_()
public boolean func_82506_l()
public boolean canDropFromExplosion(Explosion par1Explosion)
public int getLightValue(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z position
public boolean isLadder(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z position
public boolean isBlockNormalCube(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z position
public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionside
- The side to check
public boolean isBlockReplaceable(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z position
public boolean isBlockBurning(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z position
public boolean isAirBlock(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z position
public boolean canHarvestBlock(EntityPlayer player, int meta)
player
- The player damaging the block, may be nullmeta
- The block's current metadata
public boolean removeBlockByPlayer(World world, EntityPlayer player, int x, int y, int z)
world
- The current worldplayer
- The player damaging the block, may be nullx
- X Positiony
- Y positionz
- Z position
public void addCreativeItems(ArrayList itemList)
itemList
- The list of items to display on the creative inventory.public int getFlammability(IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionmetadata
- The blocks current metadataface
- The face that the fire is coming from
public boolean isFlammable(IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionmetadata
- The blocks current metadataface
- The face that the fire is coming from
public int getFireSpreadSpeed(World world, int x, int y, int z, int metadata, ForgeDirection face)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionmetadata
- The blocks current metadataface
- The face that the fire is coming from
public boolean isFireSource(World world, int x, int y, int z, int metadata, ForgeDirection side)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionmetadata
- The blocks current metadataside
- The face that the fire is coming from
public static void setBurnProperties(int id, int encouragement, int flammability)
id
- The block idencouragement
- How much the block encourages fire to spreadflammability
- how easy a block is to catch firepublic boolean hasTileEntity(int metadata)
metadata
- Metadata of the current block
public TileEntity createTileEntity(World world, int metadata)
metadata
- The Metadata of the current block
public int quantityDropped(int meta, int fortune, Random random)
meta
- Blocks Metadatafortune
- Current item fortune levelrandom
- Random number generator
public ArrayList<ItemStack> getBlockDropped(World world, int x, int y, int z, int metadata, int fortune)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionmetadata
- Current metadatafortune
- Breakers fortune level
public boolean canSilkHarvest(World world, EntityPlayer player, int x, int y, int z, int metadata)
world
- The worldplayer
- The player doing the harvestingx
- X Positiony
- Y Positionz
- Z Positionmetadata
- The metadata
public boolean canCreatureSpawn(EnumCreatureType type, World world, int x, int y, int z)
type
- The Mob Category Typeworld
- The current worldx
- The X Positiony
- The Y Positionz
- The Z Position
public boolean isBed(World world, int x, int y, int z, EntityLiving player)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionplayer
- The player or camera entity, null in some cases.
public ChunkCoordinates getBedSpawnPosition(World world, int x, int y, int z, EntityPlayer player)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionplayer
- The player or camera entity, null in some cases.
public void setBedOccupied(World world, int x, int y, int z, EntityPlayer player, boolean occupied)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionplayer
- The player or camera entity, null in some cases.occupied
- True if we are occupying the bed, or false if they are stopping use of the bedpublic int getBedDirection(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean isBedFoot(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public void beginLeavesDecay(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean canSustainLeaves(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean isLeaves(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean canBeReplacedByLeaves(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean isWood(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean isGenMineableReplaceable(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public String getTextureFile()
public Block setTextureFile(String texture)
texture
- The texture filepublic float getExplosionResistance(Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ)
par1Entity
- The entity that caused the explosionworld
- The current worldx
- X Positiony
- Y Positionz
- Z PositionexplosionX
- Explosion source X PositionexplosionY
- Explosion source X PositionexplosionZ
- Explosion source X Position
public boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionside
- The side that is trying to make the connection
public boolean canPlaceTorchOnTop(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Position
public boolean canRenderInPass(int pass)
pass
- The pass in question
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
target
- The full target the player is looking at
public boolean isBlockFoliage(World world, int x, int y, int z)
public boolean addBlockHitEffects(World worldObj, MovingObjectPosition target, EffectRenderer effectRenderer)
world
- The current worldtarget
- The target the player is looking at {x/y/z/side/sub}effectRenderer
- A reference to the current effect renderer.
public boolean addBlockDestroyEffects(World world, int x, int y, int z, int meta, EffectRenderer effectRenderer)
world
- The current worldx
- X position to spawn the particley
- Y position to spawn the particlez
- Z position to spawn the particlemeta
- The metadata for the block before it was destroyed.effectRenderer
- A reference to the current effect renderer.
public boolean canSustainPlant(World world, int x, int y, int z, ForgeDirection direction, IPlantable plant)
world
- The current worldx
- X Positiony
- Y Positionz
- Z positiondirection
- The direction relative to the given position the plant wants to be, typically its UPplant
- The plant that wants to check
public boolean isFertile(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z position
public int getLightOpacity(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z position
public boolean canDragonDestroy(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z position
public boolean isBeaconBase(World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ)
world
- The current worldx
- X Positiony
- Y Positionz
- Z positionbeaconX
- Beacons X PositionbeaconY
- Beacons Y PositionbeaconZ
- Beacons Z Position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |