public class BlockFire extends Block
Block.SoundType
blockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, enableStats, 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
Modifier | Constructor and Description |
---|---|
protected |
BlockFire() |
Modifier and Type | Method and Description |
---|---|
boolean |
canBlockCatchFire(IBlockAccess p_149844_1_,
int p_149844_2_,
int p_149844_3_,
int p_149844_4_)
Deprecated.
|
boolean |
canCatchFire(IBlockAccess world,
int x,
int y,
int z,
ForgeDirection face)
Side sensitive version that calls the block function.
|
boolean |
canPlaceBlockAt(World p_149742_1_,
int p_149742_2_,
int p_149742_3_,
int p_149742_4_)
Checks to see if its valid to put this block at the specified coordinates.
|
boolean |
func_149698_L() |
void |
func_149842_a(int p_149842_1_,
int p_149842_2_,
int p_149842_3_)
Deprecated.
|
static void |
func_149843_e() |
int |
func_149846_a(World p_149846_1_,
int p_149846_2_,
int p_149846_3_,
int p_149846_4_,
int p_149846_5_)
Deprecated.
|
int |
getChanceToEncourageFire(IBlockAccess world,
int x,
int y,
int z,
int oldChance,
ForgeDirection face)
Side sensitive version that calls the block function.
|
AxisAlignedBB |
getCollisionBoundingBoxFromPool(World p_149668_1_,
int p_149668_2_,
int p_149668_3_,
int p_149668_4_)
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)
|
int |
getEncouragement(Block block) |
IIcon |
getFireIcon(int p_149840_1_) |
int |
getFlammability(Block block) |
IIcon |
getIcon(int p_149691_1_,
int p_149691_2_)
Gets the block's texture.
|
MapColor |
getMapColor(int p_149728_1_) |
int |
getRenderType()
The type of render function that is called for this block
|
boolean |
isCollidable()
Returns if this block is collidable (only used by Fire).
|
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 p_149726_1_,
int p_149726_2_,
int p_149726_3_,
int p_149726_4_)
Called whenever the block is added into the world.
|
void |
onNeighborBlockChange(World p_149695_1_,
int p_149695_2_,
int p_149695_3_,
int p_149695_4_,
Block p_149695_5_)
Lets the block know when one of its neighbor changes.
|
int |
quantityDropped(java.util.Random p_149745_1_)
Returns the quantity of items to drop on block destruction.
|
void |
randomDisplayTick(World p_149734_1_,
int p_149734_2_,
int p_149734_3_,
int p_149734_4_,
java.util.Random p_149734_5_)
A randomly called display update to be able to add particles or other items for display
|
void |
rebuildFireInfo() |
void |
registerBlockIcons(IIconRegister p_149651_1_) |
boolean |
renderAsNormalBlock()
If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
|
void |
setFireInfo(Block block,
int encouragement,
int flammibility) |
int |
tickRate(World p_149738_1_)
How many world ticks before ticking
|
void |
updateTick(World p_149674_1_,
int p_149674_2_,
int p_149674_3_,
int p_149674_4_,
java.util.Random p_149674_5_)
Ticks the block if it's been scheduled
|
addCollisionBoxesToList, addDestroyEffects, addHitEffects, beginLeavesDecay, breakBlock, canBeReplacedByLeaves, canBlockStay, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, 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, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIcon, getIdFromBlock, getItem, getItemDropped, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderBlockPass, getRenderColor, getSelectedBoundingBoxFromPool, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, 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, recolourBlock, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, velocityToAddToEntity
public static void func_149843_e()
@Deprecated public void func_149842_a(int p_149842_1_, int p_149842_2_, int p_149842_3_)
public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
getCollisionBoundingBoxFromPool
in class Block
public boolean isOpaqueCube()
isOpaqueCube
in class Block
public boolean renderAsNormalBlock()
renderAsNormalBlock
in class Block
public int getRenderType()
getRenderType
in class Block
public int quantityDropped(java.util.Random p_149745_1_)
quantityDropped
in class Block
public int tickRate(World p_149738_1_)
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, java.util.Random p_149674_5_)
updateTick
in class Block
public boolean func_149698_L()
func_149698_L
in class Block
public boolean isCollidable()
isCollidable
in class Block
@Deprecated public boolean canBlockCatchFire(IBlockAccess p_149844_1_, int p_149844_2_, int p_149844_3_, int p_149844_4_)
@Deprecated public int func_149846_a(World p_149846_1_, int p_149846_2_, int p_149846_3_, int p_149846_4_, int p_149846_5_)
public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_)
canPlaceBlockAt
in class Block
public void onNeighborBlockChange(World p_149695_1_, int p_149695_2_, int p_149695_3_, int p_149695_4_, Block p_149695_5_)
onNeighborBlockChange
in class Block
public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)
onBlockAdded
in class Block
public void randomDisplayTick(World p_149734_1_, int p_149734_2_, int p_149734_3_, int p_149734_4_, java.util.Random p_149734_5_)
randomDisplayTick
in class Block
public void registerBlockIcons(IIconRegister p_149651_1_)
registerBlockIcons
in class Block
public IIcon getFireIcon(int p_149840_1_)
public IIcon getIcon(int p_149691_1_, int p_149691_2_)
public MapColor getMapColor(int p_149728_1_)
getMapColor
in class Block
public void setFireInfo(Block block, int encouragement, int flammibility)
public void rebuildFireInfo()
public int getFlammability(Block block)
public int getEncouragement(Block block)
public boolean canCatchFire(IBlockAccess world, int x, int y, int z, ForgeDirection face)
world
- The current worldx
- X Positiony
- Y Positionz
- Z Positionface
- The side the fire is coming frompublic int getChanceToEncourageFire(IBlockAccess world, int x, int y, int z, int oldChance, ForgeDirection face)
world
- The current worldx
- X Positiony
- Y Positionz
- Z PositionoldChance
- The previous maximum chance.face
- The side the fire is coming from