Package btw.block.blocks
Class DirtSlabBlock
java.lang.Object
net.minecraft.src.Block
api.block.blocks.SlabBlock
api.block.blocks.AttachedSlabBlock
btw.block.blocks.DirtSlabBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields 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 TypeMethodDescriptionbooleanattemptToCombineWithFallingEntity(World world, int i, int j, int k, EntityFallingSand entity) returns true if the block has combined with the entitybooleancanBeGrazedOn(IBlockAccess blockAccess, int i, int j, int k, EntityAnimal byAnimal) booleancanBePistonShoveled(World world, int i, int j, int k) protected booleanReturn true if a player with Silk Touch can harvest this block directly, and not its normal drops.intcolorMultiplier(IBlockAccess blockAccess, int i, int j, int k) Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color.protected ItemStackcreateStackedBlock(int metadata) Returns an item stack containing a single instance of the current block type.intdamageDropped(int iMetadata) Determines the damage on the item the block drops.booleandropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop) Called by explosions and improper tool use.getBlockTexture(IBlockAccess blockAccess, int i, int j, int k, int iSide) Retrieves the block texture to use based on the display side.booleangetCanGrassSpreadToBlock(World world, int i, int j, int k) booleangetCanMyceliumSpreadToBlock(World world, int i, int j, int k) intgetCombinedBlockID(int iMetadata) intgetCombinedMetadata(int iMetadata) getIcon(int iSide, int iMetadata) From the specified side and block metadata retrieves the blocks texture.floatgetMovementModifier(World world, int i, int j, int k) getSideOverlayTexture(IBlockAccess blockAccess, int i, int j, int k) voidgetSubBlocks(int iBlockID, CreativeTabs creativeTabs, List list) returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)intgetSubtype(int iMetadata) intgetSubtype(IBlockAccess blockAccess, int i, int j, int k) intReturns the ID of the items to drop on destruction.protected voidonAnchorBlockLost(World world, int i, int j, int k) voidonBlockDestroyedByExplosion(World world, int i, int j, int k, Explosion explosion) // +++START EDIT+++ Called upon the block being destroyed by an explosion // ---END EDIT---voidonBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata) Called on server only, after the block is removed from the worldvoidonGrazed(World world, int i, int j, int k, EntityAnimal animal) protected voidonNeighborDirtDugWithImproperTool(World world, int i, int j, int k, int iToFacing) voidonVegetationAboveGrazed(World world, int i, int j, int k, EntityAnimal animal) voidregisterIcons(IconRegister register) 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) voidrenderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness) voidsetSubtype(World world, int i, int j, int k, int iSubtype) booleanspreadGrassToBlock(World world, int x, int y, int z) booleanspreadMyceliumToBlock(World world, int x, int y, int z) voidupdateTick(World world, int i, int j, int k, Random rand) Ticks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---Methods inherited from class api.block.blocks.AttachedSlabBlock
canPlaceBlockOnSide, hasValidAnchorToFacing, isBreakableBarricade, onBlockPlaced, onNeighborBlockChangeMethods inherited from class api.block.blocks.SlabBlock
canBePlacedUpsideDownAtLocation, canGroundCoverRestOnBlock, canMobsSpawnOn, convertToFullBlock, getBlockBoundsFromPoolBasedOnState, getBlockBoundsFromPoolFromMetadata, getIsUpsideDown, getIsUpsideDown, groundCoverRestingOnVisualOffset, hasContactPointToFullFace, hasContactPointToSlabSideFace, hasLargeCenterHardPointToFacing, hasNeighborWithMortarInContact, hasNeighborWithMortarInContact, hasStickySnowNeighborInContact, hasStickySnowNeighborInContact, isOpaqueCube, isSnowCoveringTopSurface, mobSpawnOnVerticalOffset, renderAsNormalBlock, setIsUpsideDown, setIsUpsideDown, shouldRenderNeighborFullFaceSide, shouldRenderNeighborHalfSlabSide, shouldSideBeRenderedMethods inherited from class net.minecraft.src.Block
addCollisionBoxesToList, adjustMetadataForPistonMove, adjustPathWeightOnNotBlocked, areAxesEffectiveOn, arechiselseffectiveon, arechiselseffectiveon, areHoesEffectiveOn, arePicksEffectiveOn, areShovelsEffectiveOn, attachToFacing, attemptToAffectBlockWithSoul, attemptToApplyFertilizerTo, blocksEndermanPickup, breakBlock, canBeConvertedByMobSpawner, canBeCrushedByFallingEntity, canBlockBePulledByPiston, canBlockBePushedByPiston, canBlocksBePlacedAgainstThisBlock, canBlockStay, canBlockStayDuringGenerate, canBlockSuffocateEntity, canCactusGrowOnBlock, canChiselsHarvest, canCollideCheck, canContainPistonPackingToFacing, canConvertBlock, canDomesticatedCropsGrowOnBlock, canDropFromExplosion, canEndermenPickUpBlock, canFallIntoBlockAtPos, canLeashKnotOnBlock, canNetherWartGrowOnBlock, canPathThroughBlock, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, canRedstoneConnectToSide, canReedsGrowOnBlock, canRotateAroundBlockOnTurntableToFacing, canRotateOnTurntable, canSaplingsGrowOnBlock, canSilkHarvest, canSpitWebReplaceBlock, canSupportFallingBlocks, canSupportLeaves, canToolsStickInBlock, canToolStickInBlockSpecialCase, canTransmitRotationHorizontallyOnTurntable, canTransmitRotationVerticallyOnTurntable, canWeedsGrowInBlock, canWildVegetationGrowOnBlock, canWitherDestroyBlock, checkForFall, checkForUnstableGround, clientBlockAdded, clientBreakBlock, clientNotificationOfMetadataChange, collisionRayTrace, collisionRayTraceVsBlockBounds, convertBlock, convertBlockFromMobSpawner, convertFacingToBottomTextureRotation, convertFacingToTopTextureRotation, cycleFacing, disableStats, doEndermenIgnoreNeighbors, doesBlockBreakSaw, doesBlockDropAsItemOnSaw, doesBlockHopperEject, doesBlockHopperInsert, doesExtinguishFireAbove, doesInfiniteBurnToFacing, doesItemRenderAsBlock, dropBlockAsItem, dropBlockAsItem_do, dropBlockAsItemWithChance, dropItemsIndividually, dropItemsOnDestroyedByExplosion, dropItemsOnDestroyedByMiningCharge, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getAsPistonMovingBoundingBox, getBlockBoundsFromPoolForItemRender, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockBrightness, getBlockColor, getBlockHardness, getBlockIDOnInfest, getBlocksMovement, getBlockTextureFromSide, getBreakSoundName, getBreakSoundName, getBuoyancy, getCanBeCookedByKiLn, getCanBeSetOnFireDirectly, getCanBeSetOnFireDirectlyByItem, getCanBlightSpreadToBlock, getCanBlockBeIncinerated, getCanBlockBeReplacedByFire, getCanBlockLightItemOnFire, getCanGrassGrowUnderBlock, 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, getNewMetadataRotatedAroundBlockOnTurntableToFacing, getOppositeFacing, getOutputsWhenCookedByKiln, getPigItemFoodValue, getPistonShovelEjectDirection, getPlaceSoundName, getPlaceSoundName, getPlantGrowthOnMultiplier, getPlayerRelativeBlockHardness, getPreventsFluidFlow, getRenderBlockPass, getRenderColor, getRenderType, getSelectedBoundingBoxFromPool, getSelectedBoundingBoxFromPool, getStackRetrievedByBlockDispenser, getStepSound, getStepSound, getStepSoundInternal, getStepSoundName, getStepSoundName, getTextureName, getTickRandomly, getUnlocalizedName, getUnlocalizedName2, getWeedsGrowthLevel, getWeightOnPathBlocked, harvestBlock, hasCenterHardPointToFacing, hasCenterHardPointToFacing, hasComparatorInputOverride, hasComparatorInputOverride, hasContactPointToStairNarrowVerticalFace, hasContactPointToStairShapedFace, hasFallingBlockRestingOn, hasLargeCenterHardPointToFacing, hasMortar, hasSmallCenterHardPointToFacing, hasSmallCenterHardPointToFacing, 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, isProvidingStrongPower, isProvidingWeakPower, isRedstoneConductor, isReplaceableVegetation, isStairBlock, isStickyToSnow, isWall, mouseOverRayTrace, notifyNearbyAnimalsFinishedFalling, notifyNeighborDirtDugWithImproperTool, notifyNeighborsBlockDisrupted, notifyOfFullStagePlantGrowthOn, notifyOfPlantAboveRemoved, onArrowCollide, onArrowImpact, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByMiningCharge, onBlockDestroyedByPlayer, onBlockDestroyedLandingFromFall, onBlockEventReceived, onBlockHarvested, onBlockPlacedBy, onBlockPreDestroy, onBlockSawed, onBlockSawed, onBrokenByPistonPush, onCookedByKiLn, onCraftedOnTurntable, onCreativeBonemealApplied, onCrushedByFallingEntity, onDestroyedByFire, onDirtDugWithImproperTool, onDirtSlabDugWithImproperTool, onEntityCollidedWithBlock, onEntityStepsIn, onEntityWalking, onFallenUpon, onFallingUpdate, onFinishedFalling, onFinishFalling, onFluidFlowIntoBlock, onInfested, onMortarApplied, onNeighborDisrupted, onPlayerWalksOnBlock, onPostBlockPlaced, onPreBlockPlacedByPiston, onRemovedByBlockDispenser, onRotatedAroundBlockOnTurntableToFacing, onRotatedOnTurntable, onStartFalling, onStruckByLightning, postBlockDestroyedByExplosion, postBlockDestroyedByMiningCharge, preBlockPlacedBy, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomUpdateTick, removeWeeds, 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, shouldRenderWhileFalling, shouldSideBeRenderedOnFallingBlock, shouldWallConnectToThisBlockToFacing, shouldWallFormPostBelowThisBlock, startlesAnimalsWhenPlaced, tickRate, toggleFacing, triggersBuddy, turntableCraftingRotation, velocityToAddToEntity
-
Field Details
-
SUBTYPE_DIRT
public static final int SUBTYPE_DIRT- See Also:
-
SUBTYPE_GRASS
public static final int SUBTYPE_GRASS- See Also:
-
SUBTYPE_MYCELIUM
public static final int SUBTYPE_MYCELIUM- See Also:
-
SUBTYPE_PACKED_EARTH
public static final int SUBTYPE_PACKED_EARTH- See Also:
-
NUM_SUBTYPES
public static final int NUM_SUBTYPES- See Also:
-
-
Constructor Details
-
DirtSlabBlock
public DirtSlabBlock(int iBlockID)
-
-
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
-
damageDropped
public int damageDropped(int iMetadata) Description copied from class:BlockDetermines the damage on the item the block drops. Used in cloth and wood.- Overrides:
damageDroppedin classBlock
-
idDropped
Description copied from class:BlockReturns the ID of the items to drop on destruction. -
getMovementModifier
- Overrides:
getMovementModifierin classBlock
-
dropComponentItemsOnBadBreak
public boolean dropComponentItemsOnBadBreak(World world, int i, int j, int k, int iMetadata, float fChanceOfDrop) 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
-
getCanGrassSpreadToBlock
- Overrides:
getCanGrassSpreadToBlockin classBlock
-
spreadGrassToBlock
- Overrides:
spreadGrassToBlockin classBlock
-
getCanMyceliumSpreadToBlock
- Overrides:
getCanMyceliumSpreadToBlockin classBlock
-
spreadMyceliumToBlock
- Overrides:
spreadMyceliumToBlockin classBlock
-
attemptToCombineWithFallingEntity
public boolean attemptToCombineWithFallingEntity(World world, int i, int j, int k, EntityFallingSand entity) Description copied from class:Blockreturns true if the block has combined with the entity- Overrides:
attemptToCombineWithFallingEntityin classBlock
-
onAnchorBlockLost
- Specified by:
onAnchorBlockLostin classAttachedSlabBlock
-
getCombinedBlockID
public int getCombinedBlockID(int iMetadata) - Specified by:
getCombinedBlockIDin classSlabBlock
-
getCombinedMetadata
public int getCombinedMetadata(int iMetadata) - Overrides:
getCombinedMetadatain classSlabBlock
-
canBePistonShoveled
- Overrides:
canBePistonShoveledin classBlock
-
canSilkHarvest
protected boolean canSilkHarvest()Description copied from class:BlockReturn true if a player with Silk Touch can harvest this block directly, and not its normal drops.- Overrides:
canSilkHarvestin classBlock
-
createStackedBlock
Description copied from class:BlockReturns 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. // +++START EDIT+++ FCNOTE: This is the function used to create the silk-touch drop // ---END EDIT---- Overrides:
createStackedBlockin classSlabBlock
-
canBeGrazedOn
- Overrides:
canBeGrazedOnin classBlock
-
onGrazed
-
onVegetationAboveGrazed
- Overrides:
onVegetationAboveGrazedin classBlock
-
onBlockDestroyedWithImproperTool
public void onBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata) 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
-
getSubtype
-
getSubtype
public int getSubtype(int iMetadata) -
setSubtype
-
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
-
getIcon
Description copied from class:BlockFrom the specified side and block metadata retrieves the blocks texture. Args: side, metadata -
getBlockTexture
@Environment(CLIENT) public Icon getBlockTexture(IBlockAccess blockAccess, int i, int j, int k, int iSide) Description copied from class:BlockRetrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side- Overrides:
getBlockTexturein classBlock
-
getSideOverlayTexture
@Environment(CLIENT) public Icon getSideOverlayTexture(IBlockAccess blockAccess, int i, int j, int k) -
getSubBlocks
Description copied from class:Blockreturns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)- Overrides:
getSubBlocksin classBlock
-
renderBlock
- Overrides:
renderBlockin classBlock
-
renderBlockAsItem
@Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness) - Overrides:
renderBlockAsItemin classBlock
-
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
-