Package net.minecraft.block
Class FireBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FireBlock
- Mappings:
Namespace Name official aqqintermediary net/minecraft/class_137named net/minecraft/block/FireBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
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 positionintgetData(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, BlockView view, BlockPos pos) Returns the appropriate RenderLayer for a block.intgetTickRate(World world) Returns the block's tick rate.booleanReturns whether a block has collision, i.e.booleanisFire()booleanisFullBoundsCubeForCulling(BlockState blockState) protected booleanisRainingAround(World world, BlockPos pos) booleanmethod_11562(BlockState state) method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) method_8640(BlockState blockState, BlockView blockView, BlockPos blockPos) voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) 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) voidvoidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).static voidvoidregisterFlammableBlock(Block block, int flamability, int disappearPercentage) voidscheduledTick(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
addStacksForDisplay, appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBonusDrops, getByBlockState, getById, getCollisionBox, getComparatorOutput, getDefaultState, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMeta, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTranslatedName, getTranslationKey, hasBlockEntity, hasStats, isEqualTo, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13702, method_13703, method_13704, method_14306, method_14308, method_14309, method_414, method_435, method_8638, method_8640, method_8651, method_8653, method_8654, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, use, useNeighbourLight, withMirror, withRotation
-
Field Details
-
AGE
- Mappings:
Namespace Name Mixin selector official aLaqq;a:Laxi;intermediary field_9417Lnet/minecraft/class_137;field_9417:Lnet/minecraft/class_2246;named AGELnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;
-
NORTH
- Mappings:
Namespace Name Mixin selector official bLaqq;b:Laxf;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 cLaqq;c:Laxf;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 dLaqq;d:Laxf;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 eLaqq;e:Laxf;intermediary field_9413Lnet/minecraft/class_137;field_9413:Lnet/minecraft/class_2243;named WESTLnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
-
field_12678
- Mappings:
Namespace Name Mixin selector official fLaqq;f:Laxf;intermediary field_12678Lnet/minecraft/class_137;field_12678:Lnet/minecraft/class_2243;named field_12678Lnet/minecraft/block/FireBlock;field_12678:Lnet/minecraft/state/property/BooleanProperty;
-
BLOCKS_BY_FLAMMABILITY
- Mappings:
Namespace Name Mixin selector official gLaqq;g: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 BLaqq;B: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 dLaow;d(Lawt;Lamy;Let;)Lawt;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 eLaqq;e()Vintermediary method_6485Lnet/minecraft/class_137;method_6485()Vnamed registerDefaultFlammablesLnet/minecraft/block/FireBlock;registerDefaultFlammables()V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector official aLaqq;a(Laow;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
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamy;Let;)Lbhb;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLaow;c(Lawt;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)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 aLaow;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 aLaow;a(Lamu;)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 bLaow;b(Lamu;Let;Lawt;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 bLaqq;b(Lamu;Let;)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 eLaqq;e(Laow;)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 fLaqq;f(Laow;)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 aLaqq;a(Lamu;Let;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 cLaqq;c(Lamu;Let;)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 dLaqq;d(Lamu;Let;)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 mLaow;m()Zintermediary method_469Lnet/minecraft/class_197;method_469()Znamed hasCollisionLnet/minecraft/block/Block;hasCollision()Z
-
method_8777
- Mappings:
Namespace Name Mixin selector official cLaqq;c(Lamy;Let;)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 aLaow;a(Lamu;Let;)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
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Laow;Let;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)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 cLaow;c(Lamu;Let;Lawt;)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
-
method_8669
@Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random) - Overrides:
method_8669in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
getMaterialColor
- Overrides:
getMaterialColorin classBlock- Mappings:
Namespace Name Mixin selector official cLaow;c(Lawt;Lamy;Let;)Lbda;intermediary method_8680Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_65;named getMaterialColorLnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)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 fLaow;f()Lamm;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 aLaow;a(I)Lawt;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 eLaow;e(Lawt;)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 bLaow;b()Lawu;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
method_14307
public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) - Overrides:
method_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamy;Lawt;Let;Lfa;)Lawr;intermediary method_14307Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;named method_14307Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;
-