public abstract class BlockFluid extends Block
Modifier and Type | Field and Description |
---|---|
protected Icon[] |
theIcon |
anvil, beacon, bed, bedrock, blockClay, blockConstructorCalled, blockDiamond, blockEmerald, blockFireSpreadSpeed, blockFlammability, blockGold, blockHardness, blockIcon, blockID, blockIron, blockLapis, blockMaterial, blockNetherQuartz, blockParticleGravity, blockRedstone, blockResistance, blocksList, blockSnow, bookShelf, brewingStand, brick, cactus, cake, canBlockGrass, carpet, carrot, cauldron, chest, chestTrapped, cloth, coalBlock, cobblestone, cobblestoneMossy, cobblestoneWall, cocoaPlant, commandBlock, crops, 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, hay, hopperBlock, ice, isBlockContainer, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, maxX, maxY, maxZ, melon, melonStem, minX, minY, minZ, mobSpawner, 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
Modifier | Constructor and Description |
---|---|
protected |
BlockFluid(int par1,
Material par2Material) |
Modifier and Type | Method and Description |
---|---|
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
|
int |
colorMultiplier(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
float |
getBlockBrightness(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
int |
getBlockColor() |
boolean |
getBlocksMovement(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World par1World,
int par2,
int par3,
int par4)
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 int |
getEffectiveFlowDecay(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.
|
float |
getFilledPercentage(IBlockAccess world,
int x,
int y,
int z)
Deprecated.
|
protected int |
getFlowDecay(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 double |
getFlowDirection(IBlockAccess par0IBlockAccess,
int par1,
int par2,
int par3,
Material par4Material) |
static float |
getFluidHeightPercent(int par0)
Returns the percentage of the fluid block that is air, based on the given flow decay of the fluid.
|
static Icon |
getFluidIcon(java.lang.String par0Str) |
Icon |
getIcon(int par1,
int par2) |
int |
getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4) |
int |
getRenderBlockPass() |
int |
getRenderType()
The type of render function that is called for this block
|
int |
idDropped(int par1,
java.util.Random par2Random,
int par3)
Returns the ID of the items to drop on destruction.
|
boolean |
isBlockSolid(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.
|
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.
|
void |
onBlockAdded(World par1World,
int par2,
int par3,
int par4)
Called whenever the block is added into the world.
|
void |
onNeighborBlockChange(World par1World,
int par2,
int par3,
int par4,
int par5)
Lets the block know when one of its neighbor changes.
|
int |
quantityDropped(java.util.Random par1Random)
Returns the quantity of items to drop on block destruction.
|
void |
randomDisplayTick(World par1World,
int par2,
int par3,
int par4,
java.util.Random par5Random) |
void |
registerIcons(IconRegister par1IconRegister) |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
boolean |
shouldSideBeRendered(IBlockAccess par1IBlockAccess,
int par2,
int par3,
int par4,
int par5) |
int |
tickRate(World par1World)
How many world ticks before ticking
|
protected void |
triggerLavaMixEffects(World par1World,
int par2,
int par3,
int par4)
Creates fizzing sound and smoke.
|
void |
velocityToAddToEntity(World par1World,
int par2,
int par3,
int par4,
Entity par5Entity,
Vec3 par6Vec3)
Can add to the passed in vector for a movement vector to be applied to the entity.
|
addBlockDestroyEffects, addBlockHitEffects, addCollisionBoxesToList, addCreativeItems, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canConnectRedstone, canCreatureSpawn, canDragonDestroy, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem_do, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_82506_l, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockDropped, getBlockHardness, getBlockTexture, getBlockTextureFromSide, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFilledPercentage, getFireSpreadSpeed, getFlammability, getItemIconName, getLightOpacity, getLightValue, getLocalizedName, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getValidRotations, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, idPicked, initializeBlock, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolidOnSide, isCollidable, isFertile, isFireSource, isFlammable, isFlowerPot, isGenMineableReplaceable, isLadder, isLeaves, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborTileChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDroppedWithBonus, recolourBlock, removeBlockByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, updateTick, weakTileChanges
protected Icon[] theIcon
protected BlockFluid(int par1, Material par2Material)
public boolean getBlocksMovement(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlocksMovement
in class Block
public int getBlockColor()
getBlockColor
in class Block
public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
colorMultiplier
in class Block
public static float getFluidHeightPercent(int par0)
@Deprecated public float getFilledPercentage(IBlockAccess world, int x, int y, int z)
protected int getFlowDecay(World par1World, int par2, int par3, int par4)
protected int getEffectiveFlowDecay(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean canCollideCheck(int par1, boolean par2)
canCollideCheck
in class Block
public boolean isBlockSolid(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
isBlockSolid
in class Block
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
shouldSideBeRendered
in class Block
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
getCollisionBoundingBoxFromPool
in class Block
public int getRenderType()
getRenderType
in class Block
public int idDropped(int par1, java.util.Random par2Random, int par3)
public int quantityDropped(java.util.Random par1Random)
quantityDropped
in class Block
public void velocityToAddToEntity(World par1World, int par2, int par3, int par4, Entity par5Entity, Vec3 par6Vec3)
velocityToAddToEntity
in class Block
public int tickRate(World par1World)
public void onBlockAdded(World par1World, int par2, int par3, int par4)
onBlockAdded
in class Block
public void onNeighborBlockChange(World par1World, int par2, int par3, int par4, int par5)
onNeighborBlockChange
in class Block
public int getMixedBrightnessForBlock(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getMixedBrightnessForBlock
in class Block
public float getBlockBrightness(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
getBlockBrightness
in class Block
public int getRenderBlockPass()
getRenderBlockPass
in class Block
public void randomDisplayTick(World par1World, int par2, int par3, int par4, java.util.Random par5Random)
randomDisplayTick
in class Block
public static double getFlowDirection(IBlockAccess par0IBlockAccess, int par1, int par2, int par3, Material par4Material)
protected void triggerLavaMixEffects(World par1World, int par2, int par3, int par4)
public void registerIcons(IconRegister par1IconRegister)
registerIcons
in class Block
public static Icon getFluidIcon(java.lang.String par0Str)