Package net.minecraft.src
Class BlockMycelium
java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockMycelium
- Direct Known Subclasses:
MyceliumBlock
-
Field Summary
Fields inherited from class net.minecraft.src.Block
anvil, beacon, bed, bedrock, blockClay, blockConstructorCalled, blockDiamond, blockEmerald, blockGold, blockHardness, blockIcon, blockID, blockIron, blockLapis, blockMaterial, blockNetherQuartz, blockParticleGravity, blockRedstone, blockReplaced, blockReplacedBy, blockResistance, blocksList, blockSnow, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carpet, carrot, cauldron, chest, chestTrapped, cloth, coalBlock, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, currentBlockRenderer, daylightSensor, deadBush, dirt, dispenser, doorIron, doorWood, dragonEgg, dropper, enableStats, enchantmentTable, enderChest, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, flowerPot, furnaceBurning, furnaceIdle, glass, glowStone, grass, gravel, hardenedClay, hasKilnRecipe, hay, hopperBlock, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, melon, melonStem, minX, minY, minZ, mobSpawner, modID, modIDSetter, mushroomBrown, mushroomCapBrown, mushroomCapRed, mushroomRed, music, mycelium, needsRandomTick, netherBrick, netherFence, netherrack, netherStalk, obsidian, opaqueCubeLookup, oreCoal, oreDiamond, oreEmerald, oreGold, oreIron, oreLapis, oreNetherQuartz, oreRedstone, oreRedstoneGlowing, pistonBase, pistonExtension, pistonMoving, pistonStickyBase, planks, plantRed, plantYellow, portal, potato, pressurePlateGold, pressurePlateIron, pressurePlatePlanks, pressurePlateStone, pumpkin, pumpkinLantern, pumpkinStem, rail, railActivator, railDetector, railPowered, redstoneComparatorActive, redstoneComparatorIdle, redstoneLampActive, redstoneLampIdle, redstoneRepeaterActive, redstoneRepeaterIdle, redstoneWire, reed, sand, sandStone, sapling, signPost, signWall, silverfish, skull, slipperiness, slowSand, snow, soundAnvilFootstep, soundClothFootstep, soundGlassFootstep, soundGrassFootstep, soundGravelFootstep, soundLadderFootstep, soundMetalFootstep, soundPowderFootstep, soundSandFootstep, soundSnowFootstep, soundStoneFootstep, soundWoodFootstep, sponge, stainedClay, stairsBrick, stairsCobblestone, stairsNetherBrick, stairsNetherQuartz, stairsSandStone, stairsStoneBrick, stairsWoodBirch, stairsWoodJungle, stairsWoodOak, stairsWoodSpruce, stepSound, stone, stoneBrick, stoneButton, stoneDoubleSlab, stoneSingleSlab, tallGrass, textureName, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, tripWire, tripWireSource, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, woodDoubleSlab, woodenButton, woodSingleSlab, workbench -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanattempToSpreadMyceliumToLocation(World world, int x, int y, int z) booleancanBeGrazedOn(IBlockAccess blockAccess, int x, int y, int z, EntityAnimal animal) booleancanBePistonShoveled(World world, int x, int y, int z) booleancanConvertBlock(ItemStack stack, World world, int x, int y, int z) booleancanEndermenPickUpBlock(World world, int x, int y, int z) booleancanMobsSpawnOn(World world, int x, int y, int z) This is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.static booleancanMyceliumSurviveAtLocation(World world, int x, int y, int z) static voidcheckForMyceliumSpreadFromLocation(World world, int x, int y, int z) booleanconvertBlock(ItemStack stack, World world, int x, int y, int z, int fromSide) Returns false if the block has not been replaced with another, and should be removedbooleandropComponentItemsOnBadBreak(World world, int x, int y, int z, int metadata, float chanceOfDrop) Called by explosions and improper tool use.getBlockTexture(IBlockAccess blockAccess, int x, int y, int z, int side) Retrieves the block texture to use based on the display side.booleangetCanBlightSpreadToBlock(World world, int x, int y, int z, int blightLevel) getIcon(int side, int meta) From the specified side and block metadata retrieves the blocks texture.intReturns the ID of the items to drop on destruction.booleanisBreakableBarricade(World world, int i, int j, int k, boolean advancedBreaker) booleanisSparse(int metadata) booleanisSparse(IBlockAccess blockAccess, int x, int y, int z) voidonBlockDestroyedByExplosion(World world, int x, int y, int z, Explosion explosion) // +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---voidonBlockDestroyedWithImproperTool(World world, EntityPlayer player, int x, int y, int z, int metadata) Called on server only, after the block is removed from the worldvoidonGrazed(World world, int x, int y, int z, EntityAnimal animal) protected voidonNeighborDirtDugWithImproperTool(World world, int x, int y, int z, int toFacing) voidonVegetationAboveGrazed(World world, int x, int y, int z, EntityAnimal animal) voidrandomDisplayTick(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 displayvoidregisterIcons(IconRegister register) When this method is called, your block should register all the icons it needs with the given IconRegister.booleanrenderBlock(RenderBlocks renderer, int x, int y, int z) voidsetFullyGrown(World world, int x, int y, int z) voidvoidupdateTick(World world, int x, int y, int z, Random rand) Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---Methods inherited from class net.minecraft.src.Block
addCollisionBoxesToList, adjustMetadataForPistonMove, adjustPathWeightOnNotBlocked, areAxesEffectiveOn, arechiselseffectiveon, arechiselseffectiveon, areHoesEffectiveOn, arePicksEffectiveOn, areShovelsEffectiveOn, attachToFacing, attemptToAffectBlockWithSoul, attemptToApplyFertilizerTo, attemptToCombineWithFallingEntity, blocksEndermanPickup, breakBlock, canBeConvertedByMobSpawner, canBeCrushedByFallingEntity, canBlockBePulledByPiston, canBlockBePushedByPiston, canBlocksBePlacedAgainstThisBlock, canBlockStay, canBlockStayDuringGenerate, canBlockSuffocateEntity, canCactusGrowOnBlock, canChiselsHarvest, canCollideCheck, canContainPistonPackingToFacing, canDomesticatedCropsGrowOnBlock, canDropFromExplosion, canFallIntoBlockAtPos, canGroundCoverRestOnBlock, canLeashKnotOnBlock, canNetherWartGrowOnBlock, canPathThroughBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceBlockOnSide, canProvidePower, canRedstoneConnectToSide, canReedsGrowOnBlock, canRotateAroundBlockOnTurntableToFacing, canRotateOnTurntable, canSaplingsGrowOnBlock, canSilkHarvest, canSilkHarvest, canSpitWebReplaceBlock, canSupportFallingBlocks, canSupportLeaves, canToolsStickInBlock, canToolStickInBlockSpecialCase, canTransmitRotationHorizontallyOnTurntable, canTransmitRotationVerticallyOnTurntable, canWeedsGrowInBlock, canWildVegetationGrowOnBlock, canWitherDestroyBlock, checkForFall, checkForUnstableGround, clientBlockAdded, clientBreakBlock, clientNotificationOfMetadataChange, collisionRayTrace, collisionRayTraceVsBlockBounds, colorMultiplier, convertBlockFromMobSpawner, convertFacingToBottomTextureRotation, convertFacingToTopTextureRotation, createStackedBlock, cycleFacing, damageDropped, disableStats, doEndermenIgnoreNeighbors, doesBlockBreakSaw, doesBlockDropAsItemOnSaw, doesBlockHopperEject, doesBlockHopperInsert, doesExtinguishFireAbove, doesInfiniteBurnToFacing, doesItemRenderAsBlock, dropBlockAsItem, dropBlockAsItem_do, dropBlockAsItemWithChance, dropItemsIndividually, dropItemsOnDestroyedByExplosion, dropItemsOnDestroyedByMiningCharge, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getAsPistonMovingBoundingBox, getBlockBoundsFromPoolBasedOnState, getBlockBoundsFromPoolForItemRender, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockHardness, getBlockIDOnInfest, getBlocksMovement, getBlockTextureFromSide, getBreakSoundName, getBreakSoundName, getBuoyancy, getCanBeCookedByKiLn, getCanBeSetOnFireDirectly, getCanBeSetOnFireDirectlyByItem, getCanBlockBeIncinerated, getCanBlockBeReplacedByFire, getCanBlockLightItemOnFire, getCanGrassGrowUnderBlock, getCanGrassSpreadToBlock, getCanMyceliumSpreadToBlock, getChanceOfFireSpreadingDirectlyTo, getChickenItemFoodValue, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getConvertsLegacySoil, getCookTimeMultiplierInKiLn, getCreativeTabToDisplayOn, getDamageValue, getDoesFireDamageToEntities, getDoesFireDamageToEntities, getDoesStumpRemoverWorkOnBlock, getEfficientToolLevel, getEnableStats, getExplosionResistance, getExplosionResistance, getFacing, getFacing, getFixedBlockBoundsFromPool, getFullBlockBoundingBoxFromPool, getFurnaceBurnTime, getHarvestToolLevel, getHerbivoreItemFoodValue, getHopperFilterIcon, getIconByIndex, getIsBlockWarm, getIsFertilizedForPlantGrowth, getIsProblemToRemove, getItemIconName, getLightValue, getLightValueForBlock, getLocalizedName, getMapColor, getMechanicalPowerLevelProvidedToAxleAtFacing, getMetadataConversionForStrataLevel, getMixedBrightnessForBlock, getMobilityFlag, getModId, getMovementModifier, getNewMetadataRotatedAroundBlockOnTurntableToFacing, getOppositeFacing, getOutputsWhenCookedByKiln, getPigItemFoodValue, getPistonShovelEjectDirection, getPlaceSoundName, getPlaceSoundName, getPlantGrowthOnMultiplier, getPlayerRelativeBlockHardness, getPreventsFluidFlow, getRenderBlockPass, getRenderColor, getRenderType, getSelectedBoundingBoxFromPool, getSelectedBoundingBoxFromPool, getStackRetrievedByBlockDispenser, getStepSound, getStepSound, getStepSoundInternal, getStepSoundName, getStepSoundName, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUnlocalizedName2, getWeedsGrowthLevel, getWeightOnPathBlocked, groundCoverRestingOnVisualOffset, harvestBlock, hasCenterHardPointToFacing, hasCenterHardPointToFacing, hasComparatorInputOverride, hasComparatorInputOverride, hasContactPointToFullFace, hasContactPointToSlabSideFace, hasContactPointToStairNarrowVerticalFace, hasContactPointToStairShapedFace, hasFallingBlockRestingOn, hasLargeCenterHardPointToFacing, hasLargeCenterHardPointToFacing, hasMortar, hasNeighborWithMortarInContact, hasSmallCenterHardPointToFacing, hasSmallCenterHardPointToFacing, hasStickySnowNeighborInContact, hasStrata, hasTileEntity, hasWaterToSidesOrTop, hideFromEMI, hideFromEMI, idPicked, infestBlock, initBlockBounds, initBlockBounds, initializeBlock, installationIntegrityTest, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBenchOrTable, isBlockAttachedToFacing, isBlockClimbable, isBlockDestroyedByBlockDispenser, isBlockHydratedForPlantGrowthOn, isBlockInfestable, isBlockInfestedBy, isBlockRestingOnThatBelow, isBlockSolid, isBreakableBarricadeOpen, isCollidable, isConsideredNeighbouringWaterForReedGrowthOn, isFallingBlock, isFence, isFlowerPot, isGroundCover, isIncineratedInCrucible, isLeafBlock, isLog, isNaturalStone, isNormalCube, isNormalCube, isOpaqueCube, isProvidingStrongPower, isProvidingWeakPower, isRedstoneConductor, isReplaceableVegetation, isSnowCoveringTopSurface, isStairBlock, isStickyToSnow, isWall, mobSpawnOnVerticalOffset, mouseOverRayTrace, notifyNearbyAnimalsFinishedFalling, notifyNeighborDirtDugWithImproperTool, notifyNeighborsBlockDisrupted, notifyOfFullStagePlantGrowthOn, notifyOfPlantAboveRemoved, onArrowCollide, onArrowImpact, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByMiningCharge, onBlockDestroyedByPlayer, onBlockDestroyedLandingFromFall, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onBlockSawed, onBlockSawed, onBrokenByPistonPush, onCookedByKiLn, onCraftedOnTurntable, onCreativeBonemealApplied, onCrushedByFallingEntity, onDestroyedByFire, onDirtDugWithImproperTool, onDirtSlabDugWithImproperTool, onEntityCollidedWithBlock, onEntityStepsIn, onEntityWalking, onFallenUpon, onFallingUpdate, onFinishedFalling, onFinishFalling, onFluidFlowIntoBlock, onInfested, onMortarApplied, onNeighborBlockChange, onNeighborDisrupted, onPlayerWalksOnBlock, onPostBlockPlaced, onPreBlockPlacedByPiston, onRemovedByBlockDispenser, onRotatedAroundBlockOnTurntableToFacing, onRotatedOnTurntable, onStartFalling, onStruckByLightning, postBlockDestroyedByExplosion, postBlockDestroyedByMiningCharge, preBlockPlacedBy, quantityDropped, quantityDroppedWithBonus, randomUpdateTick, removeWeeds, renderAsNormalBlock, renderBlockAsItem, renderBlockMovedByPiston, renderBlockSecondPass, renderBlockWithTexture, renderCookingByKiLnOverlay, renderCrossHatch, renderFallingBlock, rotateAroundJAxis, rotateFacingAroundY, rotateMetadataAroundYAxis, rotateOnTurntable, scheduleCheckForFall, setAlwaysStartlesAnimals, setAxesEffectiveOn, setAxesEffectiveOn, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockMaterial, setBlockUnbreakable, setBuoyancy, setBuoyant, setChickenItemFoodValue, setChiselsCanHarvest, setChiselsCanHarvest, setChiselsEffectiveOn, setChiselsEffectiveOn, setCreativeTab, setFacing, setFacing, setFireProperties, setFireProperties, setFurnaceBurnTime, setFurnaceBurnTime, setHardness, setHerbivoreItemFoodValue, setHoesEffectiveOn, setHoesEffectiveOn, setLightOpacity, setLightValue, setMapColorsForMetadata, setModID, setNeutralBuoyant, setNonBuoyant, setOnFireDirectly, setPicksEffectiveOn, setPicksEffectiveOn, setPigItemFoodValue, setResistance, setShovelsEffectiveOn, setShovelsEffectiveOn, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldDeleteTileEntityOnBlockChange, shouldFenceConnectToThisBlockToFacing, shouldOffsetPositionIfPathingOutOf, shouldPaneConnectToThisBlockToFacing, shouldPlayStandardConvertSound, shouldRenderNeighborFullFaceSide, shouldRenderNeighborHalfSlabSide, shouldRenderWhileFalling, shouldSideBeRendered, shouldSideBeRenderedOnFallingBlock, shouldWallConnectToThisBlockToFacing, shouldWallFormPostBelowThisBlock, spreadGrassToBlock, spreadMyceliumToBlock, startlesAnimalsWhenPlaced, tickRate, toggleFacing, triggersBuddy, turntableCraftingRotation, velocityToAddToEntity
-
Constructor Details
-
BlockMycelium
protected BlockMycelium(int par1)
-
-
Method Details
-
updateTick
Description copied from class:BlockTicks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---- Overrides:
updateTickin classBlock
-
canEndermenPickUpBlock
- Overrides:
canEndermenPickUpBlockin classBlock
-
idDropped
Description copied from class:BlockReturns the ID of the items to drop on destruction. -
dropComponentItemsOnBadBreak
public boolean dropComponentItemsOnBadBreak(World world, int x, int y, int z, int metadata, float chanceOfDrop) Description copied from class:BlockCalled by explosions and improper tool use. Should return true if the block processes its own drops through this method, false otherwise Note that the block may no longer be at the specified position when this is called- Overrides:
dropComponentItemsOnBadBreakin classBlock
-
onBlockDestroyedWithImproperTool
public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int x, int y, int z, int metadata) Description copied from class:BlockCalled on server only, after the block is removed from the world- Overrides:
onBlockDestroyedWithImproperToolin classBlock
-
onBlockDestroyedByExplosion
Description copied from class:Block// +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---- Overrides:
onBlockDestroyedByExplosionin classBlock
-
onNeighborDirtDugWithImproperTool
- Overrides:
onNeighborDirtDugWithImproperToolin classBlock
-
canBePistonShoveled
- Overrides:
canBePistonShoveledin classBlock
-
canMobsSpawnOn
Description copied from class:BlockThis is only a first-pass indicator as to whether ANY mobs can spawn on top of the block, so stuff like leaves where only Jungle Spiders can spawn on them, should still return true.- Overrides:
canMobsSpawnOnin classBlock
-
canBeGrazedOn
- Overrides:
canBeGrazedOnin classBlock
-
onGrazed
-
onVegetationAboveGrazed
- Overrides:
onVegetationAboveGrazedin classBlock
-
getCanBlightSpreadToBlock
- Overrides:
getCanBlightSpreadToBlockin classBlock
-
canConvertBlock
- Overrides:
canConvertBlockin classBlock
-
convertBlock
Description copied from class:BlockReturns false if the block has not been replaced with another, and should be removed- Overrides:
convertBlockin classBlock
-
isBreakableBarricade
- Overrides:
isBreakableBarricadein classBlock
-
canMyceliumSurviveAtLocation
-
checkForMyceliumSpreadFromLocation
-
attempToSpreadMyceliumToLocation
-
isSparse
-
isSparse
public boolean isSparse(int metadata) -
setSparse
-
setFullyGrown
-
registerIcons
Description copied from class:BlockWhen this method is called, your block should register all the icons it needs with the given IconRegister. This is the only chance you get to register icons.- Overrides:
registerIconsin classBlock
-
getBlockTexture
@Environment(CLIENT) public Icon getBlockTexture(IBlockAccess blockAccess, int x, int y, int z, int side) Description copied from class:BlockRetrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side- Overrides:
getBlockTexturein classBlock
-
getIcon
Description copied from class:BlockFrom the specified side and block metadata retrieves the blocks texture. Args: side, metadata -
renderBlock
- Overrides:
renderBlockin classBlock
-
randomDisplayTick
A randomly called display update to be able to add particles or other items for display- Overrides:
randomDisplayTickin classBlock
-