public abstract class BlockFluidBase extends Block implements IFluidBlock
Block.SoundType| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<Block,java.lang.Boolean> |
defaultDisplacements |
protected Fluid |
definedFluid
This is the fluid used in the constructor.
|
protected int |
density |
protected int |
densityDir |
protected java.util.Map<Block,java.lang.Boolean> |
displacements |
protected java.lang.String |
fluidName |
protected int |
maxScaledLight |
protected int |
quantaPerBlock |
protected float |
quantaPerBlockFloat |
protected int |
renderPass |
protected int |
temperature |
protected int |
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 |
|---|
BlockFluidBase(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
|
boolean |
canDisplace(IBlockAccess world,
int x,
int y,
int z)
Returns true if the block at (x, y, z) is displaceable.
|
boolean |
canPlaceBlockAt(World world,
int x,
int y,
int z)
Checks to see if its valid to put this block at the specified coordinates.
|
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_149698_L() |
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.
|
Item |
getItemDropped(int par1,
java.util.Random par2Random,
int par3) |
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)
How bright to render this block based on the light its receiving.
|
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()
Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
|
int |
getRenderType()
The type of render function that is called for this block
|
static int |
getTemperature(IBlockAccess world,
int x,
int y,
int z) |
boolean |
isOpaqueCube()
Is this block (a) opaque and (b) a full 1m cube?
|
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,
Block block)
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.
|
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)
Returns true if the given side of this block type should be rendered, if the adjacent block is at the given
coordinates.
|
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.
|
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, 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, updateTickclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanDrain, drainprotected static final java.util.Map<Block,java.lang.Boolean> defaultDisplacements
protected java.util.Map<Block,java.lang.Boolean> displacements
protected int quantaPerBlock
protected float quantaPerBlockFloat
protected int density
protected int densityDir
protected int temperature
protected int tickRate
protected int renderPass
protected int maxScaledLight
protected final java.lang.String fluidName
protected final Fluid definedFluid
public 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, Block block)
BlockonNeighborBlockChange in class Blockpublic boolean func_149698_L()
func_149698_L in class Blockpublic boolean canPlaceBlockAt(World world, int x, int y, int z)
BlockcanPlaceBlockAt 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 Item getItemDropped(int par1, java.util.Random par2Random, int par3)
getItemDropped in class Blockpublic int quantityDropped(java.util.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 int getMixedBrightnessForBlock(IBlockAccess world, int x, int y, int z)
BlockgetMixedBrightnessForBlock in class Blockpublic int getRenderBlockPass()
BlockgetRenderBlockPass in class Blockpublic boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side)
BlockshouldSideBeRendered 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 IFluidBlock