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, tickRate
blockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, 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, velocityToAddToEntity
addCollisionBoxesToList, 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, 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, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower
protected 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 BlockFluidBase
public boolean canCollideCheck(int meta, boolean fullHit)
canCollideCheck
in class BlockFluidBase
public int getMaxRenderHeightMeta()
getMaxRenderHeightMeta
in class BlockFluidBase
public int getLightValue(IBlockAccess world, int x, int y, int z)
Block
getLightValue
in class BlockFluidBase
world
- 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 Block
public 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)
IFluidBlock
doDrain
- If false, the drain will only be simulated.public boolean canDrain(World world, int x, int y, int z)
IFluidBlock