public class Block
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Block.SoundType |
Modifier | Constructor and Description |
---|---|
protected |
Block(Material p_i45394_1_) |
Modifier and Type | Method and Description |
---|---|
void |
addCollisionBoxesToList(World p_149743_1_,
int p_149743_2_,
int p_149743_3_,
int p_149743_4_,
AxisAlignedBB p_149743_5_,
java.util.List p_149743_6_,
Entity p_149743_7_) |
boolean |
addDestroyEffects(World world,
int x,
int y,
int z,
int meta,
EffectRenderer effectRenderer)
Spawn particles for when the block is destroyed.
|
boolean |
addHitEffects(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 |
beginLeavesDecay(World world,
int x,
int y,
int z)
Called when a leaf should start its decay process.
|
void |
breakBlock(World p_149749_1_,
int p_149749_2_,
int p_149749_3_,
int p_149749_4_,
Block p_149749_5_,
int p_149749_6_) |
boolean |
canBeReplacedByLeaves(IBlockAccess world,
int x,
int y,
int z)
Used during tree growth to determine if newly generated leaves can replace this block.
|
boolean |
canBlockStay(World p_149718_1_,
int p_149718_2_,
int p_149718_3_,
int p_149718_4_) |
boolean |
canCollideCheck(int p_149678_1_,
boolean p_149678_2_) |
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,
IBlockAccess 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 |
canDropFromExplosion(Explosion p_149659_1_) |
boolean |
canEntityDestroy(IBlockAccess world,
int x,
int y,
int z,
Entity entity)
Determines if this block is can be destroyed by the specified entities normal behavior.
|
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 p_149742_1_,
int p_149742_2_,
int p_149742_3_,
int p_149742_4_) |
boolean |
canPlaceBlockOnSide(World p_149707_1_,
int p_149707_2_,
int p_149707_3_,
int p_149707_4_,
int p_149707_5_) |
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() |
boolean |
canRenderInPass(int pass)
Determines if this block should render in this pass.
|
boolean |
canReplace(World p_149705_1_,
int p_149705_2_,
int p_149705_3_,
int p_149705_4_,
int p_149705_5_,
ItemStack p_149705_6_) |
protected boolean |
canSilkHarvest() |
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(IBlockAccess world,
int x,
int y,
int z)
Determines if this block can prevent leaves connected to it from decaying.
|
boolean |
canSustainPlant(IBlockAccess world,
int x,
int y,
int z,
ForgeDirection direction,
IPlantable plantable)
Determines if this block can support the passed in plant, allowing it to be planted and grow.
|
protected java.util.List<ItemStack> |
captureDrops(boolean start) |
MovingObjectPosition |
collisionRayTrace(World p_149731_1_,
int p_149731_2_,
int p_149731_3_,
int p_149731_4_,
Vec3 p_149731_5_,
Vec3 p_149731_6_) |
int |
colorMultiplier(IBlockAccess p_149720_1_,
int p_149720_2_,
int p_149720_3_,
int p_149720_4_) |
protected ItemStack |
createStackedBlock(int p_149644_1_) |
TileEntity |
createTileEntity(World world,
int metadata)
Called throughout the code as a replacement for ITileEntityProvider.createNewTileEntity
Return the same thing you would from that function.
|
int |
damageDropped(int p_149692_1_) |
protected Block |
disableStats() |
void |
dropBlockAsItem(World p_149697_1_,
int p_149697_2_,
int p_149697_3_,
int p_149697_4_,
int p_149697_5_,
int p_149697_6_) |
protected void |
dropBlockAsItem(World p_149642_1_,
int p_149642_2_,
int p_149642_3_,
int p_149642_4_,
ItemStack p_149642_5_) |
void |
dropBlockAsItemWithChance(World p_149690_1_,
int p_149690_2_,
int p_149690_3_,
int p_149690_4_,
int p_149690_5_,
float p_149690_6_,
int p_149690_7_) |
void |
dropXpOnBlockBreak(World p_149657_1_,
int p_149657_2_,
int p_149657_3_,
int p_149657_4_,
int p_149657_5_) |
void |
fillWithRain(World p_149639_1_,
int p_149639_2_,
int p_149639_3_,
int p_149639_4_) |
boolean |
func_149698_L() |
boolean |
func_149730_j() |
IIcon |
func_149735_b(int p_149735_1_,
int p_149735_2_) |
float |
getAmbientOcclusionLightValue() |
int |
getBedDirection(IBlockAccess world,
int x,
int y,
int z)
Returns the direction of the block.
|
ChunkCoordinates |
getBedSpawnPosition(IBlockAccess 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() |
double |
getBlockBoundsMaxY() |
double |
getBlockBoundsMaxZ() |
double |
getBlockBoundsMinX() |
double |
getBlockBoundsMinY() |
double |
getBlockBoundsMinZ() |
static Block |
getBlockById(int p_149729_0_) |
int |
getBlockColor() |
static Block |
getBlockFromItem(Item p_149634_0_) |
static Block |
getBlockFromName(java.lang.String p_149684_0_) |
float |
getBlockHardness(World p_149712_1_,
int p_149712_2_,
int p_149712_3_,
int p_149712_4_) |
boolean |
getBlocksMovement(IBlockAccess p_149655_1_,
int p_149655_2_,
int p_149655_3_,
int p_149655_4_) |
IIcon |
getBlockTextureFromSide(int p_149733_1_) |
boolean |
getCanBlockGrass() |
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World p_149668_1_,
int p_149668_2_,
int p_149668_3_,
int p_149668_4_) |
int |
getComparatorInputOverride(World p_149736_1_,
int p_149736_2_,
int p_149736_3_,
int p_149736_4_,
int p_149736_5_) |
CreativeTabs |
getCreativeTabToDisplayOn() |
int |
getDamageValue(World p_149643_1_,
int p_149643_2_,
int p_149643_3_,
int p_149643_4_) |
java.util.ArrayList<ItemStack> |
getDrops(World world,
int x,
int y,
int z,
int metadata,
int fortune)
This returns a complete list of items dropped from this block.
|
boolean |
getEnableStats() |
float |
getEnchantPowerBonus(World world,
int x,
int y,
int z)
Determines the amount of enchanting power this block can provide to an enchanting table.
|
int |
getExpDrop(IBlockAccess world,
int metadata,
int fortune)
Gathers how much experience this block drops when broken.
|
float |
getExplosionResistance(Entity p_149638_1_) |
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(IBlockAccess world,
int x,
int y,
int z,
ForgeDirection face)
Called when fire is updating on a neighbor block.
|
int |
getFlammability(IBlockAccess world,
int x,
int y,
int z,
ForgeDirection face)
Chance that fire will spread and consume this block.
|
int |
getHarvestLevel(int metadata)
Queries the harvest level of this item stack for the specifred tool class,
Returns -1 if this tool is not of the specified type
|
java.lang.String |
getHarvestTool(int metadata)
Queries the class of tool required to harvest this block, if null is returned
we assume that anything can harvest this block.
|
IIcon |
getIcon(IBlockAccess p_149673_1_,
int p_149673_2_,
int p_149673_3_,
int p_149673_4_,
int p_149673_5_) |
IIcon |
getIcon(int p_149691_1_,
int p_149691_2_) |
static int |
getIdFromBlock(Block p_149682_0_) |
Item |
getItem(World p_149694_1_,
int p_149694_2_,
int p_149694_3_,
int p_149694_4_) |
Item |
getItemDropped(int p_149650_1_,
java.util.Random p_149650_2_,
int p_149650_3_) |
java.lang.String |
getItemIconName() |
int |
getLightOpacity() |
int |
getLightOpacity(IBlockAccess 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() |
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
|
java.lang.String |
getLocalizedName() |
MapColor |
getMapColor(int p_149728_1_) |
Material |
getMaterial() |
int |
getMixedBrightnessForBlock(IBlockAccess p_149677_1_,
int p_149677_2_,
int p_149677_3_,
int p_149677_4_) |
int |
getMobilityFlag() |
ItemStack |
getPickBlock(MovingObjectPosition target,
World world,
int x,
int y,
int z)
Deprecated.
|
ItemStack |
getPickBlock(MovingObjectPosition target,
World world,
int x,
int y,
int z,
EntityPlayer player)
Called when a user uses the creative pick block button on this block
|
float |
getPlayerRelativeBlockHardness(EntityPlayer p_149737_1_,
World p_149737_2_,
int p_149737_3_,
int p_149737_4_,
int p_149737_5_) |
int |
getRenderBlockPass() |
int |
getRenderColor(int p_149741_1_) |
int |
getRenderType() |
AxisAlignedBB |
getSelectedBoundingBoxFromPool(World p_149633_1_,
int p_149633_2_,
int p_149633_3_,
int p_149633_4_) |
void |
getSubBlocks(Item p_149666_1_,
CreativeTabs p_149666_2_,
java.util.List p_149666_3_) |
protected java.lang.String |
getTextureName() |
boolean |
getTickRandomly() |
java.lang.String |
getUnlocalizedName() |
boolean |
getUseNeighborBrightness() |
ForgeDirection[] |
getValidRotations(World worldObj,
int x,
int y,
int z)
Get the rotations that can apply to the block at the specified coordinates.
|
boolean |
getWeakChanges(IBlockAccess world,
int x,
int y,
int z)
If this block should be notified of weak changes.
|
void |
harvestBlock(World p_149636_1_,
EntityPlayer p_149636_2_,
int p_149636_3_,
int p_149636_4_,
int p_149636_5_,
int p_149636_6_) |
boolean |
hasComparatorInputOverride() |
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 vanilla
blocks, and also want to have a tile entity on that block, may.
|
boolean |
isAir(IBlockAccess world,
int x,
int y,
int z)
Determines this block should be treated as an air block
by the rest of the code.
|
boolean |
isAssociatedBlock(Block p_149667_1_) |
boolean |
isBeaconBase(IBlockAccess 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(IBlockAccess world,
int x,
int y,
int z,
EntityLivingBase 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 |
isBlockNormalCube() |
boolean |
isBlockSolid(IBlockAccess p_149747_1_,
int p_149747_2_,
int p_149747_3_,
int p_149747_4_,
int p_149747_5_) |
boolean |
isBurning(IBlockAccess 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 |
isCollidable() |
static boolean |
isEqualTo(Block p_149680_0_,
Block p_149680_1_) |
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,
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,
ForgeDirection face)
Called when fire is updating, checks if a block face can catch fire.
|
boolean |
isFlowerPot() |
boolean |
isFoliage(IBlockAccess 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 |
isLadder(IBlockAccess world,
int x,
int y,
int z,
EntityLivingBase entity)
Checks if a player or entity can use this block to 'climb' like a ladder.
|
boolean |
isLeaves(IBlockAccess 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.
|
boolean |
isNormalCube() |
boolean |
isNormalCube(IBlockAccess world,
int x,
int y,
int z)
Return true if the block is a normal, solid cube.
|
boolean |
isOpaqueCube() |
int |
isProvidingStrongPower(IBlockAccess p_149748_1_,
int p_149748_2_,
int p_149748_3_,
int p_149748_4_,
int p_149748_5_) |
int |
isProvidingWeakPower(IBlockAccess p_149709_1_,
int p_149709_2_,
int p_149709_3_,
int p_149709_4_,
int p_149709_5_) |
boolean |
isReplaceable(IBlockAccess 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 |
isReplaceableOreGen(World world,
int x,
int y,
int z,
Block target)
Determines if the current block is replaceable by Ore veins during world generation.
|
boolean |
isSideSolid(IBlockAccess 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 |
isToolEffective(java.lang.String type,
int metadata)
Checks if the specified tool type is efficient on this block,
meaning that it digs at full speed.
|
boolean |
isWood(IBlockAccess world,
int x,
int y,
int z) |
boolean |
onBlockActivated(World p_149727_1_,
int p_149727_2_,
int p_149727_3_,
int p_149727_4_,
EntityPlayer p_149727_5_,
int p_149727_6_,
float p_149727_7_,
float p_149727_8_,
float p_149727_9_) |
void |
onBlockAdded(World p_149726_1_,
int p_149726_2_,
int p_149726_3_,
int p_149726_4_) |
void |
onBlockClicked(World p_149699_1_,
int p_149699_2_,
int p_149699_3_,
int p_149699_4_,
EntityPlayer p_149699_5_) |
void |
onBlockDestroyedByExplosion(World p_149723_1_,
int p_149723_2_,
int p_149723_3_,
int p_149723_4_,
Explosion p_149723_5_) |
void |
onBlockDestroyedByPlayer(World p_149664_1_,
int p_149664_2_,
int p_149664_3_,
int p_149664_4_,
int p_149664_5_) |
boolean |
onBlockEventReceived(World p_149696_1_,
int p_149696_2_,
int p_149696_3_,
int p_149696_4_,
int p_149696_5_,
int p_149696_6_) |
void |
onBlockExploded(World world,
int x,
int y,
int z,
Explosion explosion)
Called when the block is destroyed by an explosion.
|
void |
onBlockHarvested(World p_149681_1_,
int p_149681_2_,
int p_149681_3_,
int p_149681_4_,
int p_149681_5_,
EntityPlayer p_149681_6_) |
int |
onBlockPlaced(World p_149660_1_,
int p_149660_2_,
int p_149660_3_,
int p_149660_4_,
int p_149660_5_,
float p_149660_6_,
float p_149660_7_,
float p_149660_8_,
int p_149660_9_) |
void |
onBlockPlacedBy(World p_149689_1_,
int p_149689_2_,
int p_149689_3_,
int p_149689_4_,
EntityLivingBase p_149689_5_,
ItemStack p_149689_6_) |
void |
onBlockPreDestroy(World p_149725_1_,
int p_149725_2_,
int p_149725_3_,
int p_149725_4_,
int p_149725_5_) |
void |
onEntityCollidedWithBlock(World p_149670_1_,
int p_149670_2_,
int p_149670_3_,
int p_149670_4_,
Entity p_149670_5_) |
void |
onEntityWalking(World p_149724_1_,
int p_149724_2_,
int p_149724_3_,
int p_149724_4_,
Entity p_149724_5_) |
void |
onFallenUpon(World p_149746_1_,
int p_149746_2_,
int p_149746_3_,
int p_149746_4_,
Entity p_149746_5_,
float p_149746_6_) |
void |
onNeighborBlockChange(World p_149695_1_,
int p_149695_2_,
int p_149695_3_,
int p_149695_4_,
Block p_149695_5_) |
void |
onNeighborChange(IBlockAccess world,
int x,
int y,
int z,
int tileX,
int tileY,
int tileZ)
Called when a tile entity on a side of this block changes is created or is destroyed.
|
void |
onPlantGrow(World world,
int x,
int y,
int z,
int sourceX,
int sourceY,
int sourceZ)
Called when a plant grows on this block, only implemented for saplings using the WorldGen*Trees classes right now.
|
void |
onPostBlockPlaced(World p_149714_1_,
int p_149714_2_,
int p_149714_3_,
int p_149714_4_,
int p_149714_5_) |
int |
quantityDropped(int meta,
int fortune,
java.util.Random random)
Metadata and fortune sensitive version, this replaces the old (int meta, Random rand)
version in 1.1.
|
int |
quantityDropped(java.util.Random p_149745_1_) |
int |
quantityDroppedWithBonus(int p_149679_1_,
java.util.Random p_149679_2_) |
void |
randomDisplayTick(World p_149734_1_,
int p_149734_2_,
int p_149734_3_,
int p_149734_4_,
java.util.Random p_149734_5_) |
boolean |
recolourBlock(World world,
int x,
int y,
int z,
ForgeDirection side,
int colour)
Common way to recolour a block with an external tool
|
void |
registerBlockIcons(IIconRegister p_149651_1_) |
static void |
registerBlocks() |
boolean |
removedByPlayer(World world,
EntityPlayer player,
int x,
int y,
int z)
Deprecated.
|
boolean |
removedByPlayer(World world,
EntityPlayer player,
int x,
int y,
int z,
boolean willHarvest)
Called when a player removes a block.
|
boolean |
renderAsNormalBlock() |
boolean |
rotateBlock(World worldObj,
int x,
int y,
int z,
ForgeDirection axis)
Rotate the block.
|
void |
setBedOccupied(IBlockAccess 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 p_149676_1_,
float p_149676_2_,
float p_149676_3_,
float p_149676_4_,
float p_149676_5_,
float p_149676_6_) |
void |
setBlockBoundsBasedOnState(IBlockAccess p_149719_1_,
int p_149719_2_,
int p_149719_3_,
int p_149719_4_) |
void |
setBlockBoundsForItemRender() |
Block |
setBlockName(java.lang.String p_149663_1_) |
Block |
setBlockTextureName(java.lang.String p_149658_1_) |
Block |
setBlockUnbreakable() |
Block |
setCreativeTab(CreativeTabs p_149647_1_) |
Block |
setHardness(float p_149711_1_) |
void |
setHarvestLevel(java.lang.String toolClass,
int level)
Sets or removes the tool and level required to harvest this block.
|
void |
setHarvestLevel(java.lang.String toolClass,
int level,
int metadata)
Sets or removes the tool and level required to harvest this block.
|
Block |
setLightLevel(float p_149715_1_) |
Block |
setLightOpacity(int p_149713_1_) |
Block |
setResistance(float p_149752_1_) |
Block |
setStepSound(Block.SoundType p_149672_1_) |
Block |
setTickRandomly(boolean p_149675_1_) |
boolean |
shouldCheckWeakPower(IBlockAccess world,
int x,
int y,
int z,
int side)
Called to determine whether to allow the a block to handle its own indirect power rather than using the default rules.
|
boolean |
shouldSideBeRendered(IBlockAccess p_149646_1_,
int p_149646_2_,
int p_149646_3_,
int p_149646_4_,
int p_149646_5_) |
int |
tickRate(World p_149738_1_) |
void |
updateTick(World p_149674_1_,
int p_149674_2_,
int p_149674_3_,
int p_149674_4_,
java.util.Random p_149674_5_) |
void |
velocityToAddToEntity(World p_149640_1_,
int p_149640_2_,
int p_149640_3_,
int p_149640_4_,
Entity p_149640_5_,
Vec3 p_149640_6_) |
public static final RegistryNamespaced blockRegistry
protected java.lang.String textureName
public static final Block.SoundType soundTypeStone
public static final Block.SoundType soundTypeWood
public static final Block.SoundType soundTypeGravel
public static final Block.SoundType soundTypeGrass
public static final Block.SoundType soundTypePiston
public static final Block.SoundType soundTypeMetal
public static final Block.SoundType soundTypeGlass
public static final Block.SoundType soundTypeCloth
public static final Block.SoundType soundTypeSand
public static final Block.SoundType soundTypeSnow
public static final Block.SoundType soundTypeLadder
public static final Block.SoundType soundTypeAnvil
protected boolean opaque
protected int lightOpacity
protected boolean canBlockGrass
protected int lightValue
protected boolean useNeighborBrightness
protected float blockHardness
protected float blockResistance
protected boolean blockConstructorCalled
protected boolean enableStats
protected boolean needsRandomTick
protected boolean isBlockContainer
protected double minX
protected double minY
protected double minZ
protected double maxX
protected double maxY
protected double maxZ
public Block.SoundType stepSound
public float blockParticleGravity
protected final Material blockMaterial
public float slipperiness
protected IIcon blockIcon
public final RegistryDelegate<Block> delegate
protected java.lang.ThreadLocal<EntityPlayer> harvesters
protected java.lang.ThreadLocal<java.lang.Boolean> captureDrops
protected java.lang.ThreadLocal<java.util.List<ItemStack>> capturedDrops
protected Block(Material p_i45394_1_)
public static int getIdFromBlock(Block p_149682_0_)
public static Block getBlockById(int p_149729_0_)
public static Block getBlockFromName(java.lang.String p_149684_0_)
public boolean func_149730_j()
public int getLightOpacity()
public boolean getCanBlockGrass()
public int getLightValue()
public boolean getUseNeighborBrightness()
public Material getMaterial()
public MapColor getMapColor(int p_149728_1_)
public static void registerBlocks()
public Block setStepSound(Block.SoundType p_149672_1_)
public Block setLightOpacity(int p_149713_1_)
public Block setLightLevel(float p_149715_1_)
public Block setResistance(float p_149752_1_)
public boolean isBlockNormalCube()
public boolean isNormalCube()
public boolean renderAsNormalBlock()
public boolean getBlocksMovement(IBlockAccess p_149655_1_, int p_149655_2_, int p_149655_3_, int p_149655_4_)
public int getRenderType()
public Block setHardness(float p_149711_1_)
public Block setBlockUnbreakable()
public float getBlockHardness(World p_149712_1_, int p_149712_2_, int p_149712_3_, int p_149712_4_)
public Block setTickRandomly(boolean p_149675_1_)
public boolean getTickRandomly()
@Deprecated public boolean hasTileEntity()
public final void setBlockBounds(float p_149676_1_, float p_149676_2_, float p_149676_3_, float p_149676_4_, float p_149676_5_, float p_149676_6_)
public int getMixedBrightnessForBlock(IBlockAccess p_149677_1_, int p_149677_2_, int p_149677_3_, int p_149677_4_)
public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_)
public boolean isBlockSolid(IBlockAccess p_149747_1_, int p_149747_2_, int p_149747_3_, int p_149747_4_, int p_149747_5_)
public IIcon getIcon(IBlockAccess p_149673_1_, int p_149673_2_, int p_149673_3_, int p_149673_4_, int p_149673_5_)
public IIcon getIcon(int p_149691_1_, int p_149691_2_)
public void addCollisionBoxesToList(World p_149743_1_, int p_149743_2_, int p_149743_3_, int p_149743_4_, AxisAlignedBB p_149743_5_, java.util.List p_149743_6_, Entity p_149743_7_)
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
public final IIcon getBlockTextureFromSide(int p_149733_1_)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World p_149633_1_, int p_149633_2_, int p_149633_3_, int p_149633_4_)
public boolean isOpaqueCube()
public boolean canCollideCheck(int p_149678_1_, boolean p_149678_2_)
public boolean isCollidable()
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, java.util.Random p_149674_5_)
public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, java.util.Random p_149734_5_)
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
public int tickRate(World p_149738_1_)
public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
public void breakBlock(World p_149749_1_, int p_149749_2_, int p_149749_3_, int p_149749_4_, Block p_149749_5_, int p_149749_6_)
public int quantityDropped(java.util.Random p_149745_1_)
public Item getItemDropped(int p_149650_1_, java.util.Random p_149650_2_, int p_149650_3_)
public float getPlayerRelativeBlockHardness(EntityPlayer p_149737_1_, World p_149737_2_, int p_149737_3_, int p_149737_4_, int p_149737_5_)
public final void dropBlockAsItem(World p_149697_1_, int p_149697_2_, int p_149697_3_, int p_149697_4_, int p_149697_5_, int p_149697_6_)
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
protected void dropBlockAsItem(World p_149642_1_, int p_149642_2_, int p_149642_3_, int p_149642_4_, ItemStack p_149642_5_)
public void dropXpOnBlockBreak(World p_149657_1_, int p_149657_2_, int p_149657_3_, int p_149657_4_, int p_149657_5_)
public int damageDropped(int p_149692_1_)
public float getExplosionResistance(Entity p_149638_1_)
public MovingObjectPosition collisionRayTrace(World p_149731_1_, int p_149731_2_, int p_149731_3_, int p_149731_4_, Vec3 p_149731_5_, Vec3 p_149731_6_)
public void onBlockDestroyedByExplosion(World p_149723_1_, int p_149723_2_, int p_149723_3_, int p_149723_4_, Explosion p_149723_5_)
public boolean canReplace(World p_149705_1_, int p_149705_2_, int p_149705_3_, int p_149705_4_, int p_149705_5_, ItemStack p_149705_6_)
public int getRenderBlockPass()
public boolean canPlaceBlockOnSide(World p_149707_1_, int p_149707_2_, int p_149707_3_, int p_149707_4_, int p_149707_5_)
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_)
public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
public void onEntityWalking(World p_149724_1_, int p_149724_2_, int p_149724_3_, int p_149724_4_, Entity p_149724_5_)
public int onBlockPlaced(World p_149660_1_, int p_149660_2_, int p_149660_3_, int p_149660_4_, int p_149660_5_, float p_149660_6_, float p_149660_7_, float p_149660_8_, int p_149660_9_)
public void onBlockClicked(World p_149699_1_, int p_149699_2_, int p_149699_3_, int p_149699_4_, EntityPlayer p_149699_5_)
public void velocityToAddToEntity(World p_149640_1_, int p_149640_2_, int p_149640_3_, int p_149640_4_, Entity p_149640_5_, Vec3 p_149640_6_)
public void setBlockBoundsBasedOnState(IBlockAccess p_149719_1_, int p_149719_2_, int p_149719_3_, int p_149719_4_)
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 p_149741_1_)
public int colorMultiplier(IBlockAccess p_149720_1_, int p_149720_2_, int p_149720_3_, int p_149720_4_)
public int isProvidingWeakPower(IBlockAccess p_149709_1_, int p_149709_2_, int p_149709_3_, int p_149709_4_, int p_149709_5_)
public boolean canProvidePower()
public void onEntityCollidedWithBlock(World p_149670_1_, int p_149670_2_, int p_149670_3_, int p_149670_4_, Entity p_149670_5_)
public int isProvidingStrongPower(IBlockAccess p_149748_1_, int p_149748_2_, int p_149748_3_, int p_149748_4_, int p_149748_5_)
public void setBlockBoundsForItemRender()
public void harvestBlock(World p_149636_1_, EntityPlayer p_149636_2_, int p_149636_3_, int p_149636_4_, int p_149636_5_, int p_149636_6_)
protected boolean canSilkHarvest()
protected ItemStack createStackedBlock(int p_149644_1_)
public int quantityDroppedWithBonus(int p_149679_1_, java.util.Random p_149679_2_)
public boolean canBlockStay(World p_149718_1_, int p_149718_2_, int p_149718_3_, int p_149718_4_)
public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)
public void onPostBlockPlaced(World p_149714_1_, int p_149714_2_, int p_149714_3_, int p_149714_4_, int p_149714_5_)
public Block setBlockName(java.lang.String p_149663_1_)
public java.lang.String getLocalizedName()
public java.lang.String getUnlocalizedName()
public boolean onBlockEventReceived(World p_149696_1_, int p_149696_2_, int p_149696_3_, int p_149696_4_, int p_149696_5_, int p_149696_6_)
public boolean getEnableStats()
protected Block disableStats()
public int getMobilityFlag()
public float getAmbientOcclusionLightValue()
public void onFallenUpon(World p_149746_1_, int p_149746_2_, int p_149746_3_, int p_149746_4_, Entity p_149746_5_, float p_149746_6_)
public int getDamageValue(World p_149643_1_, int p_149643_2_, int p_149643_3_, int p_149643_4_)
public void getSubBlocks(Item p_149666_1_, CreativeTabs p_149666_2_, java.util.List p_149666_3_)
public Block setCreativeTab(CreativeTabs p_149647_1_)
public void onBlockHarvested(World p_149681_1_, int p_149681_2_, int p_149681_3_, int p_149681_4_, int p_149681_5_, EntityPlayer p_149681_6_)
public CreativeTabs getCreativeTabToDisplayOn()
public void onBlockPreDestroy(World p_149725_1_, int p_149725_2_, int p_149725_3_, int p_149725_4_, int p_149725_5_)
public void fillWithRain(World p_149639_1_, int p_149639_2_, int p_149639_3_, int p_149639_4_)
public boolean isFlowerPot()
public boolean func_149698_L()
public boolean canDropFromExplosion(Explosion p_149659_1_)
public boolean isAssociatedBlock(Block p_149667_1_)
public boolean hasComparatorInputOverride()
public int getComparatorInputOverride(World p_149736_1_, int p_149736_2_, int p_149736_3_, int p_149736_4_, int p_149736_5_)
public Block setBlockTextureName(java.lang.String p_149658_1_)
protected java.lang.String getTextureName()
public IIcon func_149735_b(int p_149735_1_, int p_149735_2_)
public void registerBlockIcons(IIconRegister p_149651_1_)
public java.lang.String getItemIconName()
public int getLightValue(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionpublic boolean isLadder(IBlockAccess world, int x, int y, int z, EntityLivingBase entity)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionentity
- The entity trying to use the ladder, CAN be null.public boolean isNormalCube(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionpublic boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionside
- The side to checkpublic boolean isReplaceable(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionpublic boolean isBurning(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionpublic boolean isAir(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionpublic boolean canHarvestBlock(EntityPlayer player, int meta)
player
- The player damaging the block, may be nullmeta
- The block's current metadatapublic boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest)
world
- The current worldplayer
- The player damaging the block, may be nullx
- X Positiony
- Y positionz
- Z positionwillHarvest
- True if Block.harvestBlock will be called after this, if the return in true.
Can be useful to delay the destruction of tile entities till after harvestBlock@Deprecated public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z)
public int getFlammability(IBlockAccess world, int x, int y, int z, ForgeDirection face)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionface
- The face that the fire is coming frompublic boolean isFlammable(IBlockAccess world, int x, int y, int z, ForgeDirection face)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionface
- The face that the fire is coming frompublic int getFireSpreadSpeed(IBlockAccess world, int x, int y, int z, ForgeDirection face)
world
- The current worldx
- The blocks X positiony
- The blocks Y positionz
- The blocks Z positionface
- The face that the fire is coming frompublic boolean isFireSource(World world, int x, int y, int z, 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 frompublic boolean hasTileEntity(int metadata)
metadata
- Metadata of the current blockpublic TileEntity createTileEntity(World world, int metadata)
metadata
- The Metadata of the current blockpublic int quantityDropped(int meta, int fortune, java.util.Random random)
meta
- Blocks Metadatafortune
- Current item fortune levelrandom
- Random number generatorpublic java.util.ArrayList<ItemStack> getDrops(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 levelpublic 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 metadatapublic boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world, int x, int y, int z)
type
- The Mob Category Typeworld
- The current worldx
- The X Positiony
- The Y Positionz
- The Z Positionpublic boolean isBed(IBlockAccess world, int x, int y, int z, EntityLivingBase player)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionplayer
- The player or camera entity, null in some cases.public ChunkCoordinates getBedSpawnPosition(IBlockAccess 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(IBlockAccess 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 Positionpublic boolean isBedFoot(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic void beginLeavesDecay(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean canSustainLeaves(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean isLeaves(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean canBeReplacedByLeaves(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean isWood(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean isReplaceableOreGen(World world, int x, int y, int z, Block target)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positiontarget
- The generic target block the gen is looking for, Standards define stone
for overworld generation, and neatherack for the nether.public 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 Positionpublic void onBlockExploded(World world, int x, int y, int z, Explosion explosion)
world
- The current worldx
- X Positiony
- Y Positionz
- Z PositionExplosion
- The explosion instance affecting the blockpublic 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 connectionpublic boolean canPlaceTorchOnTop(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionpublic boolean canRenderInPass(int pass)
pass
- The pass in questionpublic ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player)
target
- The full target the player is looking at@Deprecated public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
public boolean isFoliage(IBlockAccess world, int x, int y, int z)
public boolean addHitEffects(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 addDestroyEffects(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(IBlockAccess world, int x, int y, int z, ForgeDirection direction, IPlantable plantable)
world
- The current worldx
- X Positiony
- Y Positionz
- Z positiondirection
- The direction relative to the given position the plant wants to be, typically its UPplantable
- The plant that wants to checkpublic void onPlantGrow(World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ)
world
- Current worldx
- Soil Xy
- Soil Yz
- Soil ZsourceX
- Plant growth location XsourceY
- Plant growth location YsourceZ
- Plant growth location Zpublic boolean isFertile(World world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z positionpublic int getLightOpacity(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y Positionz
- Z positionpublic boolean canEntityDestroy(IBlockAccess world, int x, int y, int z, Entity entity)
world
- The current worldx
- X Positiony
- Y Positionz
- Z positionpublic boolean isBeaconBase(IBlockAccess 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 Positionpublic boolean rotateBlock(World worldObj, int x, int y, int z, ForgeDirection axis)
worldObj
- The worldx
- X positiony
- Y positionz
- Z positionaxis
- The axis to rotate aroundpublic ForgeDirection[] getValidRotations(World worldObj, int x, int y, int z)
worldObj
- The worldx
- X positiony
- Y positionz
- Z positionpublic float getEnchantPowerBonus(World world, int x, int y, int z)
world
- The Worldx
- X positiony
- Y positionz
- Z positionpublic boolean recolourBlock(World world, int x, int y, int z, ForgeDirection side, int colour)
world
- The worldx
- Xy
- Yz
- Zside
- The side hit with the colouring toolcolour
- The colour to change topublic int getExpDrop(IBlockAccess world, int metadata, int fortune)
world
- The worldmetadata
- fortune
- public void onNeighborChange(IBlockAccess world, int x, int y, int z, int tileX, int tileY, int tileZ)
world
- The worldx
- The x position of this block instancey
- The y position of this block instancez
- The z position of this block instancetileX
- The x position of the tile that changedtileY
- The y position of the tile that changedtileZ
- The z position of the tile that changedpublic boolean shouldCheckWeakPower(IBlockAccess world, int x, int y, int z, int side)
world
- The worldx
- The x position of this block instancey
- The y position of this block instancez
- The z position of this block instanceside
- The INPUT side of the block to be powered - ie the opposite of this block's output sidepublic boolean getWeakChanges(IBlockAccess world, int x, int y, int z)
world
- The current worldx
- X Positiony
- Y positionz
- Z positionside
- The side to checkpublic void setHarvestLevel(java.lang.String toolClass, int level)
toolClass
- Classlevel
- Harvest level:
Wood: 0
Stone: 1
Iron: 2
Diamond: 3
Gold: 0public void setHarvestLevel(java.lang.String toolClass, int level, int metadata)
toolClass
- Classlevel
- Harvest level:
Wood: 0
Stone: 1
Iron: 2
Diamond: 3
Gold: 0metadata
- The specific metadata to setpublic java.lang.String getHarvestTool(int metadata)
metadata
- public int getHarvestLevel(int metadata)
stack
- This item stack instancepublic boolean isToolEffective(java.lang.String type, int metadata)
type
- metadata
- protected java.util.List<ItemStack> captureDrops(boolean start)