public class BlockFluidClassic extends BlockFluidBase
Block.EnumOffsetType
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
protected boolean |
canCreateSources |
protected int[] |
flowCost |
protected boolean[] |
isOptimalFlowDirection |
protected static java.util.List<EnumFacing> |
SIDES |
protected FluidStack |
stack |
defaultDisplacements, definedFluid, density, densityDir, displacements, FLOW_DIRECTION, FLUID_RENDER_PROPS, fluidName, LEVEL, LEVEL_CORNERS, maxScaledLight, quantaFraction, quantaPerBlock, quantaPerBlockFloat, renderLayer, SIDE_OVERLAYS, temperature, tickRate
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness
delegate
Constructor and Description |
---|
BlockFluidClassic(Fluid fluid,
Material material) |
BlockFluidClassic(Fluid fluid,
Material material,
MapColor mapColor) |
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 |
getMaxRenderHeightMeta() |
protected boolean[] |
getOptimalFlowDirections(World world,
BlockPos pos) |
int |
getQuantaValue(IBlockAccess world,
BlockPos pos) |
protected boolean |
hasDownhillFlow(IBlockAccess world,
BlockPos pos,
EnumFacing direction) |
boolean |
isFlowingVertically(IBlockAccess world,
BlockPos pos) |
boolean |
isSourceBlock(IBlockAccess world,
BlockPos pos) |
int |
place(World world,
BlockPos pos,
FluidStack fluidStack,
boolean doPlace)
Attempts to place the block at a given position.
|
BlockFluidClassic |
setFluidStack(FluidStack stack) |
BlockFluidClassic |
setFluidStackAmount(int amount) |
void |
updateTick(World world,
BlockPos pos,
IBlockState state,
java.util.Random rand) |
canDisplace, causesDownwardCurrent, createBlockState, displaceIfPossible, getBlockFaceShape, getBlockLayer, getBlockLiquidHeight, getCollisionBoundingBox, getDensity, getDensity, getEffectiveQuanta, getExtendedState, getFilledPercentage, getFilledPercentage, getFlowDirection, getFlowVector, getFluid, getFluidHeightAverage, getFluidHeightForRender, getFogColor, getItemDropped, getLightValue, getMetaFromState, getPackedLightmapCoords, getQuantaPercentage, getQuantaValueAbove, getQuantaValueBelow, getStateAtViewpoint, getStateFromMeta, getTemperature, getTemperature, hasVerticalFlow, isFullCube, isOpaqueCube, isPassable, modifyAcceleration, neighborChanged, onBlockAdded, quantityDropped, requiresUpdates, setDensity, setMaxScaledLight, setQuantaPerBlock, setRenderLayer, setTemperature, setTickRate, shouldSideBeRendered, tickRate
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, addRunningEffects, beginLeavesDecay, breakBlock, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, observedNeighborChange, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, toString, withMirror, withRotation
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
protected static final java.util.List<EnumFacing> SIDES
protected boolean[] isOptimalFlowDirection
protected int[] flowCost
protected boolean canCreateSources
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(@Nonnull IBlockState state, boolean fullHit)
canCollideCheck
in class BlockFluidBase
public int getMaxRenderHeightMeta()
getMaxRenderHeightMeta
in class BlockFluidBase
public void updateTick(@Nonnull World world, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull java.util.Random rand)
updateTick
in class Block
protected final boolean hasDownhillFlow(IBlockAccess world, BlockPos pos, EnumFacing direction)
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 int place(World world, BlockPos pos, @Nonnull FluidStack fluidStack, boolean doPlace)
IFluidBlock
FluidUtil
.world
- the world to place the block inpos
- the position to place the block atfluidStack
- the fluid stack to get the required data fromdoPlace
- if false, the placement will only be simulated@Nullable 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