public class BlockFluidClassic extends BlockFluidBase
Block.SoundType| Modifier and Type | Field and Description |
|---|---|
protected int[] |
flowCost |
protected boolean[] |
isOptimalFlowDirection |
protected FluidStack |
stack |
defaultDisplacements, density, densityDir, displacements, fluidName, maxScaledLight, quantaPerBlock, quantaPerBlockFloat, renderPass, temperature, tickRateblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness| Constructor and Description |
|---|
BlockFluidClassic(Fluid fluid,
Material material) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateFlowCost(World world,
int x,
int y,
int z,
int recurseDepth,
int side) |
boolean |
canCollideCheck(int meta,
boolean fullHit) |
boolean |
canDrain(World world,
int x,
int y,
int z)
Check to see if a block can be drained.
|
protected boolean |
canFlowInto(IBlockAccess world,
int x,
int y,
int z) |
FluidStack |
drain(World world,
int x,
int y,
int z,
boolean doDrain)
Attempt to drain the block.
|
protected void |
flowIntoBlock(World world,
int x,
int y,
int z,
int meta) |
protected int |
getLargerQuanta(IBlockAccess world,
int x,
int y,
int z,
int compare) |
int |
getLightValue(IBlockAccess world,
int x,
int y,
int z)
Get a light value for the block at the specified coordinates, normal ranges are between 0 and 15
|
int |
getMaxRenderHeightMeta() |
protected boolean[] |
getOptimalFlowDirections(World world,
int x,
int y,
int z) |
int |
getQuantaValue(IBlockAccess world,
int x,
int y,
int z) |
boolean |
isFlowingVertically(IBlockAccess world,
int x,
int y,
int z) |
boolean |
isSourceBlock(IBlockAccess world,
int x,
int y,
int z) |
BlockFluidClassic |
setFluidStack(FluidStack stack) |
BlockFluidClassic |
setFluidStackAmount(int amount) |
void |
updateTick(World world,
int x,
int y,
int z,
java.util.Random rand) |
canDisplace, displaceIfPossible, func_149698_L, getBlocksMovement, getCollisionBoundingBoxFromPool, getDensity, getFilledPercentage, getFlowDirection, getFlowVector, getFluid, getItemDropped, getMixedBrightnessForBlock, getQuantaPercentage, getQuantaValueAbove, getQuantaValueBelow, getRenderBlockPass, getRenderType, getTemperature, isOpaqueCube, onBlockAdded, onNeighborBlockChange, quantityDropped, renderAsNormalBlock, setDensity, setMaxScaledLight, setQuantaPerBlock, setRenderPass, setTemperature, setTickRate, shouldSideBeRendered, tickRate, velocityToAddToEntityaddCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, colorMultiplier, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockTextureFromSide, getCanBlockGrass, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIcon, getIdFromBlock, getItem, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isProvidingStrongPower, isProvidingWeakPower, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onBlockPreDestroy, onEntityCollidedWithBlock, onEntityWalking, onFallenUpon, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, recolourBlock, registerBlockIcons, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPowerprotected boolean[] isOptimalFlowDirection
protected int[] flowCost
protected FluidStack stack
public BlockFluidClassic setFluidStack(FluidStack stack)
public BlockFluidClassic setFluidStackAmount(int amount)
public int getQuantaValue(IBlockAccess world, int x, int y, int z)
getQuantaValue in class BlockFluidBasepublic boolean canCollideCheck(int meta,
boolean fullHit)
canCollideCheck in class BlockFluidBasepublic int getMaxRenderHeightMeta()
getMaxRenderHeightMeta in class BlockFluidBasepublic int getLightValue(IBlockAccess world, int x, int y, int z)
BlockgetLightValue in class BlockFluidBaseworld - The current worldx - X Positiony - Y positionz - Z positionpublic void updateTick(World world, int x, int y, int z, java.util.Random rand)
updateTick in class Blockpublic boolean isFlowingVertically(IBlockAccess world, int x, int y, int z)
public boolean isSourceBlock(IBlockAccess world, int x, int y, int z)
protected boolean[] getOptimalFlowDirections(World world, int x, int y, int z)
protected int calculateFlowCost(World world, int x, int y, int z, int recurseDepth, int side)
protected void flowIntoBlock(World world, int x, int y, int z, int meta)
protected boolean canFlowInto(IBlockAccess world, int x, int y, int z)
protected int getLargerQuanta(IBlockAccess world, int x, int y, int z, int compare)
public FluidStack drain(World world, int x, int y, int z, boolean doDrain)
IFluidBlockdoDrain - If false, the drain will only be simulated.public boolean canDrain(World world, int x, int y, int z)
IFluidBlock