YATS/Forge Documentation
|
Public Member Functions | |
Block (int par1, Material par2Material) | |
Block | setStepSound (StepSound par1StepSound) |
Block | setLightOpacity (int par1) |
Block | setLightValue (float par1) |
Block | setResistance (float par1) |
boolean | renderAsNormalBlock () |
boolean | getBlocksMovement (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
int | getRenderType () |
Block | setHardness (float par1) |
Block | setBlockUnbreakable () |
float | getBlockHardness (World par1World, int par2, int par3, int par4) |
Block | setTickRandomly (boolean par1) |
boolean | getTickRandomly () |
boolean | hasTileEntity () |
final void | setBlockBounds (float par1, float par2, float par3, float par4, float par5, float par6) |
float | getBlockBrightness (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
int | getMixedBrightnessForBlock (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
boolean | shouldSideBeRendered (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) |
boolean | isBlockSolid (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) |
Icon | getBlockTexture (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) |
Icon | getIcon (int par1, int par2) |
void | addCollisionBoxesToList (World par1World, int par2, int par3, int par4, AxisAlignedBB par5AxisAlignedBB, List par6List, Entity par7Entity) |
final Icon | getBlockTextureFromSide (int par1) |
AxisAlignedBB | getSelectedBoundingBoxFromPool (World par1World, int par2, int par3, int par4) |
AxisAlignedBB | getCollisionBoundingBoxFromPool (World par1World, int par2, int par3, int par4) |
boolean | isOpaqueCube () |
boolean | canCollideCheck (int par1, boolean par2) |
boolean | isCollidable () |
void | updateTick (World par1World, int par2, int par3, int par4, Random par5Random) |
void | randomDisplayTick (World par1World, int par2, int par3, int par4, Random par5Random) |
void | onBlockDestroyedByPlayer (World par1World, int par2, int par3, int par4, int par5) |
void | onNeighborBlockChange (World par1World, int par2, int par3, int par4, int par5) |
int | tickRate (World par1World) |
void | onBlockAdded (World par1World, int par2, int par3, int par4) |
void | breakBlock (World par1World, int par2, int par3, int par4, int par5, int par6) |
int | quantityDropped (Random par1Random) |
int | idDropped (int par1, Random par2Random, int par3) |
float | getPlayerRelativeBlockHardness (EntityPlayer par1EntityPlayer, World par2World, int par3, int par4, int par5) |
final void | dropBlockAsItem (World par1World, int par2, int par3, int par4, int par5, int par6) |
void | dropBlockAsItemWithChance (World par1World, int par2, int par3, int par4, int par5, float par6, int par7) |
int | damageDropped (int par1) |
float | getExplosionResistance (Entity par1Entity) |
MovingObjectPosition | collisionRayTrace (World par1World, int par2, int par3, int par4, Vec3 par5Vec3, Vec3 par6Vec3) |
void | onBlockDestroyedByExplosion (World par1World, int par2, int par3, int par4, Explosion par5Explosion) |
boolean | canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5, ItemStack par6ItemStack) |
int | getRenderBlockPass () |
boolean | canPlaceBlockOnSide (World par1World, int par2, int par3, int par4, int par5) |
boolean | canPlaceBlockAt (World par1World, int par2, int par3, int par4) |
boolean | onBlockActivated (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) |
void | onEntityWalking (World par1World, int par2, int par3, int par4, Entity par5Entity) |
int | onBlockPlaced (World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9) |
void | onBlockClicked (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer) |
void | velocityToAddToEntity (World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3) |
void | setBlockBoundsBasedOnState (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
final double | getBlockBoundsMinX () |
final double | getBlockBoundsMaxX () |
final double | getBlockBoundsMinY () |
final double | getBlockBoundsMaxY () |
final double | getBlockBoundsMinZ () |
final double | getBlockBoundsMaxZ () |
int | getBlockColor () |
int | getRenderColor (int par1) |
int | isProvidingWeakPower (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) |
int | colorMultiplier (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
boolean | canProvidePower () |
void | onEntityCollidedWithBlock (World par1World, int par2, int par3, int par4, Entity par5Entity) |
int | isProvidingStrongPower (IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) |
void | setBlockBoundsForItemRender () |
void | harvestBlock (World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6) |
int | quantityDroppedWithBonus (int par1, Random par2Random) |
boolean | canBlockStay (World par1World, int par2, int par3, int par4) |
void | onBlockPlacedBy (World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack) |
void | onPostBlockPlaced (World par1World, int par2, int par3, int par4, int par5) |
Block | setUnlocalizedName (String par1Str) |
String | getLocalizedName () |
String | getUnlocalizedName () |
String | getUnlocalizedName2 () |
boolean | onBlockEventReceived (World par1World, int par2, int par3, int par4, int par5, int par6) |
boolean | getEnableStats () |
int | getMobilityFlag () |
float | getAmbientOcclusionLightValue (IBlockAccess par1IBlockAccess, int par2, int par3, int par4) |
void | onFallenUpon (World par1World, int par2, int par3, int par4, Entity par5Entity, float par6) |
int | idPicked (World par1World, int par2, int par3, int par4) |
int | getDamageValue (World par1World, int par2, int par3, int par4) |
void | getSubBlocks (int par1, CreativeTabs par2CreativeTabs, List par3List) |
Block | setCreativeTab (CreativeTabs par1CreativeTabs) |
void | onBlockHarvested (World par1World, int par2, int par3, int par4, int par5, EntityPlayer par6EntityPlayer) |
CreativeTabs | getCreativeTabToDisplayOn () |
void | onSetBlockIDWithMetaData (World par1World, int par2, int par3, int par4, int par5) |
void | fillWithRain (World par1World, int par2, int par3, int par4) |
boolean | isFlowerPot () |
boolean | func_82506_l () |
boolean | canDropFromExplosion (Explosion par1Explosion) |
boolean | isAssociatedBlockID (int par1) |
boolean | hasComparatorInputOverride () |
int | getComparatorInputOverride (World par1World, int par2, int par3, int par4, int par5) |
void | registerIcons (IconRegister par1IconRegister) |
String | getItemIconName () |
int | getLightValue (IBlockAccess world, int x, int y, int z) |
boolean | isLadder (World world, int x, int y, int z, EntityLiving entity) |
boolean | isLadder (World world, int x, int y, int z) |
boolean | isBlockNormalCube (World world, int x, int y, int z) |
boolean | isBlockSolidOnSide (World world, int x, int y, int z, ForgeDirection side) |
boolean | isBlockReplaceable (World world, int x, int y, int z) |
boolean | isBlockBurning (World world, int x, int y, int z) |
boolean | isAirBlock (World world, int x, int y, int z) |
boolean | canHarvestBlock (EntityPlayer player, int meta) |
boolean | removeBlockByPlayer (World world, EntityPlayer player, int x, int y, int z) |
void | addCreativeItems (ArrayList itemList) |
int | getFlammability (IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face) |
boolean | isFlammable (IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face) |
int | getFireSpreadSpeed (World world, int x, int y, int z, int metadata, ForgeDirection face) |
boolean | isFireSource (World world, int x, int y, int z, int metadata, ForgeDirection side) |
boolean | hasTileEntity (int metadata) |
TileEntity | createTileEntity (World world, int metadata) |
int | quantityDropped (int meta, int fortune, Random random) |
ArrayList< ItemStack > | getBlockDropped (World world, int x, int y, int z, int metadata, int fortune) |
boolean | canSilkHarvest (World world, EntityPlayer player, int x, int y, int z, int metadata) |
boolean | canCreatureSpawn (EnumCreatureType type, World world, int x, int y, int z) |
boolean | isBed (World world, int x, int y, int z, EntityLiving player) |
ChunkCoordinates | getBedSpawnPosition (World world, int x, int y, int z, EntityPlayer player) |
void | setBedOccupied (World world, int x, int y, int z, EntityPlayer player, boolean occupied) |
int | getBedDirection (IBlockAccess world, int x, int y, int z) |
boolean | isBedFoot (IBlockAccess world, int x, int y, int z) |
void | beginLeavesDecay (World world, int x, int y, int z) |
boolean | canSustainLeaves (World world, int x, int y, int z) |
boolean | isLeaves (World world, int x, int y, int z) |
boolean | canBeReplacedByLeaves (World world, int x, int y, int z) |
boolean | isWood (World world, int x, int y, int z) |
boolean | isGenMineableReplaceable (World world, int x, int y, int z, int target) |
float | getExplosionResistance (Entity par1Entity, World world, int x, int y, int z, double explosionX, double explosionY, double explosionZ) |
void | onBlockExploded (World world, int x, int y, int z, Explosion explosion) |
boolean | canConnectRedstone (IBlockAccess world, int x, int y, int z, int side) |
boolean | canPlaceTorchOnTop (World world, int x, int y, int z) |
boolean | canRenderInPass (int pass) |
ItemStack | getPickBlock (MovingObjectPosition target, World world, int x, int y, int z) |
boolean | isBlockFoliage (World world, int x, int y, int z) |
boolean | addBlockHitEffects (World worldObj, MovingObjectPosition target, EffectRenderer effectRenderer) |
boolean | addBlockDestroyEffects (World world, int x, int y, int z, int meta, EffectRenderer effectRenderer) |
boolean | canSustainPlant (World world, int x, int y, int z, ForgeDirection direction, IPlantable plant) |
void | onPlantGrow (World world, int x, int y, int z, int sourceX, int sourceY, int sourceZ) |
boolean | isFertile (World world, int x, int y, int z) |
int | getLightOpacity (World world, int x, int y, int z) |
boolean | canDragonDestroy (World world, int x, int y, int z) |
boolean | isBeaconBase (World worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) |
boolean | rotateBlock (World worldObj, int x, int y, int z, ForgeDirection axis) |
ForgeDirection[] | getValidRotations (World worldObj, int x, int y, int z) |
float | getEnchantPowerBonus (World world, int x, int y, int z) |
int | getEnchantPower (World world, int x, int y, int z) |
boolean | recolourBlock (World world, int x, int y, int z, ForgeDirection side, int colour) |
Static Public Member Functions | |
static boolean | isNormalCube (int par0) |
static boolean | isAssociatedBlockID (int par0, int par1) |
static void | setBurnProperties (int id, int encouragement, int flammability) |
Public Attributes | |
final int | blockID |
float | blockHardness |
float | blockResistance |
StepSound | stepSound |
float | blockParticleGravity |
final Material | blockMaterial |
float | slipperiness |
Static Public Attributes | |
static final StepSound | soundPowderFootstep = new StepSound("stone", 1.0F, 1.0F) |
static final StepSound | soundWoodFootstep = new StepSound("wood", 1.0F, 1.0F) |
static final StepSound | soundGravelFootstep = new StepSound("gravel", 1.0F, 1.0F) |
static final StepSound | soundGrassFootstep = new StepSound("grass", 1.0F, 1.0F) |
static final StepSound | soundStoneFootstep = new StepSound("stone", 1.0F, 1.0F) |
static final StepSound | soundMetalFootstep = new StepSound("stone", 1.0F, 1.5F) |
static final StepSound | soundGlassFootstep = new StepSoundStone("stone", 1.0F, 1.0F) |
static final StepSound | soundClothFootstep = new StepSound("cloth", 1.0F, 1.0F) |
static final StepSound | soundSandFootstep = new StepSound("sand", 1.0F, 1.0F) |
static final StepSound | soundSnowFootstep = new StepSound("snow", 1.0F, 1.0F) |
static final StepSound | soundLadderFootstep = new StepSoundSand("ladder", 1.0F, 1.0F) |
static final StepSound | soundAnvilFootstep = new StepSoundAnvil("anvil", 0.3F, 1.0F) |
static final Block[] | blocksList = new Block[4096] |
static final boolean[] | opaqueCubeLookup = new boolean[4096] |
static final int[] | lightOpacity = new int[4096] |
static final boolean[] | canBlockGrass = new boolean[4096] |
static final int[] | lightValue = new int[4096] |
static boolean[] | useNeighborBrightness = new boolean[4096] |
static final Block | stone = (new BlockStone(1)).setHardness(1.5F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("stone") |
static final BlockGrass | grass = (BlockGrass)(new BlockGrass(2)).setHardness(0.6F).setStepSound(soundGrassFootstep).setUnlocalizedName("grass") |
static final Block | dirt = (new BlockDirt(3)).setHardness(0.5F).setStepSound(soundGravelFootstep).setUnlocalizedName("dirt") |
static final Block | cobblestone = (new Block(4, Material.rock)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("stonebrick").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | planks = (new BlockWood(5)).setHardness(2.0F).setResistance(5.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("wood") |
static final Block | sapling = (new BlockSapling(6)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("sapling") |
static final Block | bedrock = (new Block(7, Material.rock)).setBlockUnbreakable().setResistance(6000000.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("bedrock").disableStats().setCreativeTab(CreativeTabs.tabBlock) |
static final BlockFluid | waterMoving = (BlockFluid)(new BlockFlowing(8, Material.water)).setHardness(100.0F).setLightOpacity(3).setUnlocalizedName("water").disableStats() |
static final Block | waterStill = (new BlockStationary(9, Material.water)).setHardness(100.0F).setLightOpacity(3).setUnlocalizedName("water").disableStats() |
static final BlockFluid | lavaMoving = (BlockFluid)(new BlockFlowing(10, Material.lava)).setHardness(0.0F).setLightValue(1.0F).setUnlocalizedName("lava").disableStats() |
static final Block | lavaStill = (new BlockStationary(11, Material.lava)).setHardness(100.0F).setLightValue(1.0F).setUnlocalizedName("lava").disableStats() |
static final Block | sand = (new BlockSand(12)).setHardness(0.5F).setStepSound(soundSandFootstep).setUnlocalizedName("sand") |
static final Block | gravel = (new BlockGravel(13)).setHardness(0.6F).setStepSound(soundGravelFootstep).setUnlocalizedName("gravel") |
static final Block | oreGold = (new BlockOre(14)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreGold") |
static final Block | oreIron = (new BlockOre(15)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreIron") |
static final Block | oreCoal = (new BlockOre(16)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreCoal") |
static final Block | wood = (new BlockLog(17)).setHardness(2.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("log") |
static final BlockLeaves | leaves = (BlockLeaves)(new BlockLeaves(18)).setHardness(0.2F).setLightOpacity(1).setStepSound(soundGrassFootstep).setUnlocalizedName("leaves") |
static final Block | sponge = (new BlockSponge(19)).setHardness(0.6F).setStepSound(soundGrassFootstep).setUnlocalizedName("sponge") |
static final Block | glass = (new BlockGlass(20, Material.glass, false)).setHardness(0.3F).setStepSound(soundGlassFootstep).setUnlocalizedName("glass") |
static final Block | oreLapis = (new BlockOre(21)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreLapis") |
static final Block | blockLapis = (new Block(22, Material.rock)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("blockLapis").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | dispenser = (new BlockDispenser(23)).setHardness(3.5F).setStepSound(soundStoneFootstep).setUnlocalizedName("dispenser") |
static final Block | sandStone = (new BlockSandStone(24)).setStepSound(soundStoneFootstep).setHardness(0.8F).setUnlocalizedName("sandStone") |
static final Block | music = (new BlockNote(25)).setHardness(0.8F).setUnlocalizedName("musicBlock") |
static final Block | bed = (new BlockBed(26)).setHardness(0.2F).setUnlocalizedName("bed").disableStats() |
static final Block | railPowered = (new BlockRailPowered(27)).setHardness(0.7F).setStepSound(soundMetalFootstep).setUnlocalizedName("goldenRail") |
static final Block | railDetector = (new BlockDetectorRail(28)).setHardness(0.7F).setStepSound(soundMetalFootstep).setUnlocalizedName("detectorRail") |
static final BlockPistonBase | pistonStickyBase = (BlockPistonBase)(new BlockPistonBase(29, true)).setUnlocalizedName("pistonStickyBase") |
static final Block | web = (new BlockWeb(30)).setLightOpacity(1).setHardness(4.0F).setUnlocalizedName("web") |
static final BlockTallGrass | tallGrass = (BlockTallGrass)(new BlockTallGrass(31)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("tallgrass") |
static final BlockDeadBush | deadBush = (BlockDeadBush)(new BlockDeadBush(32)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("deadbush") |
static final BlockPistonBase | pistonBase = (BlockPistonBase)(new BlockPistonBase(33, false)).setUnlocalizedName("pistonBase") |
static final BlockPistonExtension | pistonExtension = new BlockPistonExtension(34) |
static final Block | cloth = (new BlockCloth()).setHardness(0.8F).setStepSound(soundClothFootstep).setUnlocalizedName("cloth") |
static final BlockPistonMoving | pistonMoving = new BlockPistonMoving(36) |
static final BlockFlower | plantYellow = (BlockFlower)(new BlockFlower(37)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("flower") |
static final BlockFlower | plantRed = (BlockFlower)(new BlockFlower(38)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("rose") |
static final BlockFlower | mushroomBrown = (BlockFlower)(new BlockMushroom(39, "mushroom_brown")).setHardness(0.0F).setStepSound(soundGrassFootstep).setLightValue(0.125F).setUnlocalizedName("mushroom") |
static final BlockFlower | mushroomRed = (BlockFlower)(new BlockMushroom(40, "mushroom_red")).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("mushroom") |
static final Block | blockGold = (new BlockOreStorage(41)).setHardness(3.0F).setResistance(10.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("blockGold") |
static final Block | blockIron = (new BlockOreStorage(42)).setHardness(5.0F).setResistance(10.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("blockIron") |
static final BlockHalfSlab | stoneDoubleSlab = (BlockHalfSlab)(new BlockStep(43, true)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("stoneSlab") |
static final BlockHalfSlab | stoneSingleSlab = (BlockHalfSlab)(new BlockStep(44, false)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("stoneSlab") |
static final Block | brick = (new Block(45, Material.rock)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("brick").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | tnt = (new BlockTNT(46)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("tnt") |
static final Block | bookShelf = (new BlockBookshelf(47)).setHardness(1.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("bookshelf") |
static final Block | cobblestoneMossy = (new Block(48, Material.rock)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("stoneMoss").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | obsidian = (new BlockObsidian(49)).setHardness(50.0F).setResistance(2000.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("obsidian") |
static final Block | torchWood = (new BlockTorch(50)).setHardness(0.0F).setLightValue(0.9375F).setStepSound(soundWoodFootstep).setUnlocalizedName("torch") |
static final BlockFire | fire = (BlockFire)(new BlockFire(51)).setHardness(0.0F).setLightValue(1.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("fire").disableStats() |
static final Block | mobSpawner = (new BlockMobSpawner(52)).setHardness(5.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("mobSpawner").disableStats() |
static final Block | stairsWoodOak = (new BlockStairs(53, planks, 0)).setUnlocalizedName("stairsWood") |
static final BlockChest | chest = (BlockChest)(new BlockChest(54, 0)).setHardness(2.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("chest") |
static final BlockRedstoneWire | redstoneWire = (BlockRedstoneWire)(new BlockRedstoneWire(55)).setHardness(0.0F).setStepSound(soundPowderFootstep).setUnlocalizedName("redstoneDust").disableStats() |
static final Block | oreDiamond = (new BlockOre(56)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreDiamond") |
static final Block | blockDiamond = (new BlockOreStorage(57)).setHardness(5.0F).setResistance(10.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("blockDiamond") |
static final Block | workbench = (new BlockWorkbench(58)).setHardness(2.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("workbench") |
static final Block | crops = (new BlockCrops(59)).setUnlocalizedName("crops") |
static final Block | tilledField = (new BlockFarmland(60)).setHardness(0.6F).setStepSound(soundGravelFootstep).setUnlocalizedName("farmland") |
static final Block | furnaceIdle = (new BlockFurnace(61, false)).setHardness(3.5F).setStepSound(soundStoneFootstep).setUnlocalizedName("furnace").setCreativeTab(CreativeTabs.tabDecorations) |
static final Block | furnaceBurning = (new BlockFurnace(62, true)).setHardness(3.5F).setStepSound(soundStoneFootstep).setLightValue(0.875F).setUnlocalizedName("furnace") |
static final Block | signPost = (new BlockSign(63, TileEntitySign.class, true)).setHardness(1.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("sign").disableStats() |
static final Block | doorWood = (new BlockDoor(64, Material.wood)).setHardness(3.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("doorWood").disableStats() |
static final Block | ladder = (new BlockLadder(65)).setHardness(0.4F).setStepSound(soundLadderFootstep).setUnlocalizedName("ladder") |
static final Block | rail = (new BlockRail(66)).setHardness(0.7F).setStepSound(soundMetalFootstep).setUnlocalizedName("rail") |
static final Block | stairsCobblestone = (new BlockStairs(67, cobblestone, 0)).setUnlocalizedName("stairsStone") |
static final Block | signWall = (new BlockSign(68, TileEntitySign.class, false)).setHardness(1.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("sign").disableStats() |
static final Block | lever = (new BlockLever(69)).setHardness(0.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("lever") |
static final Block | pressurePlateStone = (new BlockPressurePlate(70, "stone", Material.rock, EnumMobType.mobs)).setHardness(0.5F).setStepSound(soundStoneFootstep).setUnlocalizedName("pressurePlate") |
static final Block | doorIron = (new BlockDoor(71, Material.iron)).setHardness(5.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("doorIron").disableStats() |
static final Block | pressurePlatePlanks = (new BlockPressurePlate(72, "wood", Material.wood, EnumMobType.everything)).setHardness(0.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("pressurePlate") |
static final Block | oreRedstone = (new BlockRedstoneOre(73, false)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreRedstone").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | oreRedstoneGlowing = (new BlockRedstoneOre(74, true)).setLightValue(0.625F).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreRedstone") |
static final Block | torchRedstoneIdle = (new BlockRedstoneTorch(75, false)).setHardness(0.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("notGate") |
static final Block | torchRedstoneActive = (new BlockRedstoneTorch(76, true)).setHardness(0.0F).setLightValue(0.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("notGate").setCreativeTab(CreativeTabs.tabRedstone) |
static final Block | stoneButton = (new BlockButtonStone(77)).setHardness(0.5F).setStepSound(soundStoneFootstep).setUnlocalizedName("button") |
static final Block | snow = (new BlockSnow(78)).setHardness(0.1F).setStepSound(soundSnowFootstep).setUnlocalizedName("snow").setLightOpacity(0) |
static final Block | ice = (new BlockIce(79)).setHardness(0.5F).setLightOpacity(3).setStepSound(soundGlassFootstep).setUnlocalizedName("ice") |
static final Block | blockSnow = (new BlockSnowBlock(80)).setHardness(0.2F).setStepSound(soundSnowFootstep).setUnlocalizedName("snow") |
static final Block | cactus = (new BlockCactus(81)).setHardness(0.4F).setStepSound(soundClothFootstep).setUnlocalizedName("cactus") |
static final Block | blockClay = (new BlockClay(82)).setHardness(0.6F).setStepSound(soundGravelFootstep).setUnlocalizedName("clay") |
static final Block | reed = (new BlockReed(83)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("reeds").disableStats() |
static final Block | jukebox = (new BlockJukeBox(84)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("jukebox") |
static final Block | fence = (new BlockFence(85, "wood", Material.wood)).setHardness(2.0F).setResistance(5.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("fence") |
static final Block | pumpkin = (new BlockPumpkin(86, false)).setHardness(1.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("pumpkin") |
static final Block | netherrack = (new BlockNetherrack(87)).setHardness(0.4F).setStepSound(soundStoneFootstep).setUnlocalizedName("hellrock") |
static final Block | slowSand = (new BlockSoulSand(88)).setHardness(0.5F).setStepSound(soundSandFootstep).setUnlocalizedName("hellsand") |
static final Block | glowStone = (new BlockGlowStone(89, Material.glass)).setHardness(0.3F).setStepSound(soundGlassFootstep).setLightValue(1.0F).setUnlocalizedName("lightgem") |
static final BlockPortal | portal = (BlockPortal)(new BlockPortal(90)).setHardness(-1.0F).setStepSound(soundGlassFootstep).setLightValue(0.75F).setUnlocalizedName("portal") |
static final Block | pumpkinLantern = (new BlockPumpkin(91, true)).setHardness(1.0F).setStepSound(soundWoodFootstep).setLightValue(1.0F).setUnlocalizedName("litpumpkin") |
static final Block | cake = (new BlockCake(92)).setHardness(0.5F).setStepSound(soundClothFootstep).setUnlocalizedName("cake").disableStats() |
static final BlockRedstoneRepeater | redstoneRepeaterIdle = (BlockRedstoneRepeater)(new BlockRedstoneRepeater(93, false)).setHardness(0.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("diode").disableStats() |
static final BlockRedstoneRepeater | redstoneRepeaterActive = (BlockRedstoneRepeater)(new BlockRedstoneRepeater(94, true)).setHardness(0.0F).setLightValue(0.625F).setStepSound(soundWoodFootstep).setUnlocalizedName("diode").disableStats() |
static final Block | lockedChest = (new BlockLockedChest(95)).setHardness(0.0F).setLightValue(1.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("lockedchest").setTickRandomly(true) |
static final Block | trapdoor = (new BlockTrapDoor(96, Material.wood)).setHardness(3.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("trapdoor").disableStats() |
static final Block | silverfish = (new BlockSilverfish(97)).setHardness(0.75F).setUnlocalizedName("monsterStoneEgg") |
static final Block | stoneBrick = (new BlockStoneBrick(98)).setHardness(1.5F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("stonebricksmooth") |
static final Block | mushroomCapBrown = (new BlockMushroomCap(99, Material.wood, 0)).setHardness(0.2F).setStepSound(soundWoodFootstep).setUnlocalizedName("mushroom") |
static final Block | mushroomCapRed = (new BlockMushroomCap(100, Material.wood, 1)).setHardness(0.2F).setStepSound(soundWoodFootstep).setUnlocalizedName("mushroom") |
static final Block | fenceIron = (new BlockPane(101, "fenceIron", "fenceIron", Material.iron, true)).setHardness(5.0F).setResistance(10.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("fenceIron") |
static final Block | thinGlass = (new BlockPane(102, "glass", "thinglass_top", Material.glass, false)).setHardness(0.3F).setStepSound(soundGlassFootstep).setUnlocalizedName("thinGlass") |
static final Block | melon = (new BlockMelon(103)).setHardness(1.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("melon") |
static final Block | pumpkinStem = (new BlockStem(104, pumpkin)).setHardness(0.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("pumpkinStem") |
static final Block | melonStem = (new BlockStem(105, melon)).setHardness(0.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("pumpkinStem") |
static final Block | vine = (new BlockVine(106)).setHardness(0.2F).setStepSound(soundGrassFootstep).setUnlocalizedName("vine") |
static final Block | fenceGate = (new BlockFenceGate(107)).setHardness(2.0F).setResistance(5.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("fenceGate") |
static final Block | stairsBrick = (new BlockStairs(108, brick, 0)).setUnlocalizedName("stairsBrick") |
static final Block | stairsStoneBrick = (new BlockStairs(109, stoneBrick, 0)).setUnlocalizedName("stairsStoneBrickSmooth") |
static final BlockMycelium | mycelium = (BlockMycelium)(new BlockMycelium(110)).setHardness(0.6F).setStepSound(soundGrassFootstep).setUnlocalizedName("mycel") |
static final Block | waterlily = (new BlockLilyPad(111)).setHardness(0.0F).setStepSound(soundGrassFootstep).setUnlocalizedName("waterlily") |
static final Block | netherBrick = (new Block(112, Material.rock)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("netherBrick").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | netherFence = (new BlockFence(113, "netherBrick", Material.rock)).setHardness(2.0F).setResistance(10.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("netherFence") |
static final Block | stairsNetherBrick = (new BlockStairs(114, netherBrick, 0)).setUnlocalizedName("stairsNetherBrick") |
static final Block | netherStalk = (new BlockNetherStalk(115)).setUnlocalizedName("netherStalk") |
static final Block | enchantmentTable = (new BlockEnchantmentTable(116)).setHardness(5.0F).setResistance(2000.0F).setUnlocalizedName("enchantmentTable") |
static final Block | brewingStand = (new BlockBrewingStand(117)).setHardness(0.5F).setLightValue(0.125F).setUnlocalizedName("brewingStand") |
static final BlockCauldron | cauldron = (BlockCauldron)(new BlockCauldron(118)).setHardness(2.0F).setUnlocalizedName("cauldron") |
static final Block | endPortal = (new BlockEndPortal(119, Material.portal)).setHardness(-1.0F).setResistance(6000000.0F) |
static final Block | endPortalFrame = (new BlockEndPortalFrame(120)).setStepSound(soundGlassFootstep).setLightValue(0.125F).setHardness(-1.0F).setUnlocalizedName("endPortalFrame").setResistance(6000000.0F).setCreativeTab(CreativeTabs.tabDecorations) |
static final Block | whiteStone = (new Block(121, Material.rock)).setHardness(3.0F).setResistance(15.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("whiteStone").setCreativeTab(CreativeTabs.tabBlock) |
static final Block | dragonEgg = (new BlockDragonEgg(122)).setHardness(3.0F).setResistance(15.0F).setStepSound(soundStoneFootstep).setLightValue(0.125F).setUnlocalizedName("dragonEgg") |
static final Block | redstoneLampIdle = (new BlockRedstoneLight(123, false)).setHardness(0.3F).setStepSound(soundGlassFootstep).setUnlocalizedName("redstoneLight").setCreativeTab(CreativeTabs.tabRedstone) |
static final Block | redstoneLampActive = (new BlockRedstoneLight(124, true)).setHardness(0.3F).setStepSound(soundGlassFootstep).setUnlocalizedName("redstoneLight") |
static final BlockHalfSlab | woodDoubleSlab = (BlockHalfSlab)(new BlockWoodSlab(125, true)).setHardness(2.0F).setResistance(5.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("woodSlab") |
static final BlockHalfSlab | woodSingleSlab = (BlockHalfSlab)(new BlockWoodSlab(126, false)).setHardness(2.0F).setResistance(5.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("woodSlab") |
static final Block | cocoaPlant = (new BlockCocoa(127)).setHardness(0.2F).setResistance(5.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("cocoa") |
static final Block | stairsSandStone = (new BlockStairs(128, sandStone, 0)).setUnlocalizedName("stairsSandStone") |
static final Block | oreEmerald = (new BlockOre(129)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("oreEmerald") |
static final Block | enderChest = (new BlockEnderChest(130)).setHardness(22.5F).setResistance(1000.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("enderChest").setLightValue(0.5F) |
static final BlockTripWireSource | tripWireSource = (BlockTripWireSource)(new BlockTripWireSource(131)).setUnlocalizedName("tripWireSource") |
static final Block | tripWire = (new BlockTripWire(132)).setUnlocalizedName("tripWire") |
static final Block | blockEmerald = (new BlockOreStorage(133)).setHardness(5.0F).setResistance(10.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("blockEmerald") |
static final Block | stairsWoodSpruce = (new BlockStairs(134, planks, 1)).setUnlocalizedName("stairsWoodSpruce") |
static final Block | stairsWoodBirch = (new BlockStairs(135, planks, 2)).setUnlocalizedName("stairsWoodBirch") |
static final Block | stairsWoodJungle = (new BlockStairs(136, planks, 3)).setUnlocalizedName("stairsWoodJungle") |
static final Block | commandBlock = (new BlockCommandBlock(137)).setUnlocalizedName("commandBlock") |
static final BlockBeacon | beacon = (BlockBeacon)(new BlockBeacon(138)).setUnlocalizedName("beacon").setLightValue(1.0F) |
static final Block | cobblestoneWall = (new BlockWall(139, cobblestone)).setUnlocalizedName("cobbleWall") |
static final Block | flowerPot = (new BlockFlowerPot(140)).setHardness(0.0F).setStepSound(soundPowderFootstep).setUnlocalizedName("flowerPot") |
static final Block | carrot = (new BlockCarrot(141)).setUnlocalizedName("carrots") |
static final Block | potato = (new BlockPotato(142)).setUnlocalizedName("potatoes") |
static final Block | woodenButton = (new BlockButtonWood(143)).setHardness(0.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("button") |
static final Block | skull = (new BlockSkull(144)).setHardness(1.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("skull") |
static final Block | anvil = (new BlockAnvil(145)).setHardness(5.0F).setStepSound(soundAnvilFootstep).setResistance(2000.0F).setUnlocalizedName("anvil") |
static final Block | chestTrapped = (new BlockChest(146, 1)).setHardness(2.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("chestTrap") |
static final Block | pressurePlateGold = (new BlockPressurePlateWeighted(147, "blockGold", Material.iron, 64)).setHardness(0.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("weightedPlate_light") |
static final Block | pressurePlateIron = (new BlockPressurePlateWeighted(148, "blockIron", Material.iron, 640)).setHardness(0.5F).setStepSound(soundWoodFootstep).setUnlocalizedName("weightedPlate_heavy") |
static final BlockComparator | redstoneComparatorIdle = (BlockComparator)(new BlockComparator(149, false)).setHardness(0.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("comparator").disableStats() |
static final BlockComparator | redstoneComparatorActive = (BlockComparator)(new BlockComparator(150, true)).setHardness(0.0F).setLightValue(0.625F).setStepSound(soundWoodFootstep).setUnlocalizedName("comparator").disableStats() |
static final BlockDaylightDetector | daylightSensor = (BlockDaylightDetector)(new BlockDaylightDetector(151)).setHardness(0.2F).setStepSound(soundWoodFootstep).setUnlocalizedName("daylightDetector") |
static final Block | blockRedstone = (new BlockPoweredOre(152)).setHardness(5.0F).setResistance(10.0F).setStepSound(soundMetalFootstep).setUnlocalizedName("blockRedstone") |
static final Block | oreNetherQuartz = (new BlockOre(153)).setHardness(3.0F).setResistance(5.0F).setStepSound(soundStoneFootstep).setUnlocalizedName("netherquartz") |
static final BlockHopper | hopperBlock = (BlockHopper)(new BlockHopper(154)).setHardness(3.0F).setResistance(8.0F).setStepSound(soundWoodFootstep).setUnlocalizedName("hopper") |
static final Block | blockNetherQuartz = (new BlockQuartz(155)).setStepSound(soundStoneFootstep).setHardness(0.8F).setUnlocalizedName("quartzBlock") |
static final Block | stairsNetherQuartz = (new BlockStairs(156, blockNetherQuartz, 0)).setUnlocalizedName("stairsQuartz") |
static final Block | railActivator = (new BlockRailPowered(157)).setHardness(0.7F).setStepSound(soundMetalFootstep).setUnlocalizedName("activatorRail") |
static final Block | dropper = (new BlockDropper(158)).setHardness(3.5F).setStepSound(soundStoneFootstep).setUnlocalizedName("dropper") |
Protected Member Functions | |
void | initializeBlock () |
void | dropBlockAsItem_do (World par1World, int par2, int par3, int par4, ItemStack par5ItemStack) |
void | dropXpOnBlockBreak (World par1World, int par2, int par3, int par4, int par5) |
boolean | canSilkHarvest () |
ItemStack | createStackedBlock (int par1) |
Block | disableStats () |
Protected Attributes | |
boolean | blockConstructorCalled = true |
boolean | enableStats = true |
boolean | needsRandomTick |
boolean | isBlockContainer |
double | minX |
double | minY |
double | minZ |
double | maxX |
double | maxY |
double | maxZ |
Icon | blockIcon |
Static Protected Attributes | |
static int[] | blockFireSpreadSpeed = new int[4096] |
static int[] | blockFlammability = new int[4096] |
net.minecraft.block.Block.Block | ( | int | par1, |
Material | par2Material | ||
) |
boolean net.minecraft.block.Block.addBlockDestroyEffects | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
int | meta, | ||
EffectRenderer | effectRenderer | ||
) |
Spawn particles for when the block is destroyed. Due to the nature of how this is invoked, the x/y/z locations are not always guaranteed to host your block. So be sure to do proper sanity checks before assuming that the location is this block.
world | The current world |
x | X position to spawn the particle |
y | Y position to spawn the particle |
z | Z position to spawn the particle |
meta | The metadata for the block before it was destroyed. |
effectRenderer | A reference to the current effect renderer. |
boolean net.minecraft.block.Block.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. Useful when you have entirely different texture sheets for different sides/locations in the world.
world | The current world |
target | The target the player is looking at {x/y/z/side/sub} |
effectRenderer | A reference to the current effect renderer. |
void net.minecraft.block.Block.addCollisionBoxesToList | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
AxisAlignedBB | par5AxisAlignedBB, | ||
List | par6List, | ||
Entity | par7Entity | ||
) |
Adds all intersecting collision boxes to a list. (Be sure to only add boxes to the list if they intersect the mask.) Parameters: World, X, Y, Z, mask, list, colliding entity
void net.minecraft.block.Block.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.
itemList | The list of items to display on the creative inventory. |
void net.minecraft.block.Block.beginLeavesDecay | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Called when a leaf should start its decay process.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
void net.minecraft.block.Block.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 net.minecraft.block.Block.canBeReplacedByLeaves | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Used during tree growth to determine if newly generated leaves can replace this block.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
boolean net.minecraft.block.Block.canBlockStay | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Can this block stay at this position. Similar to canPlaceBlockAt except gets checked often with plants.
boolean net.minecraft.block.Block.canCollideCheck | ( | int | par1, |
boolean | par2 | ||
) |
Returns whether this block is collideable based on the arguments passed in Args: blockMetaData, unknownFlag
boolean net.minecraft.block.Block.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.
Side: -1: UP 0: NORTH 1: EAST 2: SOUTH 3: WEST
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
side | The side that is trying to make the connection |
boolean net.minecraft.block.Block.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.
type | The Mob Category Type |
world | The current world |
x | The X Position |
y | The Y Position |
z | The Z Position |
boolean net.minecraft.block.Block.canDragonDestroy | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Determines if this block is destroyed when a ender dragon tries to fly through it. The block will be set to 0, nothing will drop.
world | The current world |
x | X Position |
y | Y Position |
z | Z position |
boolean net.minecraft.block.Block.canDropFromExplosion | ( | Explosion | par1Explosion) |
Return whether this block can drop from an explosion.
boolean net.minecraft.block.Block.canHarvestBlock | ( | EntityPlayer | player, |
int | meta | ||
) |
Determines if the player can harvest this block, obtaining it's drops when the block is destroyed.
player | The player damaging the block, may be null |
meta | The block's current metadata |
boolean net.minecraft.block.Block.canPlaceBlockAt | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
boolean net.minecraft.block.Block.canPlaceBlockOnSide | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
ItemStack | par6ItemStack | ||
) |
boolean net.minecraft.block.Block.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 net.minecraft.block.Block.canPlaceTorchOnTop | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Determines if a torch can be placed on the top surface of this block. Useful for creating your own block that torches can be on, such as fences.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
boolean net.minecraft.block.Block.canProvidePower | ( | ) |
Can this block provide power. Only wire currently seems to have this change based on its state.
boolean net.minecraft.block.Block.canRenderInPass | ( | int | pass) |
Determines if this block should render in this pass.
pass | The pass in question |
|
protected |
Return true if a player with Silk Touch can harvest this block directly, and not its normal drops.
boolean net.minecraft.block.Block.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.
world | The world |
player | The player doing the harvesting |
x | X Position |
y | Y Position |
z | Z Position |
metadata | The metadata |
boolean net.minecraft.block.Block.canSustainLeaves | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Determines if this block can prevent leaves connected to it from decaying.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
boolean net.minecraft.block.Block.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. Some examples: Reeds check if its a reed, or if its sand/dirt/grass and adjacent to water Cacti checks if its a cacti, or if its sand Nether types check for soul sand Crops check for tilled soil Caves check if it's a colid surface Plains check if its grass or dirt Water check if its still water
world | The current world |
x | X Position |
y | Y Position |
z | Z position |
direction | The direction relative to the given position the plant wants to be, typically its UP |
plant | The plant that wants to check |
MovingObjectPosition net.minecraft.block.Block.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. Args: world, x, y, z, startVec, endVec
int net.minecraft.block.Block.colorMultiplier | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.
|
protected |
Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null.
TileEntity net.minecraft.block.Block.createTileEntity | ( | World | world, |
int | metadata | ||
) |
Called throughout the code as a replacement for ITileEntityProvider.createNewTileEntity Return the same thing you would from that function. This will fall back to ITileEntityProvider.createNewTileEntity(World) if this block is a ITileEntityProvider
metadata | The Metadata of the current block |
int net.minecraft.block.Block.damageDropped | ( | int | par1) |
Determines the damage on the item the block drops. Used in cloth and wood.
|
protected |
Disable statistics for the block, the block will no count for mined or placed.
final void net.minecraft.block.Block.dropBlockAsItem | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
Drops the specified block items
|
protected |
Spawns EntityItem in the world for the given ItemStack if the world is not remote.
void net.minecraft.block.Block.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
|
protected |
called by spawner, ore, redstoneOre blocks
void net.minecraft.block.Block.fillWithRain | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
currently only used by BlockCauldron to incrament meta-data during rain
boolean net.minecraft.block.Block.func_82506_l | ( | ) |
float net.minecraft.block.Block.getAmbientOcclusionLightValue | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Returns the default ambient occlusion value based on block opacity
int net.minecraft.block.Block.getBedDirection | ( | IBlockAccess | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Returns the direction of the block. Same values that are returned by BlockDirectional
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
ChunkCoordinates net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
player | The player or camera entity, null in some cases. |
final double net.minecraft.block.Block.getBlockBoundsMaxX | ( | ) |
returns the block bounderies maxX value
final double net.minecraft.block.Block.getBlockBoundsMaxY | ( | ) |
returns the block bounderies maxY value
final double net.minecraft.block.Block.getBlockBoundsMaxZ | ( | ) |
returns the block bounderies maxZ value
final double net.minecraft.block.Block.getBlockBoundsMinX | ( | ) |
returns the block bounderies minX value
final double net.minecraft.block.Block.getBlockBoundsMinY | ( | ) |
returns the block bounderies minY value
final double net.minecraft.block.Block.getBlockBoundsMinZ | ( | ) |
returns the block bounderies minZ value
float net.minecraft.block.Block.getBlockBrightness | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
How bright to render this block based on the light its receiving. Args: iBlockAccess, x, y, z
int net.minecraft.block.Block.getBlockColor | ( | ) |
ArrayList<ItemStack> net.minecraft.block.Block.getBlockDropped | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
int | metadata, | ||
int | fortune | ||
) |
This returns a complete list of items dropped from this block.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
metadata | Current metadata |
fortune | Breakers fortune level |
float net.minecraft.block.Block.getBlockHardness | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Returns the block hardness at a location. Args: world, x, y, z
boolean net.minecraft.block.Block.getBlocksMovement | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Icon net.minecraft.block.Block.getBlockTexture | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side
final Icon net.minecraft.block.Block.getBlockTextureFromSide | ( | int | par1) |
Returns the block texture based on the side being looked at. Args: side
AxisAlignedBB net.minecraft.block.Block.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)
int net.minecraft.block.Block.getComparatorInputOverride | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
If hasComparatorInputOverride returns true, the return value from this is used instead of the redstone signal strength when this block inputs to a comparator.
CreativeTabs net.minecraft.block.Block.getCreativeTabToDisplayOn | ( | ) |
Returns the CreativeTab to display the given block on.
int net.minecraft.block.Block.getDamageValue | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Get the block's damage value (for use with pick block).
boolean net.minecraft.block.Block.getEnableStats | ( | ) |
Return the state of blocks statistics flags - if the block is counted for mined and placed.
int net.minecraft.block.Block.getEnchantPower | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
float net.minecraft.block.Block.getEnchantPowerBonus | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Determines the amount of enchanting power this block can provide to an enchanting table.
world | The World |
x | X position |
y | Y position |
z | Z position |
float net.minecraft.block.Block.getExplosionResistance | ( | Entity | par1Entity) |
Returns how much this block can resist explosions from the passed in entity.
float net.minecraft.block.Block.getExplosionResistance | ( | Entity | par1Entity, |
World | world, | ||
int | x, | ||
int | y, | ||
int | z, | ||
double | explosionX, | ||
double | explosionY, | ||
double | explosionZ | ||
) |
Location sensitive version of getExplosionRestance
par1Entity | The entity that caused the explosion |
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
explosionX | Explosion source X Position |
explosionY | Explosion source X Position |
explosionZ | Explosion source X Position |
int net.minecraft.block.Block.getFireSpreadSpeed | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
int | metadata, | ||
ForgeDirection | face | ||
) |
Called when fire is updating on a neighbor block. The higher the number returned, the faster fire will spread around this block.
world | The current world |
x | The blocks X position |
y | The blocks Y position |
z | The blocks Z position |
metadata | The blocks current metadata |
face | The face that the fire is coming from |
int net.minecraft.block.Block.getFlammability | ( | IBlockAccess | world, |
int | x, | ||
int | y, | ||
int | z, | ||
int | metadata, | ||
ForgeDirection | face | ||
) |
Chance that fire will spread and consume this block. 300 being a 100% chance, 0, being a 0% chance.
world | The current world |
x | The blocks X position |
y | The blocks Y position |
z | The blocks Z position |
metadata | The blocks current metadata |
face | The face that the fire is coming from |
Icon net.minecraft.block.Block.getIcon | ( | int | par1, |
int | par2 | ||
) |
From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
String net.minecraft.block.Block.getItemIconName | ( | ) |
Gets the icon name of the ItemBlock corresponding to this block. Used by hoppers.
int net.minecraft.block.Block.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.
This is not guaranteed to have the tile entity in place before this is called, so it is Recommended that you have your tile entity call relight after being placed if you rely on it for light info.
world | The current world |
x | X Position |
y | Y Position |
z | Z position |
int net.minecraft.block.Block.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
world | The current world |
x | X Position |
y | Y position |
z | Z position |
String net.minecraft.block.Block.getLocalizedName | ( | ) |
Gets the localized name of this block. Used for the statistics page.
int net.minecraft.block.Block.getMixedBrightnessForBlock | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Goes straight to getLightBrightnessForSkyBlocks for Blocks, does some fancy computing for Fluids
int net.minecraft.block.Block.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 net.minecraft.block.Block.getPickBlock | ( | MovingObjectPosition | target, |
World | world, | ||
int | x, | ||
int | y, | ||
int | z | ||
) |
Called when a user uses the creative pick block button on this block
target | The full target the player is looking at |
float net.minecraft.block.Block.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 net.minecraft.block.Block.getRenderBlockPass | ( | ) |
Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
int net.minecraft.block.Block.getRenderColor | ( | int | par1) |
Returns the color this block should be rendered. Used by leaves.
int net.minecraft.block.Block.getRenderType | ( | ) |
The type of render function that is called for this block
AxisAlignedBB net.minecraft.block.Block.getSelectedBoundingBoxFromPool | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Returns the bounding box of the wired rectangular prism to render.
void net.minecraft.block.Block.getSubBlocks | ( | int | par1, |
CreativeTabs | par2CreativeTabs, | ||
List | par3List | ||
) |
returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
boolean net.minecraft.block.Block.getTickRandomly | ( | ) |
Returns whether or not this block is of a type that needs random ticking. Called for ref-counting purposes by ExtendedBlockStorage in order to broadly cull a chunk from the random chunk update list for efficiency's sake.
String net.minecraft.block.Block.getUnlocalizedName | ( | ) |
Returns the unlocalized name of this block.
String net.minecraft.block.Block.getUnlocalizedName2 | ( | ) |
Returns the unlocalized name without the tile. prefix. Caution: client-only.
ForgeDirection [] net.minecraft.block.Block.getValidRotations | ( | World | worldObj, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Get the rotations that can apply to the block at the specified coordinates. Null means no rotations are possible. Note, this is up to the block to decide. It may not be accurate or representative.
worldObj | The world |
x | X position |
y | Y position |
z | Z position |
void net.minecraft.block.Block.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. (i, j, k) are the coordinates of the block and l is the block's subtype/damage.
boolean net.minecraft.block.Block.hasComparatorInputOverride | ( | ) |
If this returns true, then comparators facing away from this block will use the value from getComparatorInputOverride instead of the actual redstone signal strength.
boolean net.minecraft.block.Block.hasTileEntity | ( | ) |
boolean net.minecraft.block.Block.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.
Return true from this function to specify this block has a tile entity.
metadata | Metadata of the current block |
int net.minecraft.block.Block.idDropped | ( | int | par1, |
Random | par2Random, | ||
int | par3 | ||
) |
Returns the ID of the items to drop on destruction.
int net.minecraft.block.Block.idPicked | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
only called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative)
|
protected |
This method is called on a block after all other blocks gets already created. You can use it to reference and configure something on the block that needs the others ones.
boolean net.minecraft.block.Block.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. This method is primarily useful for creating pure logic-blocks that will be invisible to the player and otherwise interact as air would.
world | The current world |
x | X Position |
y | Y position |
z | Z position |
boolean net.minecraft.block.Block.isAssociatedBlockID | ( | int | par1) |
Returns true if the given block ID is equivalent to this one. Example: redstoneTorchOn matches itself and redstoneTorchOff, and vice versa. Most blocks only match themselves.
|
static |
Static version of isAssociatedBlockID.
boolean net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y Position |
z | Z position |
beaconX | Beacons X Position |
beaconY | Beacons Y Position |
beaconZ | Beacons Z Position |
boolean net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
player | The player or camera entity, null in some cases. |
boolean net.minecraft.block.Block.isBedFoot | ( | IBlockAccess | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Determines if the current block is the foot half of the bed.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
boolean net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y position |
z | Z position |
boolean net.minecraft.block.Block.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 net.minecraft.block.Block.isBlockNormalCube | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
Return true if the block is a normal, solid cube. This determines indirect power state, entity ejection from blocks, and a few others.
world | The current world |
x | X Position |
y | Y position |
z | Z position |
boolean net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y position |
z | Z position |
boolean net.minecraft.block.Block.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. Args: blockAccess, x, y, z, side
boolean net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y position |
z | Z position |
side | The side to check |
boolean net.minecraft.block.Block.isCollidable | ( | ) |
Returns if this block is collidable (only used by Fire). Args: x, y, z
boolean net.minecraft.block.Block.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. Only vanilla case is tilledField when it is within range of water.
world | The current world |
x | X Position |
y | Y Position |
z | Z position |
boolean net.minecraft.block.Block.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. Returning true will prevent the fire from naturally dying during updating. Also prevents firing from dying from rain.
world | The current world |
x | The blocks X position |
y | The blocks Y position |
z | The blocks Z position |
metadata | The blocks current metadata |
side | The face that the fire is coming from |
boolean net.minecraft.block.Block.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.
world | The current world |
x | The blocks X position |
y | The blocks Y position |
z | The blocks Z position |
metadata | The blocks current metadata |
face | The face that the fire is coming from |
boolean net.minecraft.block.Block.isFlowerPot | ( | ) |
Returns true only if block is flowerPot
boolean net.minecraft.block.Block.isGenMineableReplaceable | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
int | target | ||
) |
Determines if the current block is replaceable by Ore veins during world generation.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
target | The generic target block the gen is looking for, Standards define stone for overworld generation, and neatherack for the nether. |
boolean net.minecraft.block.Block.isLadder | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
EntityLiving | entity | ||
) |
Checks if a player or entity can use this block to 'climb' like a ladder.
world | The current world |
x | X Position |
y | Y position |
z | Z position |
entity | The entity trying to use the ladder, CAN be null. |
boolean net.minecraft.block.Block.isLadder | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
boolean net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
|
static |
boolean net.minecraft.block.Block.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.
int net.minecraft.block.Block.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. Args: World, X, Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.
int net.minecraft.block.Block.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. If isBlockNormalCube returns true, standard redstone propagation rules will apply instead and this will not be called. Args: World, X, Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.
boolean net.minecraft.block.Block.isWood | ( | World | world, |
int | x, | ||
int | y, | ||
int | z | ||
) |
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
boolean net.minecraft.block.Block.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 net.minecraft.block.Block.onBlockAdded | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Called whenever the block is added into the world. Args: world, x, y, z
void net.minecraft.block.Block.onBlockClicked | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
EntityPlayer | par5EntityPlayer | ||
) |
Called when the block is clicked by a player. Args: x, y, z, entityPlayer
void net.minecraft.block.Block.onBlockDestroyedByExplosion | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
Explosion | par5Explosion | ||
) |
Called upon the block being destroyed by an explosion
void net.minecraft.block.Block.onBlockDestroyedByPlayer | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Called right before the block is destroyed by a player. Args: world, x, y, z, metaData
boolean net.minecraft.block.Block.onBlockEventReceived | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
int | par6 | ||
) |
Called when the block receives a BlockEvent - see World.addBlockEvent. By default, passes it on to the tile entity at this location. Args: world, x, y, z, blockID, EventID, event parameter
void net.minecraft.block.Block.onBlockExploded | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
Explosion | explosion | ||
) |
Called when the block is destroyed by an explosion. Useful for allowing the block to take into account tile entities, metadata, etc. when exploded, before it is removed.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
Explosion | The explosion instance affecting the block |
void net.minecraft.block.Block.onBlockHarvested | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5, | ||
EntityPlayer | par6EntityPlayer | ||
) |
Called when the block is attempted to be harvested
int net.minecraft.block.Block.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. Args: World, X, Y, Z, side, hitX, hitY, hitZ, block metadata
void net.minecraft.block.Block.onBlockPlacedBy | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
EntityLiving | par5EntityLiving, | ||
ItemStack | par6ItemStack | ||
) |
Called when the block is placed in the world.
void net.minecraft.block.Block.onEntityCollidedWithBlock | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
Entity | par5Entity | ||
) |
Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
void net.minecraft.block.Block.onEntityWalking | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
Entity | par5Entity | ||
) |
Called whenever an entity is walking on top of this block. Args: world, x, y, z, entity
void net.minecraft.block.Block.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 net.minecraft.block.Block.onNeighborBlockChange | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
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
void net.minecraft.block.Block.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. Modder may implement this for custom plants. This does not use ForgeDirection, because large/huge trees can be located in non-representable direction, so the source location is specified. Currently this just changes the block to dirt if it was grass.
Note: This happens DURING the generation, the generation may not be complete when this is called.
world | Current world |
x | Soil X |
y | Soil Y |
z | Soil Z |
sourceX | Plant growth location X |
sourceY | Plant growth location Y |
sourceZ | Plant growth location Z |
void net.minecraft.block.Block.onPostBlockPlaced | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Called after a block is placed
void net.minecraft.block.Block.onSetBlockIDWithMetaData | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Called when this block is set (with meta data).
int net.minecraft.block.Block.quantityDropped | ( | Random | par1Random) |
Returns the quantity of items to drop on block destruction.
int net.minecraft.block.Block.quantityDropped | ( | int | meta, |
int | fortune, | ||
Random | random | ||
) |
Metadata and fortune sensitive version, this replaces the old (int meta, Random rand) version in 1.1.
meta | Blocks Metadata |
fortune | Current item fortune level |
random | Random number generator |
int net.minecraft.block.Block.quantityDroppedWithBonus | ( | int | par1, |
Random | par2Random | ||
) |
Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
void net.minecraft.block.Block.randomDisplayTick | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
Random | par5Random | ||
) |
A randomly called display update to be able to add particles or other items for display
boolean net.minecraft.block.Block.recolourBlock | ( | World | world, |
int | x, | ||
int | y, | ||
int | z, | ||
ForgeDirection | side, | ||
int | colour | ||
) |
Common way to recolour a block with an external tool
world | The world |
x | X |
y | Y |
z | Z |
side | The side hit with the colouring tool |
colour | The colour to change to |
void net.minecraft.block.Block.registerIcons | ( | IconRegister | par1IconRegister) |
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.
boolean net.minecraft.block.Block.removeBlockByPlayer | ( | World | world, |
EntityPlayer | player, | ||
int | x, | ||
int | y, | ||
int | z | ||
) |
Called when a player removes a block. This is responsible for actually destroying the block, and the block is intact at time of call. This is called regardless of whether the player can harvest the block or not.
Return true if the block is actually destroyed.
Note: When used in multiplayer, this is called on both client and server sides!
world | The current world |
player | The player damaging the block, may be null |
x | X Position |
y | Y position |
z | Z position |
boolean net.minecraft.block.Block.renderAsNormalBlock | ( | ) |
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
boolean net.minecraft.block.Block.rotateBlock | ( | World | worldObj, |
int | x, | ||
int | y, | ||
int | z, | ||
ForgeDirection | axis | ||
) |
Rotate the block. For vanilla blocks this rotates around the axis passed in (generally, it should be the "face" that was hit). Note: for mod blocks, this is up to the block and modder to decide. It is not mandated that it be a rotation around the face, but could be a rotation to orient to that face, or a visiting of possible rotations. The method should return true if the rotation was successful though.
worldObj | The world |
x | X position |
y | Y position |
z | Z position |
axis | The axis to rotate around |
void net.minecraft.block.Block.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.
world | The current world |
x | X Position |
y | Y Position |
z | Z Position |
player | 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 bed |
final void net.minecraft.block.Block.setBlockBounds | ( | float | par1, |
float | par2, | ||
float | par3, | ||
float | par4, | ||
float | par5, | ||
float | par6 | ||
) |
Sets the bounds of the block. minX, minY, minZ, maxX, maxY, maxZ
void net.minecraft.block.Block.setBlockBoundsBasedOnState | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
Updates the blocks bounds based on its current state. Args: world, x, y, z
void net.minecraft.block.Block.setBlockBoundsForItemRender | ( | ) |
Sets the block's bounds for rendering it as an item
Block net.minecraft.block.Block.setBlockUnbreakable | ( | ) |
This method will make the hardness of the block equals to -1, and the block is indestructible.
|
static |
Called by BlockFire to setup the burn values of vanilla blocks.
id | The block id |
encouragement | How much the block encourages fire to spread |
flammability | how easy a block is to catch fire |
Block net.minecraft.block.Block.setCreativeTab | ( | CreativeTabs | par1CreativeTabs) |
Sets the CreativeTab to display this block on.
Block net.minecraft.block.Block.setHardness | ( | float | par1) |
Sets how many hits it takes to break a block.
Block net.minecraft.block.Block.setLightOpacity | ( | int | par1) |
Sets how much light is blocked going through this block. Returns the object for convenience in constructing.
Block net.minecraft.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). Returns the object for convenience in constructing.
Block net.minecraft.block.Block.setResistance | ( | float | par1) |
Sets the the blocks resistance to explosions. Returns the object for convenience in constructing.
Sets the footstep sound for the block. Returns the object for convenience in constructing.
Block net.minecraft.block.Block.setTickRandomly | ( | boolean | par1) |
Sets whether this block type will receive random update ticks
Block net.minecraft.block.Block.setUnlocalizedName | ( | String | par1Str) |
boolean net.minecraft.block.Block.shouldSideBeRendered | ( | IBlockAccess | par1IBlockAccess, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
int | par5 | ||
) |
Returns true if the given side of this block type should be rendered, if the adjacent block is at the given coordinates. Args: blockAccess, x, y, z, side
int net.minecraft.block.Block.tickRate | ( | World | par1World) |
How many world ticks before ticking
void net.minecraft.block.Block.updateTick | ( | World | par1World, |
int | par2, | ||
int | par3, | ||
int | par4, | ||
Random | par5Random | ||
) |
Ticks the block if it's been scheduled
void net.minecraft.block.Block.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. Args: x, y, z, entity, vec3d
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
set to true when Block's constructor is called through the chain of super()'s. Note: Never used
|
static |
|
static |
|
staticprotected |
|
staticprotected |
|
static |
float net.minecraft.block.Block.blockHardness |
Indicates how many hits it takes to break a block.
|
protected |
final int net.minecraft.block.Block.blockID |
ID of the block.
|
static |
|
static |
|
static |
float net.minecraft.block.Block.blockParticleGravity |
|
static |
float net.minecraft.block.Block.blockResistance |
Indicates the blocks resistance to explosions.
List of ly/ff (BlockType) containing the already registered blocks.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Array of booleans that tells if a block can grass
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
If this field is true, the block is counted for statistics (mined or placed)
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
true if the Block contains a Tile Entity
|
static |
|
static |
|
static |
|
static |
Stationary lava source block
|
static |
|
static |
|
static |
How much light is subtracted for going through this block
|
static |
Amount of light emitted
|
static |
April fools secret locked chest, only spawns on new chunks on 1st April.
|
protected |
maximum X for the block bounds (local coordinates)
|
protected |
maximum Y for the block bounds (local coordinates)
|
protected |
maximum Z for the block bounds (local coordinates)
|
static |
|
static |
|
protected |
minimum X for the block bounds (local coordinates)
|
protected |
minimum Y for the block bounds (local coordinates)
|
protected |
minimum Z for the block bounds (local coordinates)
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
Flags whether or not this block is of a type that needs random ticking. Ref-counted by ExtendedBlockStorage in order to broadly cull a chunk from the random chunk update list for efficiency's sake.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
An array of 4096 booleans corresponding to the result of the isOpaqueCube() method for each block ID
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The purple teleport blocks inside the obsidian circle
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
float net.minecraft.block.Block.slipperiness |
Determines how much velocity is maintained while moving on top of this block
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
StepSound net.minecraft.block.Block.stepSound |
Sound of stepping on the block
|
static |
|
static |
|
static |
|
static |
stoneDoubleSlab
|
static |
stoneSingleSlab
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Flag if block ID should use the brightest neighbor light value as its own
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The rock found in The End.
|
static |
|
static |
|
static |
|
static |
|
static |