Package net.minecraft.src
Class BlockFluid
java.lang.Object
net.minecraft.src.Block
net.minecraft.src.BlockFluid
- Direct Known Subclasses:
BlockFlowing,BlockStationary
-
Field Summary
FieldsFields 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 TypeMethodDescriptionbooleancanCollideCheck(int par1, boolean par2) Returns whether this block is collideable based on the arguments passed in \n@param par1 block metaData \n@param par2 whether the player right-clicked while holding a boatintcolorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color.floatgetBlockBrightness(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) How bright to render this block based on the light its receiving.intbooleangetBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) FCNOTE: This is misnamed and returns true if the block *doesn't* block movementbooleangetCanBlockBeIncinerated(World world, int i, int j, int k) Used by Hibachi to determine if it can remove the block above it when litgetCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4) // +++START EDIT+++ // ---END EDIT--- 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)protected intgetEffectiveFlowDecay(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) Returns the flow decay but converts values indicating falling liquid (values >=8) to their effective source block value of zero.protected intgetFlowDecay(World par1World, int par2, int par3, int par4) Returns the amount of fluid decay at the coordinates, or -1 if the block at the coordinates is not the same material as the fluid.static doublegetFlowDirection(IBlockAccess par0IBlockAccess, int par1, int par2, int par3, Material par4Material) the sin and cos of this number determine the surface gradient of the flowing block.static floatgetFluidHeightPercent(int par0) Returns the percentage of the fluid block that is air, based on the given flow decay of the fluid.static IcongetFluidIcon(String par0Str) getIcon(int par1, int par2) From the specified side and block metadata retrieves the blocks texture.intgetMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) Goes straight to getLightBrightnessForSkyBlocks for Blocks, does some fancy computing for FluidsintReturns which pass should this block be rendered on. 0 for solids and 1 for alphaintThe type of render function that is called for this blockgetStackRetrievedByBlockDispenser(World world, int i, int j, int k) If the stack returned is null, the block will not be retrievedintReturns the ID of the items to drop on destruction.booleanisBlockSolid(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.booleanIs this block (a) opaque and (b) a full 1m cube?voidonBlockAdded(World par1World, int par2, int par3, int par4) Called whenever the block is added into the world.voidonNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5) Lets the block know when one of its neighbor changes.intquantityDropped(Random par1Random) Returns the quantity of items to drop on block destruction.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 par1IconRegister) When this method is called, your block should register all the icons it needs with the given IconRegister.booleanIf this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)booleanrenderBlock(RenderBlocks renderer, int i, int j, int k) booleanshouldSideBeRendered(IBlockAccess blockAccess, int i, int j, int k, int iSide) intHow many world ticks before tickingprotected voidtriggerLavaMixEffects(World par1World, int par2, int par3, int par4) Creates fizzing sound and smoke.voidvelocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3) // +++START EDIT+++ // ---END EDIT--- Can add to the passed in vector for a movement vector to be applied to the entity.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, canBeGrazedOn, canBePistonShoveled, canBlockBePulledByPiston, canBlockBePushedByPiston, canBlocksBePlacedAgainstThisBlock, canBlockStay, canBlockStayDuringGenerate, canBlockSuffocateEntity, canCactusGrowOnBlock, canChiselsHarvest, canContainPistonPackingToFacing, canConvertBlock, canDomesticatedCropsGrowOnBlock, canDropFromExplosion, canEndermenPickUpBlock, canFallIntoBlockAtPos, canGroundCoverRestOnBlock, canLeashKnotOnBlock, canMobsSpawnOn, 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, convertBlock, convertBlockFromMobSpawner, convertFacingToBottomTextureRotation, convertFacingToTopTextureRotation, createStackedBlock, 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, getBlockBoundsFromPoolBasedOnState, getBlockBoundsFromPoolForItemRender, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockHardness, getBlockIDOnInfest, getBlockTexture, getBlockTextureFromSide, getBreakSoundName, getBreakSoundName, getBuoyancy, getCanBeCookedByKiLn, getCanBeSetOnFireDirectly, getCanBeSetOnFireDirectlyByItem, getCanBlightSpreadToBlock, 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, getIconByIndex, getIsBlockWarm, getIsFertilizedForPlantGrowth, getIsProblemToRemove, getItemIconName, getLightValue, getLightValueForBlock, getLocalizedName, getMapColor, getMechanicalPowerLevelProvidedToAxleAtFacing, getMetadataConversionForStrataLevel, getMobilityFlag, getModId, getMovementModifier, getNewMetadataRotatedAroundBlockOnTurntableToFacing, getOppositeFacing, getOutputsWhenCookedByKiln, getPigItemFoodValue, getPistonShovelEjectDirection, getPlaceSoundName, getPlaceSoundName, getPlantGrowthOnMultiplier, getPlayerRelativeBlockHardness, getPreventsFluidFlow, getRenderColor, getSelectedBoundingBoxFromPool, getSelectedBoundingBoxFromPool, 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, 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, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByMiningCharge, onBlockDestroyedByPlayer, onBlockDestroyedLandingFromFall, onBlockDestroyedWithImproperTool, onBlockEventReceived, onBlockHarvested, onBlockPlaced, 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, onPlayerWalksOnBlock, onPostBlockPlaced, onPreBlockPlacedByPiston, onRemovedByBlockDispenser, onRotatedAroundBlockOnTurntableToFacing, onRotatedOnTurntable, onStartFalling, onStruckByLightning, onVegetationAboveGrazed, postBlockDestroyedByExplosion, postBlockDestroyedByMiningCharge, preBlockPlacedBy, quantityDroppedWithBonus, randomUpdateTick, removeWeeds, 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, shouldSideBeRenderedOnFallingBlock, shouldWallConnectToThisBlockToFacing, shouldWallFormPostBelowThisBlock, spreadGrassToBlock, spreadMyceliumToBlock, startlesAnimalsWhenPlaced, toggleFacing, triggersBuddy, turntableCraftingRotation, updateTick
-
Field Details
-
isAnySideBeingRendered
@Environment(CLIENT) public static boolean isAnySideBeingRendered
-
-
Constructor Details
-
BlockFluid
-
-
Method Details
-
getBlocksMovement
Description copied from class:BlockFCNOTE: This is misnamed and returns true if the block *doesn't* block movement- Overrides:
getBlocksMovementin classBlock
-
getBlockColor
public int getBlockColor()- Overrides:
getBlockColorin classBlock
-
colorMultiplier
Returns 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
-
getFluidHeightPercent
public static float getFluidHeightPercent(int par0) Returns the percentage of the fluid block that is air, based on the given flow decay of the fluid. -
getIcon
From the specified side and block metadata retrieves the blocks texture. Args: side, metadata -
getFlowDecay
Returns the amount of fluid decay at the coordinates, or -1 if the block at the coordinates is not the same material as the fluid. -
getEffectiveFlowDecay
Returns the flow decay but converts values indicating falling liquid (values >=8) to their effective source block value of zero. -
renderAsNormalBlock
public boolean renderAsNormalBlock()If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)- Overrides:
renderAsNormalBlockin classBlock
-
isOpaqueCube
public boolean 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.- Overrides:
isOpaqueCubein classBlock
-
canCollideCheck
public boolean canCollideCheck(int par1, boolean par2) Returns whether this block is collideable based on the arguments passed in \n@param par1 block metaData \n@param par2 whether the player right-clicked while holding a boat- Overrides:
canCollideCheckin classBlock
-
isBlockSolid
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- Overrides:
isBlockSolidin classBlock
-
getCollisionBoundingBoxFromPool
// +++START EDIT+++ // ---END EDIT--- 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)- Overrides:
getCollisionBoundingBoxFromPoolin classBlock
-
getRenderType
public int getRenderType()The type of render function that is called for this block- Overrides:
getRenderTypein 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
-
velocityToAddToEntity
public void velocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3) // +++START EDIT+++ // ---END EDIT--- Can add to the passed in vector for a movement vector to be applied to the entity. Args: x, y, z, entity, vec3d- Overrides:
velocityToAddToEntityin classBlock
-
tickRate
How many world ticks before ticking -
getMixedBrightnessForBlock
Goes straight to getLightBrightnessForSkyBlocks for Blocks, does some fancy computing for Fluids- Overrides:
getMixedBrightnessForBlockin classBlock
-
getBlockBrightness
How bright to render this block based on the light its receiving. Args: iBlockAccess, x, y, z- Overrides:
getBlockBrightnessin classBlock
-
getRenderBlockPass
public int getRenderBlockPass()Returns which pass should this block be rendered on. 0 for solids and 1 for alpha- Overrides:
getRenderBlockPassin classBlock
-
randomDisplayTick
A randomly called display update to be able to add particles or other items for display- Overrides:
randomDisplayTickin classBlock
-
getFlowDirection
public static double getFlowDirection(IBlockAccess par0IBlockAccess, int par1, int par2, int par3, Material par4Material) the sin and cos of this number determine the surface gradient of the flowing block. -
onBlockAdded
Called whenever the block is added into the world. Args: world, x, y, z- Overrides:
onBlockAddedin classBlock
-
onNeighborBlockChange
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 classBlock
-
triggerLavaMixEffects
Creates fizzing sound and smoke. Used when lava flows over block or mixes with water. -
registerIcons
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.- Overrides:
registerIconsin classBlock
-
getFluidIcon
-
getCanBlockBeIncinerated
Description copied from class:BlockUsed by Hibachi to determine if it can remove the block above it when lit- Overrides:
getCanBlockBeIncineratedin classBlock
-
getStackRetrievedByBlockDispenser
Description copied from class:BlockIf the stack returned is null, the block will not be retrieved- Overrides:
getStackRetrievedByBlockDispenserin classBlock
-
shouldSideBeRendered
@Environment(CLIENT) public boolean shouldSideBeRendered(IBlockAccess blockAccess, int i, int j, int k, int iSide) - Overrides:
shouldSideBeRenderedin classBlock
-
renderBlock
- Overrides:
renderBlockin classBlock
-