Package net.minecraft.src
Class BlockStem
java.lang.Object
net.minecraft.src.Block
btw.block.blocks.PlantsBlock
net.minecraft.src.BlockFlower
net.minecraft.src.BlockStem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockDefines if it is a Melon or a Pumpkin that the stem is producing.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 TypeMethodDescriptionbooleancanBeGrazedOn(IBlockAccess blockAccess, int i, int j, int k, EntityAnimal animal) protected booleancanGrowFruitAt(World world, int i, int j, int k) protected booleancanGrowOnBlock(World world, int i, int j, int k) protected booleancanThisPlantGrowOnThisBlockID(int par1) Gets passed in the blockID of the block below and supposed to return true if its allowed to grow on the type of blockID passed in.booleancanWeedsGrowInBlock(IBlockAccess blockAccess, int i, int j, int k) This determines whether weeds can share space with crop blocks, or grow within their own independent weed blocksintcolorMultiplier(IBlockAccess blockAccess, int i, int j, int k) Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color.voiddropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier) Drops the block items with a specified chance of dropping the specified itemsvoidfertilizeStem(World par1World, int par2, int par3, int par4) getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k) intgetRenderColor(int par1) Returns the color this block should be rendered.intThe type of render function that is called for this blockintgetState(IBlockAccess blockAccess, int i, int j, int k) protected booleanhasSpaceToGrow(World world, int i, int j, int k) intReturns the ID of the items to drop on destruction.intonly called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT---booleanonBlockSawed(World world, int i, int j, int k) booleanonCreativeBonemealApplied(World world, int x, int y, int z) Called when bonemeal is applied in creative mode.voidonNeighborBlockChange(World world, int i, int j, int k, int iBlockID) // +++START EDIT+++ // ---END EDIT--- Lets the block know when one of its neighbor changes.intquantityDropped(Random par1Random) Returns the quantity of items to drop on block destruction.voidrandomUpdateTick(World world, int i, int j, int k, Random rand) Called on server onlyvoidregisterIcons(IconRegister par1IconRegister) When this method is called, your block should register all the icons it needs with the given IconRegister.booleanrenderBlock(RenderBlocks renderer, int i, int j, int k) voidsetFruitBlock(Block block) intHow many world ticks before tickingvoidupdateTick(World world, int i, int j, int k, Random rand) Ticks the block if it's been scheduledMethods inherited from class net.minecraft.src.BlockFlower
canBlockStay, checkFlowerChange, getCollisionBoundingBoxFromPool, isOpaqueCube, renderAsNormalBlockMethods inherited from class btw.block.blocks.PlantsBlock
attemptToApplyFertilizerTo, breakBlock, canGroundCoverRestOnBlock, canPlaceBlockAt, clientBreakBlock, getWeedsGrowthLevel, groundCoverRestingOnVisualOffset, isInBrightLight, onBlockActivated, onEntityCollidedWithBlock, removeWeedsMethods inherited from class net.minecraft.src.Block
addCollisionBoxesToList, adjustMetadataForPistonMove, adjustPathWeightOnNotBlocked, areAxesEffectiveOn, arechiselseffectiveon, arechiselseffectiveon, areHoesEffectiveOn, arePicksEffectiveOn, areShovelsEffectiveOn, attachToFacing, attemptToAffectBlockWithSoul, attemptToCombineWithFallingEntity, blocksEndermanPickup, canBeConvertedByMobSpawner, canBeCrushedByFallingEntity, canBePistonShoveled, canBlockBePulledByPiston, canBlockBePushedByPiston, canBlocksBePlacedAgainstThisBlock, canBlockStayDuringGenerate, canBlockSuffocateEntity, canCactusGrowOnBlock, canChiselsHarvest, canCollideCheck, canContainPistonPackingToFacing, canConvertBlock, canDomesticatedCropsGrowOnBlock, canDropFromExplosion, canEndermenPickUpBlock, canFallIntoBlockAtPos, canLeashKnotOnBlock, canMobsSpawnOn, canNetherWartGrowOnBlock, canPathThroughBlock, canPlaceBlockOnSide, canPlaceBlockOnSide, canProvidePower, canRedstoneConnectToSide, canReedsGrowOnBlock, canRotateAroundBlockOnTurntableToFacing, canRotateOnTurntable, canSaplingsGrowOnBlock, canSilkHarvest, canSilkHarvest, canSpitWebReplaceBlock, canSupportFallingBlocks, canSupportLeaves, canToolsStickInBlock, canToolStickInBlockSpecialCase, canTransmitRotationHorizontallyOnTurntable, canTransmitRotationVerticallyOnTurntable, canWildVegetationGrowOnBlock, canWitherDestroyBlock, checkForFall, checkForUnstableGround, clientBlockAdded, clientNotificationOfMetadataChange, collisionRayTrace, collisionRayTraceVsBlockBounds, convertBlock, convertBlockFromMobSpawner, convertFacingToBottomTextureRotation, convertFacingToTopTextureRotation, createStackedBlock, cycleFacing, damageDropped, disableStats, doEndermenIgnoreNeighbors, doesBlockBreakSaw, doesBlockDropAsItemOnSaw, doesBlockHopperEject, doesBlockHopperInsert, doesExtinguishFireAbove, doesInfiniteBurnToFacing, doesItemRenderAsBlock, dropBlockAsItem, dropBlockAsItem_do, dropComponentItemsOnBadBreak, dropItemsIndividually, dropItemsOnDestroyedByExplosion, dropItemsOnDestroyedByMiningCharge, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getAsPistonMovingBoundingBox, getBlockBoundsFromPoolForItemRender, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockHardness, getBlockIDOnInfest, getBlocksMovement, getBlockTexture, getBlockTextureFromSide, getBreakSoundName, getBreakSoundName, getBuoyancy, getCanBeCookedByKiLn, getCanBeSetOnFireDirectly, getCanBeSetOnFireDirectlyByItem, getCanBlightSpreadToBlock, getCanBlockBeIncinerated, getCanBlockBeReplacedByFire, getCanBlockLightItemOnFire, getCanGrassGrowUnderBlock, getCanGrassSpreadToBlock, getCanMyceliumSpreadToBlock, getChanceOfFireSpreadingDirectlyTo, getChickenItemFoodValue, getComparatorInputOverride, getConvertsLegacySoil, getCookTimeMultiplierInKiLn, getCreativeTabToDisplayOn, getDamageValue, getDoesFireDamageToEntities, getDoesFireDamageToEntities, getDoesStumpRemoverWorkOnBlock, getEfficientToolLevel, getEnableStats, getExplosionResistance, getExplosionResistance, getFacing, getFacing, getFixedBlockBoundsFromPool, getFullBlockBoundingBoxFromPool, getFurnaceBurnTime, getHarvestToolLevel, getHerbivoreItemFoodValue, getHopperFilterIcon, getIcon, 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, getSelectedBoundingBoxFromPool, getSelectedBoundingBoxFromPool, getStackRetrievedByBlockDispenser, getStepSound, getStepSound, getStepSoundInternal, getStepSoundName, getStepSoundName, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUnlocalizedName2, getWeightOnPathBlocked, harvestBlock, hasCenterHardPointToFacing, hasCenterHardPointToFacing, hasComparatorInputOverride, hasComparatorInputOverride, hasContactPointToFullFace, hasContactPointToSlabSideFace, hasContactPointToStairNarrowVerticalFace, hasContactPointToStairShapedFace, hasFallingBlockRestingOn, hasLargeCenterHardPointToFacing, hasLargeCenterHardPointToFacing, hasMortar, hasNeighborWithMortarInContact, hasSmallCenterHardPointToFacing, hasSmallCenterHardPointToFacing, hasStickySnowNeighborInContact, hasStrata, hasTileEntity, hasWaterToSidesOrTop, hideFromEMI, hideFromEMI, infestBlock, initBlockBounds, initBlockBounds, initializeBlock, installationIntegrityTest, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBenchOrTable, isBlockAttachedToFacing, isBlockClimbable, isBlockDestroyedByBlockDispenser, isBlockHydratedForPlantGrowthOn, isBlockInfestable, isBlockInfestedBy, isBlockRestingOnThatBelow, isBlockSolid, isBreakableBarricade, isBreakableBarricadeOpen, isCollidable, isConsideredNeighbouringWaterForReedGrowthOn, isFallingBlock, isFence, isFlowerPot, isGroundCover, isIncineratedInCrucible, isLeafBlock, isLog, isNaturalStone, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isRedstoneConductor, isReplaceableVegetation, isSnowCoveringTopSurface, isStairBlock, isStickyToSnow, isWall, mobSpawnOnVerticalOffset, mouseOverRayTrace, notifyNearbyAnimalsFinishedFalling, notifyNeighborDirtDugWithImproperTool, notifyNeighborsBlockDisrupted, notifyOfFullStagePlantGrowthOn, notifyOfPlantAboveRemoved, onArrowCollide, onArrowImpact, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByMiningCharge, onBlockDestroyedByPlayer, onBlockDestroyedLandingFromFall, onBlockDestroyedWithImproperTool, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onBlockSawed, onBrokenByPistonPush, onCookedByKiLn, onCraftedOnTurntable, onCrushedByFallingEntity, onDestroyedByFire, onDirtDugWithImproperTool, onDirtSlabDugWithImproperTool, onEntityStepsIn, onEntityWalking, onFallenUpon, onFallingUpdate, onFinishedFalling, onFinishFalling, onFluidFlowIntoBlock, onGrazed, onInfested, onMortarApplied, onNeighborDirtDugWithImproperTool, onNeighborDisrupted, onPlayerWalksOnBlock, onPostBlockPlaced, onPreBlockPlacedByPiston, onRemovedByBlockDispenser, onRotatedAroundBlockOnTurntableToFacing, onRotatedOnTurntable, onStartFalling, onStruckByLightning, onVegetationAboveGrazed, postBlockDestroyedByExplosion, postBlockDestroyedByMiningCharge, preBlockPlacedBy, quantityDroppedWithBonus, randomDisplayTick, 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, toggleFacing, triggersBuddy, turntableCraftingRotation, velocityToAddToEntity
-
Field Details
-
fruitType
Defines if it is a Melon or a Pumpkin that the stem is producing.
-
-
Constructor Details
-
BlockStem
-
-
Method Details
-
canThisPlantGrowOnThisBlockID
protected boolean canThisPlantGrowOnThisBlockID(int par1) Gets passed in the blockID of the block below and supposed to return true if its allowed to grow on the type of blockID passed in. Args: blockID -
fertilizeStem
-
onCreativeBonemealApplied
Called when bonemeal is applied in creative mode.- Overrides:
onCreativeBonemealAppliedin classBlock
-
idDropped
Returns the ID of the items to drop on destruction. -
quantityDropped
Returns the quantity of items to drop on block destruction.- Overrides:
quantityDroppedin classBlock
-
tickRate
Description copied from class:BlockHow many world ticks before ticking -
updateTick
Description copied from class:BlockFlowerTicks the block if it's been scheduled- Overrides:
updateTickin classBlockFlower
-
randomUpdateTick
Description copied from class:BlockCalled on server only- Overrides:
randomUpdateTickin classBlock
-
onBlockSawed
- Overrides:
onBlockSawedin classBlock
-
dropBlockAsItemWithChance
public void dropBlockAsItemWithChance(World world, int i, int j, int k, int iMetadata, float fChance, int iFortuneModifier) Description copied from class:BlockDrops the block items with a specified chance of dropping the specified items- Overrides:
dropBlockAsItemWithChancein classBlock
-
getBlockBoundsFromPoolBasedOnState
public AxisAlignedBB getBlockBoundsFromPoolBasedOnState(IBlockAccess blockAccess, int i, int j, int k) - Overrides:
getBlockBoundsFromPoolBasedOnStatein classBlock
-
onNeighborBlockChange
Description copied from class:BlockFlower// +++START EDIT+++ // ---END EDIT--- 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- Overrides:
onNeighborBlockChangein classBlockFlower
-
canBeGrazedOn
- Overrides:
canBeGrazedOnin classBlockFlower
-
canGrowOnBlock
- Overrides:
canGrowOnBlockin classPlantsBlock
-
canWeedsGrowInBlock
Description copied from class:BlockThis determines whether weeds can share space with crop blocks, or grow within their own independent weed blocks- Overrides:
canWeedsGrowInBlockin classBlock
-
setFruitBlock
-
hasSpaceToGrow
-
canGrowFruitAt
-
renderBlock
- Overrides:
renderBlockin classPlantsBlock
-
colorMultiplier
Description copied from class:BlockReturns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called when first determining what to render.- Overrides:
colorMultiplierin classBlock
-
getState
-
idPicked
Description copied from class:Blockonly called by clickMiddleMouseButton , and passed to inventory.setCurrentItem (along with isCreative) // +++START EDIT+++ FCNOTE: Client only // ---END EDIT--- -
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
-
getRenderColor
@Environment(CLIENT) public int getRenderColor(int par1) Description copied from class:BlockReturns the color this block should be rendered. Used by leaves.- Overrides:
getRenderColorin classBlock
-
getRenderType
@Environment(CLIENT) public int getRenderType()Description copied from class:BlockFlowerThe type of render function that is called for this block- Overrides:
getRenderTypein classBlockFlower
-
getStemIcon
-