Package net.minecraft.block
Class BlockFire
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockFire
-
- All Implemented Interfaces:
org.teavm.jso.JSObject
public class BlockFire extends Block
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.EnumOffsetType, Block.SoundType
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyIntegerAGEstatic PropertyBoolALTstatic PropertyBoolEASTstatic PropertyBoolFLIPstatic PropertyBoolNORTHstatic PropertyBoolSOUTHstatic PropertyIntegerUPPERstatic PropertyBoolWEST-
Fields inherited from class net.minecraft.block.Block
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, forceRender, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, noRender, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockFire()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCatchFire(IBlockAccess worldIn, BlockPos pos)+ Checks if the block can be caught on fireprotected booleancanDie(World worldIn, BlockPos pos)booleancanPlaceBlockAt(World world, BlockPos blockpos)protected BlockStatecreateBlockState()IBlockStategetActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)+ Get the actual Block state of this Block at the given position.EnumWorldBlockLayergetBlockLayer()AxisAlignedBBgetCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)MapColorgetMapColor(IBlockState var1)+ Get the MapColor for this Block and the given BlockStateintgetMetaFromState(IBlockState iblockstate)+ Convert the BlockState into the correct metadata valueIBlockStategetStateFromMeta(int i)+ Convert the given metadata into a BlockState for this Blockstatic voidinit()booleanisCollidable()+ Returns if this block is collidable (only used by Fire).booleanisFullCube()booleanisOpaqueCube()+ Used to determine ambient occlusion and culling when rebuilding chunks for rendervoidonBlockAdded(World world, BlockPos blockpos, IBlockState var3)voidonNeighborBlockChange(World world, BlockPos blockpos, IBlockState var3, Block var4)+ Called when a neighboring block changes.intquantityDropped(EaglercraftRandom var1)+ Returns the quantity of items to drop on block destruction.voidrandomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random)booleanrequiresUpdates()voidsetFireInfo(Block blockIn, int encouragement, int flammability)inttickRate(World var1)+ How many world ticks before tickingvoidupdateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)-
Methods inherited from class net.minecraft.block.Block
addCollisionBoxesToList, bootstrapStates, breakBlock, canCollideCheck, canDropFromExplosion, canPlaceBlockOnSide, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, loadPluginData, makePluginData, modifyAcceleration, onBlockActivated, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockHarvested, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDroppedWithBonus, randomTick, registerBlocks, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, shouldSideBeRendered, spawnAsEntity, toString
-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Field Detail
-
AGE
public static final PropertyInteger AGE
-
FLIP
public static final PropertyBool FLIP
-
ALT
public static final PropertyBool ALT
-
NORTH
public static final PropertyBool NORTH
-
EAST
public static final PropertyBool EAST
-
SOUTH
public static final PropertyBool SOUTH
-
WEST
public static final PropertyBool WEST
-
UPPER
public static final PropertyInteger UPPER
-
-
Method Detail
-
getActualState
public IBlockState getActualState(IBlockState iblockstate, IBlockAccess iblockaccess, BlockPos blockpos)
+ Get the actual Block state of this Block at the given position. This applies properties not visible in the metadata, such as fence connections.- Overrides:
getActualStatein classBlock
-
init
public static void init()
-
setFireInfo
public void setFireInfo(Block blockIn, int encouragement, int flammability)
-
getCollisionBoundingBox
public AxisAlignedBB getCollisionBoundingBox(World var1, BlockPos var2, IBlockState var3)
- Overrides:
getCollisionBoundingBoxin classBlock
-
isOpaqueCube
public boolean isOpaqueCube()
+ Used to determine ambient occlusion and culling when rebuilding chunks for render- Overrides:
isOpaqueCubein classBlock
-
isFullCube
public boolean isFullCube()
- Overrides:
isFullCubein classBlock
-
quantityDropped
public int quantityDropped(EaglercraftRandom var1)
+ Returns the quantity of items to drop on block destruction.- Overrides:
quantityDroppedin classBlock
-
tickRate
public int tickRate(World var1)
+ How many world ticks before ticking
-
updateTick
public void updateTick(World world, BlockPos blockpos, IBlockState iblockstate, EaglercraftRandom random)
- Overrides:
updateTickin classBlock
-
requiresUpdates
public boolean requiresUpdates()
- Overrides:
requiresUpdatesin classBlock
-
isCollidable
public boolean isCollidable()
+ Returns if this block is collidable (only used by Fire). Args: x, y, z- Overrides:
isCollidablein classBlock
-
canCatchFire
public boolean canCatchFire(IBlockAccess worldIn, BlockPos pos)
+ Checks if the block can be caught on fire
-
canPlaceBlockAt
public boolean canPlaceBlockAt(World world, BlockPos blockpos)
- Overrides:
canPlaceBlockAtin classBlock
-
onNeighborBlockChange
public void onNeighborBlockChange(World world, BlockPos blockpos, IBlockState var3, Block var4)
+ Called when a neighboring block changes.- Overrides:
onNeighborBlockChangein classBlock
-
onBlockAdded
public void onBlockAdded(World world, BlockPos blockpos, IBlockState var3)
- Overrides:
onBlockAddedin classBlock
-
randomDisplayTick
public void randomDisplayTick(World world, BlockPos blockpos, IBlockState var3, EaglercraftRandom random)
- Overrides:
randomDisplayTickin classBlock
-
getMapColor
public MapColor getMapColor(IBlockState var1)
+ Get the MapColor for this Block and the given BlockState- Overrides:
getMapColorin classBlock
-
getBlockLayer
public EnumWorldBlockLayer getBlockLayer()
- Overrides:
getBlockLayerin classBlock
-
getStateFromMeta
public IBlockState getStateFromMeta(int i)
+ Convert the given metadata into a BlockState for this Block- Overrides:
getStateFromMetain classBlock
-
getMetaFromState
public int getMetaFromState(IBlockState iblockstate)
+ Convert the BlockState into the correct metadata value- Overrides:
getMetaFromStatein classBlock
-
createBlockState
protected BlockState createBlockState()
- Overrides:
createBlockStatein classBlock
-
-