Package net.minecraft.block
Class FireBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FireBlock
public class FireBlock extends Block
- Mappings:
Namespace Name official agvintermediary net/minecraft/class_210named net/minecraft/block/FireBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
Fields Modifier and Type Field Description static IntPropertyAGEstatic BooleanPropertyALTprivate Map<Block,Integer>BLOCKS_BY_FLAMMABILITYprivate Map<Block,Integer>BLOCKS_BY_MODIFIERstatic BooleanPropertyEASTstatic BooleanPropertyFLIPstatic BooleanPropertyNORTHstatic BooleanPropertySOUTHstatic IntPropertyUPPERstatic BooleanPropertyWESTFields inherited from class net.minecraft.block.Block
ANVIL, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, resistance, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, strength, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors Modifier Constructor Description protectedFireBlock() -
Method Summary
Modifier and Type Method Description protected StateManagerappendProperties()Returns a new state manager with a property array.booleancanBePlacedAtPos(World world, BlockPos pos)Returns whether the current block can be placed at a certainBlockPosBlockStategetBlockState(BlockState state, WorldView view, BlockPos pos)Returns the current block's blockstate at a certain positionBoxgetCollisionBox(World world, BlockPos pos, BlockState state)Returns a box by adding the block's current location and the block's corresponding value in its Bounding BoxintgetData(BlockState state)Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workintgetDropCount(Random rand)Returns the amount of items the block should drop on breaking without bonus rolls.MaterialColorgetMaterialColor(BlockState state)Returns the block's material color from it's state Blockstates can have different material colorsRenderLayergetRenderLayerType()Returns the appropriate RenderLayer for a block.intgetTickRate(World world)Returns the block's tick rate.booleanhasCollision()Returns whether a block has collision, i.e.booleanhasTransperancy()booleanisFire()protected booleanisRainingAround(World world, BlockPos pos)private intmethod_851(Block block)private intmethod_852(Block block)booleanmethod_854(WorldView worldView, BlockPos blockPos)private booleanmethod_855(World world, BlockPos blockPos)private intmethod_857(World world, BlockPos blockPos)voidneighborUpdate(World world, BlockPos pos, BlockState state, Block block)Runs when its adjacent blocks are updated.voidonCreation(World world, BlockPos pos, BlockState state)Runs when the block is placed (by a player or enderman).voidrandomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)Runs every random display Tick.static voidregisterDefaultFlammables()voidregisterFlammableBlock(Block block, int flamability, int disappearPercentage)booleanrenderAsNormalBlock()Returns whether the block can be rendered as a normal blockvoidscheduledTick(World world, BlockPos pos, BlockState state, Random rand)Runs when the block is updated as per a scheduleBlockStatestateFromData(int data)Returns a blockstate of the current block from it's idprivate voidtrySpreadingFire(World world, BlockPos pos, int spreadFactor, Random rand, int currentAge)Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getColor, getColor, getComparatorOutput, getDefaultState, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getPistonInteractionType, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_655, method_696, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDropAsItem, requiresSilkTouch, setBlockItemBounds, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
AGE
- Mappings:
Namespace Name Mixin selector official aLagv;a:Lamn;intermediary field_919Lnet/minecraft/class_210;field_919:Lnet/minecraft/class_391;named AGELnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;
-
FLIP
- Mappings:
Namespace Name Mixin selector official bLagv;b:Lamk;intermediary field_920Lnet/minecraft/class_210;field_920:Lnet/minecraft/class_388;named FLIPLnet/minecraft/block/FireBlock;FLIP:Lnet/minecraft/state/property/BooleanProperty;
-
ALT
- Mappings:
Namespace Name Mixin selector official NLagv;N:Lamk;intermediary field_911Lnet/minecraft/class_210;field_911:Lnet/minecraft/class_388;named ALTLnet/minecraft/block/FireBlock;ALT:Lnet/minecraft/state/property/BooleanProperty;
-
NORTH
- Mappings:
Namespace Name Mixin selector official OLagv;O:Lamk;intermediary field_912Lnet/minecraft/class_210;field_912:Lnet/minecraft/class_388;named NORTHLnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
-
EAST
- Mappings:
Namespace Name Mixin selector official PLagv;P:Lamk;intermediary field_913Lnet/minecraft/class_210;field_913:Lnet/minecraft/class_388;named EASTLnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official QLagv;Q:Lamk;intermediary field_914Lnet/minecraft/class_210;field_914:Lnet/minecraft/class_388;named SOUTHLnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
-
WEST
- Mappings:
Namespace Name Mixin selector official RLagv;R:Lamk;intermediary field_915Lnet/minecraft/class_210;field_915:Lnet/minecraft/class_388;named WESTLnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
UPPER
- Mappings:
Namespace Name Mixin selector official SLagv;S:Lamn;intermediary field_916Lnet/minecraft/class_210;field_916:Lnet/minecraft/class_391;named UPPERLnet/minecraft/block/FireBlock;UPPER:Lnet/minecraft/state/property/IntProperty;
-
BLOCKS_BY_FLAMMABILITY
- Mappings:
Namespace Name Mixin selector official TLagv;T:Ljava/util/Map;intermediary field_917Lnet/minecraft/class_210;field_917:Ljava/util/Map;named BLOCKS_BY_FLAMMABILITYLnet/minecraft/block/FireBlock;BLOCKS_BY_FLAMMABILITY:Ljava/util/Map;
-
BLOCKS_BY_MODIFIER
- Mappings:
Namespace Name Mixin selector official ULagv;U:Ljava/util/Map;intermediary field_918Lnet/minecraft/class_210;field_918:Ljava/util/Map;named BLOCKS_BY_MODIFIERLnet/minecraft/block/FireBlock;BLOCKS_BY_MODIFIER:Ljava/util/Map;
-
-
Constructor Details
-
FireBlock
protected FireBlock()
-
-
Method Details
-
getBlockState
Returns the current block's blockstate at a certain position- Overrides:
getBlockStatein classBlock- Parameters:
state- The original blockstateview- WorldView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lalz;Ladq;Lcj;)Lalz;intermediary method_673Lnet/minecraft/class_160;method_673(Lnet/minecraft/class_376;Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Lnet/minecraft/class_376;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
registerDefaultFlammables
public static void registerDefaultFlammables()- Mappings:
Namespace Name Mixin selector official lLagv;l()Vintermediary method_856Lnet/minecraft/class_210;method_856()Vnamed registerDefaultFlammablesLnet/minecraft/block/FireBlock;registerDefaultFlammables()V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector official aLagv;a(Lafh;II)Vintermediary method_850Lnet/minecraft/class_210;method_850(Lnet/minecraft/class_160;II)Vnamed registerFlammableBlockLnet/minecraft/block/FireBlock;registerFlammableBlock(Lnet/minecraft/block/Block;II)V
-
getCollisionBox
Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box- Overrides:
getCollisionBoxin classBlock- Parameters:
world- The world that the block has been placedpos- The block's positionstate- The block's BlockState- Returns:
- The Collision box
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;)Laug;intermediary method_645Lnet/minecraft/class_160;method_645(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_646;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLafh;c()Zintermediary method_699Lnet/minecraft/class_160;method_699()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLafh;d()Zintermediary method_709Lnet/minecraft/class_160;method_709()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Overrides:
getDropCountin classBlock- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ljava/util/Random;)Iintermediary method_677Lnet/minecraft/class_160;method_677(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
getTickRate
Returns the block's tick rate. Default is 10.- Overrides:
getTickRatein classBlock- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;)Iintermediary method_642Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
scheduledTick
Runs when the block is updated as per a schedule- Overrides:
scheduledTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_690Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
isRainingAround
- Mappings:
Namespace Name Mixin selector official eLagv;e(Ladm;Lcj;)Zintermediary method_853Lnet/minecraft/class_210;method_853(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Znamed isRainingAroundLnet/minecraft/block/FireBlock;isRainingAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
isFire
public boolean isFire() -
method_851
- Mappings:
Namespace Name Mixin selector official cLagv;c(Lafh;)Iintermediary method_851Lnet/minecraft/class_210;method_851(Lnet/minecraft/class_160;)Inamed method_851Lnet/minecraft/block/FireBlock;method_851(Lnet/minecraft/block/Block;)I
-
method_852
- Mappings:
Namespace Name Mixin selector official dLagv;d(Lafh;)Iintermediary method_852Lnet/minecraft/class_210;method_852(Lnet/minecraft/class_160;)Inamed method_852Lnet/minecraft/block/FireBlock;method_852(Lnet/minecraft/block/Block;)I
-
trySpreadingFire
private void trySpreadingFire(World world, BlockPos pos, int spreadFactor, Random rand, int currentAge)- Mappings:
Namespace Name Mixin selector official aLagv;a(Ladm;Lcj;ILjava/util/Random;I)Vintermediary method_849Lnet/minecraft/class_210;method_849(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;ILjava/util/Random;I)Vnamed trySpreadingFireLnet/minecraft/block/FireBlock;trySpreadingFire(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILjava/util/Random;I)V
-
method_855
- Mappings:
Namespace Name Mixin selector official fLagv;f(Ladm;Lcj;)Zintermediary method_855Lnet/minecraft/class_210;method_855(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Znamed method_855Lnet/minecraft/block/FireBlock;method_855(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_857
- Mappings:
Namespace Name Mixin selector official mLagv;m(Ladm;Lcj;)Iintermediary method_857Lnet/minecraft/class_210;method_857(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Inamed method_857Lnet/minecraft/block/FireBlock;method_857(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
hasCollision
public boolean hasCollision()Returns whether a block has collision, i.e. stops entities- Overrides:
hasCollisionin classBlock- Returns:
- Whether a block has collision
- Mappings:
Namespace Name Mixin selector official ALafh;A()Zintermediary method_615Lnet/minecraft/class_160;method_615()Znamed hasCollisionLnet/minecraft/block/Block;hasCollision()Z
-
method_854
- Mappings:
Namespace Name Mixin selector official eLagv;e(Ladq;Lcj;)Zintermediary method_854Lnet/minecraft/class_210;method_854(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Znamed method_854Lnet/minecraft/block/FireBlock;method_854(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official dLafh;d(Ladm;Lcj;)Zintermediary method_711Lnet/minecraft/class_160;method_711(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
neighborUpdate
Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.- Overrides:
neighborUpdatein classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateblock- The adjacent Block that updated the current block- Mappings:
Namespace Name Mixin selector official aLafh;a(Ladm;Lcj;Lalz;Lafh;)Vintermediary method_648Lnet/minecraft/class_160;method_648(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_160;)Vnamed neighborUpdateLnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLafh;c(Ladm;Lcj;Lalz;)Vintermediary method_703Lnet/minecraft/class_160;method_703(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
randomDisplayTick
@Environment(CLIENT) public void randomDisplayTick(World world, BlockPos pos, BlockState state, Random rand)Runs every random display Tick. Useful for displaying particles around a block, like Redstone Ore.- Overrides:
randomDisplayTickin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official cLafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)Vintermediary method_704Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Ljava/util/Random;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
getMaterialColor
Returns the block's material color from it's state Blockstates can have different material colors- Overrides:
getMaterialColorin classBlock- Parameters:
state- The Blockstate for which the material color is returned- Returns:
- materialColor
- Mappings:
Namespace Name Mixin selector official gLafh;g(Lalz;)Larn;intermediary method_720Lnet/minecraft/class_160;method_720(Lnet/minecraft/class_376;)Lnet/minecraft/class_592;named getMaterialColorLnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/MaterialColor;
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official mLafh;m()Ladf;intermediary method_731Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLafh;a(I)Lalz;intermediary method_637Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official cLafh;c(Lalz;)Iintermediary method_706Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official eLafh;e()Lama;intermediary method_714Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-