Package net.minecraft.block
Class FireBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FireBlock
- Mappings:
Namespace Name official agvintermediary net/minecraft/class_137named net/minecraft/block/FireBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType, Block.Sound -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final IntPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
ANVIL, blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, hardness, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, transluscent, useNeighbourLight, WOOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosgetBlockState(BlockState state, BlockView view, BlockPos pos) Returns the current block's blockstate at a certain positiongetCollisionBox(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.getMaterialColor(BlockState state) Returns the block's material color from it's state Blockstates can have different material colorsReturns the appropriate RenderLayer for a block.intgetTickRate(World world) Returns the block's tick rate.booleanReturns whether a block has collision, i.e.booleanbooleanisFire()protected booleanisRainingAround(World world, BlockPos pos) private intmethod_8774(Block block) private intmethod_8775(Block block) booleanmethod_8777(BlockView blockView, BlockPos blockPos) private booleanmethod_8778(World world, BlockPos blockPos) private intmethod_8779(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 voidvoidregisterFlammableBlock(Block block, int flamability, int disappearPercentage) booleanReturns 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 schedulestateFromData(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_414, method_8666, 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_9417Lnet/minecraft/class_137;field_9417:Lnet/minecraft/class_2246;named AGELnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;
-
FLIP
- Mappings:
Namespace Name Mixin selector official bLagv;b:Lamk;intermediary field_9418Lnet/minecraft/class_137;field_9418:Lnet/minecraft/class_2243;named FLIPLnet/minecraft/block/FireBlock;FLIP:Lnet/minecraft/state/property/BooleanProperty;
-
ALT
- Mappings:
Namespace Name Mixin selector official NLagv;N:Lamk;intermediary field_9409Lnet/minecraft/class_137;field_9409:Lnet/minecraft/class_2243;named ALTLnet/minecraft/block/FireBlock;ALT:Lnet/minecraft/state/property/BooleanProperty;
-
NORTH
- Mappings:
Namespace Name Mixin selector official OLagv;O:Lamk;intermediary field_9410Lnet/minecraft/class_137;field_9410:Lnet/minecraft/class_2243;named NORTHLnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
-
EAST
- Mappings:
Namespace Name Mixin selector official PLagv;P:Lamk;intermediary field_9411Lnet/minecraft/class_137;field_9411:Lnet/minecraft/class_2243;named EASTLnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
-
SOUTH
- Mappings:
Namespace Name Mixin selector official QLagv;Q:Lamk;intermediary field_9412Lnet/minecraft/class_137;field_9412:Lnet/minecraft/class_2243;named SOUTHLnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
-
WEST
- Mappings:
Namespace Name Mixin selector official RLagv;R:Lamk;intermediary field_9413Lnet/minecraft/class_137;field_9413:Lnet/minecraft/class_2243;named WESTLnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
UPPER
- Mappings:
Namespace Name Mixin selector official SLagv;S:Lamn;intermediary field_9414Lnet/minecraft/class_137;field_9414:Lnet/minecraft/class_2246;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_9415Lnet/minecraft/class_137;field_9415: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_9416Lnet/minecraft/class_137;field_9416: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- BlockView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official aLafh;a(Lalz;Ladq;Lcj;)Lalz;intermediary method_8656Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
registerDefaultFlammables
public static void registerDefaultFlammables()- Mappings:
Namespace Name Mixin selector official lLagv;l()Vintermediary method_6485Lnet/minecraft/class_137;method_6485()Vnamed registerDefaultFlammablesLnet/minecraft/block/FireBlock;registerDefaultFlammables()V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector official aLagv;a(Lafh;II)Vintermediary method_8773Lnet/minecraft/class_137;method_8773(Lnet/minecraft/class_197;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_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;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_449Lnet/minecraft/class_197;method_449()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_441Lnet/minecraft/class_197;method_441()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_403Lnet/minecraft/class_197;method_403(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_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)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_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;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_8776Lnet/minecraft/class_137;method_8776(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed isRainingAroundLnet/minecraft/block/FireBlock;isRainingAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
isFire
public boolean isFire() -
method_8774
- Mappings:
Namespace Name Mixin selector official cLagv;c(Lafh;)Iintermediary method_8774Lnet/minecraft/class_137;method_8774(Lnet/minecraft/class_197;)Inamed method_8774Lnet/minecraft/block/FireBlock;method_8774(Lnet/minecraft/block/Block;)I
-
method_8775
- Mappings:
Namespace Name Mixin selector official dLagv;d(Lafh;)Iintermediary method_8775Lnet/minecraft/class_137;method_8775(Lnet/minecraft/class_197;)Inamed method_8775Lnet/minecraft/block/FireBlock;method_8775(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_8772Lnet/minecraft/class_137;method_8772(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;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_8778
- Mappings:
Namespace Name Mixin selector official fLagv;f(Ladm;Lcj;)Zintermediary method_8778Lnet/minecraft/class_137;method_8778(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8778Lnet/minecraft/block/FireBlock;method_8778(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8779
- Mappings:
Namespace Name Mixin selector official mLagv;m(Ladm;Lcj;)Iintermediary method_8779Lnet/minecraft/class_137;method_8779(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Inamed method_8779Lnet/minecraft/block/FireBlock;method_8779(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_469Lnet/minecraft/class_197;method_469()Znamed hasCollisionLnet/minecraft/block/Block;hasCollision()Z
-
method_8777
- Mappings:
Namespace Name Mixin selector official eLagv;e(Ladq;Lcj;)Zintermediary method_8777Lnet/minecraft/class_137;method_8777(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed method_8777Lnet/minecraft/block/FireBlock;method_8777(Lnet/minecraft/world/BlockView;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_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)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_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)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_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)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_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;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_8680Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;)Lnet/minecraft/class_65;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_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
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_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;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_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)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_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-