public class BlockForestryFluid extends net.minecraftforge.fluids.BlockFluidClassic implements IItemModelRegister
canCreateSources, flowCost, isOptimalFlowDirection, SIDES, stackdefaultDisplacements, definedFluid, density, densityDir, displacements, FLOW_DIRECTION, FLUID_RENDER_PROPS, fluidName, LEVEL, LEVEL_CORNERS, maxScaledLight, quantaFraction, quantaPerBlock, quantaPerBlockFloat, renderLayer, SIDE_OVERLAYS, temperature, tickRateBLOCK_STATE_IDS, blockHardness, blockMapColor, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, material, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
BlockForestryFluid(Fluids forestryFluid) |
BlockForestryFluid(Fluids forestryFluid,
int flammability,
boolean flammable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDisplace(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
boolean |
displaceIfPossible(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
java.awt.Color |
getColor() |
int |
getFireSpreadSpeed(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
int |
getFlammability(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
net.minecraftforge.fluids.Fluid |
getFluid() |
net.minecraft.block.material.Material |
getMaterial(net.minecraft.block.state.IBlockState state) |
boolean |
isFireSource(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
boolean |
isFlammable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
void |
randomDisplayTick(net.minecraft.block.state.IBlockState stateIn,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand)
Copied from
BlockLiquid.randomDisplayTick(IBlockState, World, BlockPos, Random)
and modified to have colored particles. |
void |
registerModel(net.minecraft.item.Item item,
IModelManager manager) |
void |
updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand) |
calculateFlowCost, canCollideCheck, canDrain, canFlowInto, drain, flowIntoBlock, getLargerQuanta, getMaxRenderHeightMeta, getOptimalFlowDirections, getQuantaValue, hasDownhillFlow, isFlowingVertically, isSourceBlock, place, setFluidStack, setFluidStackAmountcausesDownwardCurrent, createBlockState, getBlockFaceShape, getBlockLiquidHeight, getCollisionBoundingBox, getDensity, getDensity, getExtendedState, getFilledPercentage, getFilledPercentage, getFlowDirection, getFlowVector, getFluidHeightAverage, getFluidHeightForRender, getFogColor, getItemDropped, getLightValue, getMetaFromState, getPackedLightmapCoords, getQuantaPercentage, getQuantaValueAbove, getQuantaValueBelow, getRenderLayer, getStateAtViewpoint, getStateFromMeta, getTemperature, getTemperature, isFullCube, isOpaqueCube, isPassable, modifyAcceleration, neighborChanged, onBlockAdded, quantityDropped, requiresUpdates, setDensity, setMaxScaledLight, setQuantaPerBlock, setRenderLayer, setTemperature, setTickRate, shouldSideBeRendered, tickRateaddCollisionBoxToList, 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, getCreativeTab, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getOffset, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getPushReaction, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getTranslationKey, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, observedNeighborChange, onBlockActivated, onBlockClicked, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, onPlayerDestroy, quantityDropped, quantityDroppedWithBonus, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setTranslationKey, shouldCheckWeakPower, spawnAsEntity, toString, withMirror, withRotationpublic BlockForestryFluid(Fluids forestryFluid)
public BlockForestryFluid(Fluids forestryFluid, int flammability, boolean flammable)
public net.minecraftforge.fluids.Fluid getFluid()
getFluid in interface net.minecraftforge.fluids.IFluidBlockgetFluid in class net.minecraftforge.fluids.BlockFluidBasepublic void randomDisplayTick(net.minecraft.block.state.IBlockState stateIn,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand)
BlockLiquid.randomDisplayTick(IBlockState, World, BlockPos, Random)
and modified to have colored particles.randomDisplayTick in class net.minecraft.block.Blockpublic boolean canDisplace(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
canDisplace in class net.minecraftforge.fluids.BlockFluidBasepublic boolean displaceIfPossible(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
displaceIfPossible in class net.minecraftforge.fluids.BlockFluidBasepublic int getFireSpreadSpeed(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face)
getFireSpreadSpeed in class net.minecraft.block.Blockpublic int getFlammability(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.util.EnumFacing face)
getFlammability in class net.minecraft.block.Blockpublic boolean isFlammable(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face)
isFlammable in class net.minecraft.block.Blockpublic boolean isFireSource(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
isFireSource in class net.minecraft.block.Blockpublic java.awt.Color getColor()
public net.minecraft.block.material.Material getMaterial(net.minecraft.block.state.IBlockState state)
getMaterial in class net.minecraft.block.Blockpublic void registerModel(net.minecraft.item.Item item,
IModelManager manager)
registerModel in interface IItemModelRegisterpublic void updateTick(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
updateTick in class net.minecraftforge.fluids.BlockFluidClassic