public class BlockFluidClassic extends BlockFluidBase
Block.EnumOffsetType
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
protected int[] |
flowCost |
protected boolean[] |
isOptimalFlowDirection |
protected FluidStack |
stack |
defaultDisplacements, definedFluid, density, densityDir, displacements, FLOW_DIRECTION, FLUID_RENDER_PROPS, fluidName, LEVEL, LEVEL_CORNERS, maxScaledLight, quantaPerBlock, quantaPerBlockFloat, renderLayer, temperature, tickRate
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness
delegate
Constructor and Description |
---|
BlockFluidClassic(Fluid fluid,
Material material) |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateFlowCost(World world,
BlockPos pos,
int recurseDepth,
int side) |
boolean |
canCollideCheck(IBlockState state,
boolean fullHit) |
boolean |
canDrain(World world,
BlockPos pos)
Check to see if a block can be drained.
|
protected boolean |
canFlowInto(IBlockAccess world,
BlockPos pos) |
FluidStack |
drain(World world,
BlockPos pos,
boolean doDrain)
Attempt to drain the block.
|
protected void |
flowIntoBlock(World world,
BlockPos pos,
int meta) |
protected int |
getLargerQuanta(IBlockAccess world,
BlockPos pos,
int compare) |
int |
getLightValue(IBlockState state,
IBlockAccess world,
BlockPos pos)
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,
BlockPos pos) |
int |
getQuantaValue(IBlockAccess world,
BlockPos pos) |
boolean |
isFlowingVertically(IBlockAccess world,
BlockPos pos) |
boolean |
isSourceBlock(IBlockAccess world,
BlockPos pos) |
BlockFluidClassic |
setFluidStack(FluidStack stack) |
BlockFluidClassic |
setFluidStackAmount(int amount) |
void |
updateTick(World world,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
canDisplace, createBlockState, displaceIfPossible, getBlockLayer, getDensity, getExtendedState, getFilledPercentage, getFlowDirection, getFlowVector, getFluid, getFluidHeightAverage, getFluidHeightForRender, getItemDropped, getMetaFromState, getPackedLightmapCoords, getQuantaPercentage, getQuantaValueAbove, getQuantaValueBelow, getSelectedBoundingBox, getTemperature, isFullCube, isOpaqueCube, isPassable, modifyAcceleration, neighborChanged, onBlockAdded, quantityDropped, requiresUpdates, setDensity, setMaxScaledLight, setQuantaPerBlock, setRenderLayer, setTemperature, setTickRate, shouldSideBeRendered, tickRate
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, collisionRayTrace, createStackedBlock, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSoundType, getStateById, getStateFromMeta, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, toString, withMirror, withRotation
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected boolean[] isOptimalFlowDirection
protected int[] flowCost
protected FluidStack stack
public BlockFluidClassic setFluidStack(FluidStack stack)
public BlockFluidClassic setFluidStackAmount(int amount)
public int getQuantaValue(IBlockAccess world, BlockPos pos)
getQuantaValue
in class BlockFluidBase
public boolean canCollideCheck(IBlockState state, boolean fullHit)
canCollideCheck
in class BlockFluidBase
public int getMaxRenderHeightMeta()
getMaxRenderHeightMeta
in class BlockFluidBase
public int getLightValue(IBlockState state, IBlockAccess world, BlockPos pos)
Block
getLightValue
in class BlockFluidBase
state
- Block stateworld
- The current worldpos
- Block position in worldpublic void updateTick(World world, BlockPos pos, IBlockState state, java.util.Random rand)
updateTick
in class Block
public boolean isFlowingVertically(IBlockAccess world, BlockPos pos)
public boolean isSourceBlock(IBlockAccess world, BlockPos pos)
protected int calculateFlowCost(World world, BlockPos pos, int recurseDepth, int side)
protected boolean canFlowInto(IBlockAccess world, BlockPos pos)
protected int getLargerQuanta(IBlockAccess world, BlockPos pos, int compare)
public FluidStack drain(World world, BlockPos pos, boolean doDrain)
IFluidBlock
doDrain
- If false, the drain will only be simulated.public boolean canDrain(World world, BlockPos pos)
IFluidBlock