Package net.minecraft.block
Class FireBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FireBlock
- Mappings:
Namespace Name official avxintermediary net/minecraft/class_137named net/minecraft/block/FireBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntPropertystatic final BooleanPropertyprivate final Mapprivate final Mapstatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final BooleanPropertystatic final IntPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_483, field_484, field_486, field_487, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, field_9285, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, soundGroup, 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 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, 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, 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_8634, method_8666, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDropAsItem, requiresSilkTouch, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
AGE
- Mappings:
Namespace Name Mixin selector official aLavx;a:Lbew;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 bLavx;b:Lbet;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 MLavx;M:Lbet;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 NLavx;N:Lbet;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 OLavx;O:Lbet;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 PLavx;P:Lbet;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 QLavx;Q:Lbet;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 RLavx;R:Lbew;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 SLavx;S: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 TLavx;T: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 aLatr;a(Lbec;Lard;Ldt;)Lbec;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 jLavx;j()Vintermediary method_6485Lnet/minecraft/class_137;method_6485()Vnamed registerDefaultFlammablesLnet/minecraft/block/FireBlock;registerDefaultFlammables()V
-
registerFlammableBlock
- Mappings:
Namespace Name Mixin selector official aLavx;a(Latr;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 aLatr;a(Laqu;Ldt;Lbec;)Lbrt;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 cLatr;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 dLatr;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 aLatr;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 aLatr;a(Laqu;)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 bLatr;b(Laqu;Ldt;Lbec;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 dLavx;d(Laqu;Ldt;)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 cLavx;c(Latr;)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 dLavx;d(Latr;)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 aLavx;a(Laqu;Ldt;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 eLavx;e(Laqu;Ldt;)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 mLavx;m(Laqu;Ldt;)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 yLatr;y()Zintermediary method_469Lnet/minecraft/class_197;method_469()Znamed hasCollisionLnet/minecraft/block/Block;hasCollision()Z
-
method_8777
- Mappings:
Namespace Name Mixin selector official eLavx;e(Lard;Ldt;)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 cLatr;c(Laqu;Ldt;)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 aLatr;a(Laqu;Ldt;Lbec;Latr;)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 cLatr;c(Laqu;Ldt;Lbec;)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 cLatr;c(Laqu;Ldt;Lbec;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 gLatr;g(Lbec;)Lboh;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 kLatr;k()Laql;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 aLatr;a(I)Lbec;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 cLatr;c(Lbec;)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 eLatr;e()Lbed;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-