public abstract class BlockFluidBase extends Block implements IFluidBlock
anvil, beacon, bed, bedrock, blockClay, blockDiamond, blockEmerald, blockGold, blockHardness, 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, enchantmentTable, enderChest, endPortal, endPortalFrame, fence, fenceGate, fenceIron, fire, flowerPot, furnaceBurning, furnaceIdle, glass, glowStone, grass, gravel, hardenedClay, hay, hopperBlock, ice, jukebox, ladder, lavaMoving, lavaStill, leaves, lever, lightOpacity, lightValue, lockedChest, melon, melonStem, mobSpawner, mushroomBrown, mushroomCapBrown, mushroomCapRed, mushroomRed, music, mycelium, 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, thinGlass, tilledField, tnt, torchRedstoneActive, torchRedstoneIdle, torchWood, trapdoor, tripWire, tripWireSource, useNeighborBrightness, vine, waterlily, waterMoving, waterStill, web, whiteStone, wood, woodDoubleSlab, woodenButton, woodSingleSlab, workbench| Constructor and Description |
|---|
BlockFluidBase(int id,
Fluid fluid,
Material material) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canCollideCheck(int meta,
boolean fullHit)
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
|
boolean |
canDisplace(IBlockAccess world,
int x,
int y,
int z)
Returns true if the block at (x, y, z) is displaceable.
|
boolean |
displaceIfPossible(World world,
int x,
int y,
int z)
Attempt to displace the block at (x, y, z), return true if it was displaced.
|
boolean |
func_82506_l() |
float |
getBlockBrightness(IBlockAccess world,
int x,
int y,
int z) |
boolean |
getBlocksMovement(IBlockAccess world,
int x,
int y,
int z) |
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World world,
int x,
int y,
int z)
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)
|
static int |
getDensity(IBlockAccess world,
int x,
int y,
int z) |
float |
getFilledPercentage(World world,
int x,
int y,
int z)
Returns the amount of a single block is filled.
|
static double |
getFlowDirection(IBlockAccess world,
int x,
int y,
int z) |
Vec3 |
getFlowVector(IBlockAccess world,
int x,
int y,
int z) |
Fluid |
getFluid()
Returns the Fluid associated with this Block.
|
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
|
abstract int |
getMaxRenderHeightMeta() |
int |
getMixedBrightnessForBlock(IBlockAccess world,
int x,
int y,
int z) |
float |
getQuantaPercentage(IBlockAccess world,
int x,
int y,
int z) |
abstract int |
getQuantaValue(IBlockAccess world,
int x,
int y,
int z) |
int |
getQuantaValueAbove(IBlockAccess world,
int x,
int y,
int z,
int aboveThis) |
int |
getQuantaValueBelow(IBlockAccess world,
int x,
int y,
int z,
int belowThis) |
int |
getRenderBlockPass() |
int |
getRenderType()
The type of render function that is called for this block
|
static int |
getTemperature(IBlockAccess world,
int x,
int y,
int z) |
int |
idDropped(int par1,
Random par2Random,
int par3)
Returns the ID of the items to drop on destruction.
|
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 world,
int x,
int y,
int z)
Called whenever the block is added into the world.
|
void |
onNeighborBlockChange(World world,
int x,
int y,
int z,
int blockId)
Lets the block know when one of its neighbor changes.
|
int |
quantityDropped(Random par1Random)
Returns the quantity of items to drop on block destruction.
|
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
BlockFluidBase |
setDensity(int density) |
BlockFluidBase |
setMaxScaledLight(int maxScaledLight) |
BlockFluidBase |
setQuantaPerBlock(int quantaPerBlock) |
BlockFluidBase |
setRenderPass(int renderPass) |
BlockFluidBase |
setTemperature(int temperature) |
BlockFluidBase |
setTickRate(int tickRate) |
boolean |
shouldSideBeRendered(IBlockAccess world,
int x,
int y,
int z,
int side) |
int |
tickRate(World world)
How many world ticks before ticking
|
void |
velocityToAddToEntity(World world,
int x,
int y,
int z,
Entity entity,
Vec3 vec)
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, canSustainLeaves, canSustainPlant, collisionRayTrace, colorMultiplier, createTileEntity, damageDropped, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockColor, getBlockDropped, getBlockHardness, getBlockTexture, getBlockTextureFromSide, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getIcon, getItemIconName, getLightOpacity, getLocalizedName, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTickRandomly, getUnlocalizedName, getValidRotations, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, idPicked, isAirBlock, isAssociatedBlockID, isAssociatedBlockID, isBeaconBase, isBed, isBedFoot, isBlockBurning, isBlockFoliage, isBlockNormalCube, isBlockReplaceable, isBlockSolid, 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, randomDisplayTick, recolourBlock, registerIcons, removeBlockByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setBurnProperties, setCreativeTab, setHardness, setLightOpacity, setLightValue, setResistance, setStepSound, setTextureName, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, updateTick, weakTileChangesequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanDrain, drainpublic BlockFluidBase setQuantaPerBlock(int quantaPerBlock)
public BlockFluidBase setDensity(int density)
public BlockFluidBase setTemperature(int temperature)
public BlockFluidBase setTickRate(int tickRate)
public BlockFluidBase setRenderPass(int renderPass)
public BlockFluidBase setMaxScaledLight(int maxScaledLight)
public boolean canDisplace(IBlockAccess world, int x, int y, int z)
public boolean displaceIfPossible(World world, int x, int y, int z)
public abstract int getQuantaValue(IBlockAccess world, int x, int y, int z)
public abstract boolean canCollideCheck(int meta,
boolean fullHit)
BlockcanCollideCheck in class Blockpublic abstract int getMaxRenderHeightMeta()
public void onBlockAdded(World world, int x, int y, int z)
BlockonBlockAdded in class Blockpublic void onNeighborBlockChange(World world, int x, int y, int z, int blockId)
BlockonNeighborBlockChange in class Blockpublic boolean func_82506_l()
func_82506_l in class Blockpublic boolean getBlocksMovement(IBlockAccess world, int x, int y, int z)
getBlocksMovement in class Blockpublic AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z)
BlockgetCollisionBoundingBoxFromPool in class Blockpublic int idDropped(int par1,
Random par2Random,
int par3)
Blockpublic int quantityDropped(Random par1Random)
BlockquantityDropped in class Blockpublic int tickRate(World world)
Blockpublic void velocityToAddToEntity(World world, int x, int y, int z, Entity entity, Vec3 vec)
BlockvelocityToAddToEntity in class Blockpublic int getLightValue(IBlockAccess world, int x, int y, int z)
BlockgetLightValue in class Blockworld - The current worldx - X Positiony - Y positionz - Z positionpublic int getRenderType()
BlockgetRenderType in class Blockpublic boolean isOpaqueCube()
BlockisOpaqueCube in class Blockpublic boolean renderAsNormalBlock()
BlockrenderAsNormalBlock in class Blockpublic float getBlockBrightness(IBlockAccess world, int x, int y, int z)
getBlockBrightness in class Blockpublic int getMixedBrightnessForBlock(IBlockAccess world, int x, int y, int z)
getMixedBrightnessForBlock in class Blockpublic int getRenderBlockPass()
getRenderBlockPass in class Blockpublic boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side)
shouldSideBeRendered in class Blockpublic static final int getDensity(IBlockAccess world, int x, int y, int z)
public static final int getTemperature(IBlockAccess world, int x, int y, int z)
public static double getFlowDirection(IBlockAccess world, int x, int y, int z)
public final int getQuantaValueBelow(IBlockAccess world, int x, int y, int z, int belowThis)
public final int getQuantaValueAbove(IBlockAccess world, int x, int y, int z, int aboveThis)
public final float getQuantaPercentage(IBlockAccess world, int x, int y, int z)
public Vec3 getFlowVector(IBlockAccess world, int x, int y, int z)
public Fluid getFluid()
IFluidBlockgetFluid in interface IFluidBlockpublic float getFilledPercentage(World world, int x, int y, int z)
IFluidBlockgetFilledPercentage in interface IFluidBlockgetFilledPercentage in class Block