Package btw.block.blocks
Class LooseSnowSlabBlock
java.lang.Object
net.minecraft.src.Block
api.block.blocks.SlabBlock
api.block.blocks.FallingSlabBlock
btw.block.blocks.LooseSnowSlabBlock
-
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 TypeMethodDescriptionbooleancanBePistonShoveled(World world, int i, int j, int k) booleancanBePlacedUpsideDownAtLocation(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.protected ItemStackcreateStackedBlock(int iMetadata) Returns an item stack containing a single instance of the current block type.booleangetCanBeSetOnFireDirectly(IBlockAccess blockAccess, int i, int j, int k) Whether the block itself can be set on fire, rather than a neighboring block being set to a fire blockbooleangetCanBeSetOnFireDirectlyByItem(IBlockAccess blockAccess, int i, int j, int k) intgetChanceOfFireSpreadingDirectlyTo(IBlockAccess blockAccess, int i, int j, int k) intgetCombinedBlockID(int iMetadata) intgetHardeningLevel(int iMetadata) intgetHardeningLevel(IBlockAccess blockAccess, int i, int j, int k) floatgetMovementModifier(World world, int i, int j, int k) intReturns the ID of the items to drop on destruction.booleanisBreakableBarricade(World world, int i, int j, int k, boolean advancedBreaker) voidonBlockAdded(World world, int i, int j, int k) Called whenever the block is added into the world.voidonBlockDestroyedWithImproperTool(World world, EntityPlayer player, int i, int j, int k, int iMetadata) Called on server only, after the block is removed from the worldvoidonPlayerWalksOnBlock(World world, int i, int j, int k, EntityPlayer player) intquantityDropped(Random rand) Returns the quantity of items to drop on block destruction.voidrandomDisplayTick(World world, int i, int j, int k, Random rand) A randomly called display update to be able to add particles or other items for displayvoidrandomUpdateTick(World world, int i, int j, int k, Random rand) Called on server onlyvoidregisterIcons(IconRegister register) When this method is called, your block should register all the icons it needs with the given IconRegister.voidrenderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness) voidrenderBlockSecondPass(RenderBlocks renderBlocks, int i, int j, int k, boolean bFirstPassResult) If the block has a second pass, like a kiln cooking overlay texture, it should Override this method.voidrenderFallingBlock(RenderBlocks renderBlocks, int i, int j, int k, int iMetadata) Applies both to falling blocks, and those pushed by pistonsintsetHardeningLevel(int iMetadata, int iLevel) voidsetHardeningLevel(World world, int i, int j, int k, int iLevel) booleansetOnFireDirectly(World world, int i, int j, int k) 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.FallingSlabBlock
attemptToCombineWithFallingEntity, isFallingBlock, onNeighborBlockChange, onStartFalling, shouldRenderWhileFalling, tickRateMethods inherited from class api.block.blocks.SlabBlock
canGroundCoverRestOnBlock, canMobsSpawnOn, convertToFullBlock, getBlockBoundsFromPoolBasedOnState, getBlockBoundsFromPoolFromMetadata, getCombinedMetadata, getIsUpsideDown, getIsUpsideDown, groundCoverRestingOnVisualOffset, hasContactPointToFullFace, hasContactPointToSlabSideFace, hasLargeCenterHardPointToFacing, hasNeighborWithMortarInContact, hasNeighborWithMortarInContact, hasStickySnowNeighborInContact, hasStickySnowNeighborInContact, isOpaqueCube, isSnowCoveringTopSurface, mobSpawnOnVerticalOffset, onBlockPlaced, 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, canBeGrazedOn, canBlockBePulledByPiston, canBlockBePushedByPiston, canBlocksBePlacedAgainstThisBlock, canBlockStay, canBlockStayDuringGenerate, canBlockSuffocateEntity, canCactusGrowOnBlock, canChiselsHarvest, canCollideCheck, canContainPistonPackingToFacing, canConvertBlock, canDomesticatedCropsGrowOnBlock, canDropFromExplosion, canEndermenPickUpBlock, canFallIntoBlockAtPos, canLeashKnotOnBlock, canNetherWartGrowOnBlock, canPathThroughBlock, canPlaceBlockAt, canPlaceBlockOnSide, 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, colorMultiplier, convertBlock, convertBlockFromMobSpawner, convertFacingToBottomTextureRotation, convertFacingToTopTextureRotation, cycleFacing, damageDropped, disableStats, doEndermenIgnoreNeighbors, doesBlockBreakSaw, doesBlockDropAsItemOnSaw, doesBlockHopperEject, doesBlockHopperInsert, doesExtinguishFireAbove, doesInfiniteBurnToFacing, doesItemRenderAsBlock, dropBlockAsItem, dropBlockAsItem_do, dropBlockAsItemWithChance, 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, getCanBlightSpreadToBlock, getCanBlockBeIncinerated, getCanBlockBeReplacedByFire, getCanBlockLightItemOnFire, getCanGrassGrowUnderBlock, getCanGrassSpreadToBlock, getCanMyceliumSpreadToBlock, getChickenItemFoodValue, getCollisionBoundingBoxFromPool, 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, 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, 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, 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, onBlockClicked, onBlockDestroyedByExplosion, 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, onGrazed, onInfested, onMortarApplied, onNeighborDirtDugWithImproperTool, onNeighborDisrupted, onPostBlockPlaced, onPreBlockPlacedByPiston, onRemovedByBlockDispenser, onRotatedAroundBlockOnTurntableToFacing, onRotatedOnTurntable, onStruckByLightning, onVegetationAboveGrazed, postBlockDestroyedByExplosion, postBlockDestroyedByMiningCharge, preBlockPlacedBy, quantityDroppedWithBonus, removeWeeds, renderBlock, renderBlockMovedByPiston, renderBlockWithTexture, renderCookingByKiLnOverlay, renderCrossHatch, 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, setPicksEffectiveOn, setPicksEffectiveOn, setPigItemFoodValue, setResistance, setShovelsEffectiveOn, setShovelsEffectiveOn, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldDeleteTileEntityOnBlockChange, shouldFenceConnectToThisBlockToFacing, shouldOffsetPositionIfPathingOutOf, shouldPaneConnectToThisBlockToFacing, shouldPlayStandardConvertSound, shouldSideBeRenderedOnFallingBlock, shouldWallConnectToThisBlockToFacing, shouldWallFormPostBelowThisBlock, spreadGrassToBlock, spreadMyceliumToBlock, startlesAnimalsWhenPlaced, toggleFacing, triggersBuddy, turntableCraftingRotation, velocityToAddToEntity
-
Constructor Details
-
LooseSnowSlabBlock
public LooseSnowSlabBlock(int iBlockID)
-
-
Method Details
-
idDropped
Description copied from class:BlockReturns the ID of the items to drop on destruction. -
quantityDropped
Description copied from class:BlockReturns the quantity of items to drop on block destruction.- Overrides:
quantityDroppedin 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
-
onBlockAdded
Description copied from class:BlockCalled whenever the block is added into the world. Args: world, x, y, z // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---- Overrides:
onBlockAddedin classFallingSlabBlock
-
getCombinedBlockID
public int getCombinedBlockID(int iMetadata) - Specified by:
getCombinedBlockIDin classSlabBlock
-
updateTick
Description copied from class:BlockTicks the block if it's been scheduled // +++START EDIT+++ FCNOTE: Called on server only // ---END EDIT---- Overrides:
updateTickin classFallingSlabBlock
-
randomUpdateTick
Description copied from class:BlockCalled on server only- Overrides:
randomUpdateTickin classBlock
-
canBePlacedUpsideDownAtLocation
- Overrides:
canBePlacedUpsideDownAtLocationin classFallingSlabBlock
-
onPlayerWalksOnBlock
- Overrides:
onPlayerWalksOnBlockin classBlock
-
getMovementModifier
- Overrides:
getMovementModifierin classBlock
-
getCanBeSetOnFireDirectly
Description copied from class:BlockWhether the block itself can be set on fire, rather than a neighboring block being set to a fire block- Overrides:
getCanBeSetOnFireDirectlyin classBlock
-
getCanBeSetOnFireDirectlyByItem
- Overrides:
getCanBeSetOnFireDirectlyByItemin classBlock
-
setOnFireDirectly
- Overrides:
setOnFireDirectlyin classBlock
-
getChanceOfFireSpreadingDirectlyTo
- Overrides:
getChanceOfFireSpreadingDirectlyToin 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
-
canBePistonShoveled
- Overrides:
canBePistonShoveledin classBlock
-
isBreakableBarricade
- Overrides:
isBreakableBarricadein classBlock
-
getHardeningLevel
-
getHardeningLevel
public int getHardeningLevel(int iMetadata) -
setHardeningLevel
-
setHardeningLevel
public int setHardeningLevel(int iMetadata, int iLevel) -
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
-
renderBlockSecondPass
@Environment(CLIENT) public void renderBlockSecondPass(RenderBlocks renderBlocks, int i, int j, int k, boolean bFirstPassResult) Description copied from class:BlockIf the block has a second pass, like a kiln cooking overlay texture, it should Override this method. This method does not call the overlay by default to cut down on rendering time, since this function is called by every single loaded block. Note that this function is necessary to prevent potential recursion within RenderBlock, if it were to call its own overlays directly, and then potentially get called with a texture overlay itself through RenderBlockWithTexture.- Overrides:
renderBlockSecondPassin classBlock
-
renderBlockAsItem
@Environment(CLIENT) public void renderBlockAsItem(RenderBlocks renderBlocks, int iItemDamage, float fBrightness) - Overrides:
renderBlockAsItemin classBlock
-
renderFallingBlock
@Environment(CLIENT) public void renderFallingBlock(RenderBlocks renderBlocks, int i, int j, int k, int iMetadata) Description copied from class:BlockApplies both to falling blocks, and those pushed by pistons- Overrides:
renderFallingBlockin classFallingSlabBlock
-
randomDisplayTick
Description copied from class:BlockA randomly called display update to be able to add particles or other items for display- Overrides:
randomDisplayTickin classBlock
-