Class FireBlock

java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FireBlock

public class FireBlock extends Block
Mappings:
Namespace Name
official avx
intermediary net/minecraft/class_137
named net/minecraft/block/FireBlock
  • Field Details

    • AGE

      public static final IntProperty AGE
      Mappings:
      Namespace Name Mixin selector
      official a Lavx;a:Lbew;
      intermediary field_9417 Lnet/minecraft/class_137;field_9417:Lnet/minecraft/class_2246;
      named AGE Lnet/minecraft/block/FireBlock;AGE:Lnet/minecraft/state/property/IntProperty;
    • FLIP

      public static final BooleanProperty FLIP
      Mappings:
      Namespace Name Mixin selector
      official b Lavx;b:Lbet;
      intermediary field_9418 Lnet/minecraft/class_137;field_9418:Lnet/minecraft/class_2243;
      named FLIP Lnet/minecraft/block/FireBlock;FLIP:Lnet/minecraft/state/property/BooleanProperty;
    • ALT

      public static final BooleanProperty ALT
      Mappings:
      Namespace Name Mixin selector
      official M Lavx;M:Lbet;
      intermediary field_9409 Lnet/minecraft/class_137;field_9409:Lnet/minecraft/class_2243;
      named ALT Lnet/minecraft/block/FireBlock;ALT:Lnet/minecraft/state/property/BooleanProperty;
    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official N Lavx;N:Lbet;
      intermediary field_9410 Lnet/minecraft/class_137;field_9410:Lnet/minecraft/class_2243;
      named NORTH Lnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
    • EAST

      public static final BooleanProperty EAST
      Mappings:
      Namespace Name Mixin selector
      official O Lavx;O:Lbet;
      intermediary field_9411 Lnet/minecraft/class_137;field_9411:Lnet/minecraft/class_2243;
      named EAST Lnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
    • SOUTH

      public static final BooleanProperty SOUTH
      Mappings:
      Namespace Name Mixin selector
      official P Lavx;P:Lbet;
      intermediary field_9412 Lnet/minecraft/class_137;field_9412:Lnet/minecraft/class_2243;
      named SOUTH Lnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
    • WEST

      public static final BooleanProperty WEST
      Mappings:
      Namespace Name Mixin selector
      official Q Lavx;Q:Lbet;
      intermediary field_9413 Lnet/minecraft/class_137;field_9413:Lnet/minecraft/class_2243;
      named WEST Lnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
    • UPPER

      public static final IntProperty UPPER
      Mappings:
      Namespace Name Mixin selector
      official R Lavx;R:Lbew;
      intermediary field_9414 Lnet/minecraft/class_137;field_9414:Lnet/minecraft/class_2246;
      named UPPER Lnet/minecraft/block/FireBlock;UPPER:Lnet/minecraft/state/property/IntProperty;
    • BLOCKS_BY_FLAMMABILITY

      private final Map BLOCKS_BY_FLAMMABILITY
      Mappings:
      Namespace Name Mixin selector
      official S Lavx;S:Ljava/util/Map;
      intermediary field_9415 Lnet/minecraft/class_137;field_9415:Ljava/util/Map;
      named BLOCKS_BY_FLAMMABILITY Lnet/minecraft/block/FireBlock;BLOCKS_BY_FLAMMABILITY:Ljava/util/Map;
    • BLOCKS_BY_MODIFIER

      private final Map BLOCKS_BY_MODIFIER
      Mappings:
      Namespace Name Mixin selector
      official T Lavx;T:Ljava/util/Map;
      intermediary field_9416 Lnet/minecraft/class_137;field_9416:Ljava/util/Map;
      named BLOCKS_BY_MODIFIER Lnet/minecraft/block/FireBlock;BLOCKS_BY_MODIFIER:Ljava/util/Map;
  • Constructor Details

    • FireBlock

      protected FireBlock()
  • Method Details

    • getBlockState

      public BlockState getBlockState(BlockState state, BlockView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - BlockView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lbec;Lard;Ldt;)Lbec;
      intermediary method_8656 Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;
      named getBlockState Lnet/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 j Lavx;j()V
      intermediary method_6485 Lnet/minecraft/class_137;method_6485()V
      named registerDefaultFlammables Lnet/minecraft/block/FireBlock;registerDefaultFlammables()V
    • registerFlammableBlock

      public void registerFlammableBlock(Block block, int flamability, int disappearPercentage)
      Mappings:
      Namespace Name Mixin selector
      official a Lavx;a(Latr;II)V
      intermediary method_8773 Lnet/minecraft/class_137;method_8773(Lnet/minecraft/class_197;II)V
      named registerFlammableBlock Lnet/minecraft/block/FireBlock;registerFlammableBlock(Lnet/minecraft/block/Block;II)V
    • getCollisionBox

      public Box getCollisionBox(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 Box
      Overrides:
      getCollisionBox in class Block
      Parameters:
      world - The world that the block has been placed
      pos - The block's position
      state - The block's BlockState
      Returns:
      The Collision box
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;)Lbrt;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/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:
      hasTransperancy in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c()Z
      intermediary method_449 Lnet/minecraft/class_197;method_449()Z
      named hasTransperancy Lnet/minecraft/block/Block;hasTransperancy()Z
    • renderAsNormalBlock

      public boolean renderAsNormalBlock()
      Returns whether the block can be rendered as a normal block
      Overrides:
      renderAsNormalBlock in class Block
      Returns:
      Whether the block can be rendered as a normal block
      Mappings:
      Namespace Name Mixin selector
      official d Latr;d()Z
      intermediary method_441 Lnet/minecraft/class_197;method_441()Z
      named renderAsNormalBlock Lnet/minecraft/block/Block;renderAsNormalBlock()Z
    • getDropCount

      public int getDropCount(Random rand)
      Returns the amount of items the block should drop on breaking without bonus rolls.
      Overrides:
      getDropCount in class Block
      Parameters:
      rand - Random object
      Returns:
      Amount of items to be dropped
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Ljava/util/Random;)I
      intermediary method_403 Lnet/minecraft/class_197;method_403(Ljava/util/Random;)I
      named getDropCount Lnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
    • getTickRate

      public int getTickRate(World world)
      Returns the block's tick rate. Default is 10.
      Overrides:
      getTickRate in class Block
      Parameters:
      world - The world that the block is placed in
      Returns:
      Tick rate
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;)I
      intermediary method_4789 Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)I
      named getTickRate Lnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
    • scheduledTick

      public void scheduledTick(World world, BlockPos pos, BlockState state, Random rand)
      Runs when the block is updated as per a schedule
      Overrides:
      scheduledTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official b Latr;b(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8661 Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • isRainingAround

      protected boolean isRainingAround(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official d Lavx;d(Laqu;Ldt;)Z
      intermediary method_8776 Lnet/minecraft/class_137;method_8776(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named isRainingAround Lnet/minecraft/block/FireBlock;isRainingAround(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • isFire

      public boolean isFire()
      Overrides:
      isFire in class Block
      Mappings:
      Namespace Name Mixin selector
      official M Latr;M()Z
      intermediary method_4187 Lnet/minecraft/class_197;method_4187()Z
      named isFire Lnet/minecraft/block/Block;isFire()Z
    • method_8774

      private int method_8774(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lavx;c(Latr;)I
      intermediary method_8774 Lnet/minecraft/class_137;method_8774(Lnet/minecraft/class_197;)I
      named method_8774 Lnet/minecraft/block/FireBlock;method_8774(Lnet/minecraft/block/Block;)I
    • method_8775

      private int method_8775(Block block)
      Mappings:
      Namespace Name Mixin selector
      official d Lavx;d(Latr;)I
      intermediary method_8775 Lnet/minecraft/class_137;method_8775(Lnet/minecraft/class_197;)I
      named method_8775 Lnet/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 a Lavx;a(Laqu;Ldt;ILjava/util/Random;I)V
      intermediary method_8772 Lnet/minecraft/class_137;method_8772(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;ILjava/util/Random;I)V
      named trySpreadingFire Lnet/minecraft/block/FireBlock;trySpreadingFire(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ILjava/util/Random;I)V
    • method_8778

      private boolean method_8778(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lavx;e(Laqu;Ldt;)Z
      intermediary method_8778 Lnet/minecraft/class_137;method_8778(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named method_8778 Lnet/minecraft/block/FireBlock;method_8778(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • method_8779

      private int method_8779(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official m Lavx;m(Laqu;Ldt;)I
      intermediary method_8779 Lnet/minecraft/class_137;method_8779(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)I
      named method_8779 Lnet/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:
      hasCollision in class Block
      Returns:
      Whether a block has collision
      Mappings:
      Namespace Name Mixin selector
      official y Latr;y()Z
      intermediary method_469 Lnet/minecraft/class_197;method_469()Z
      named hasCollision Lnet/minecraft/block/Block;hasCollision()Z
    • method_8777

      public boolean method_8777(BlockView blockView, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lavx;e(Lard;Ldt;)Z
      intermediary method_8777 Lnet/minecraft/class_137;method_8777(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named method_8777 Lnet/minecraft/block/FireBlock;method_8777(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • canBePlacedAtPos

      public boolean canBePlacedAtPos(World world, BlockPos pos)
      Returns whether the current block can be placed at a certain BlockPos
      Overrides:
      canBePlacedAtPos in class Block
      Returns:
      Whether the current block can be placed at a BlockPos
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;)Z
      intermediary method_8673 Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • neighborUpdate

      public void neighborUpdate(World world, BlockPos pos, BlockState state, Block block)
      Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.
      Overrides:
      neighborUpdate in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      block - The adjacent Block that updated the current block
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Laqu;Ldt;Lbec;Latr;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)V
      named neighborUpdate Lnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
    • onCreation

      public void onCreation(World world, BlockPos pos, BlockState state)
      Runs when the block is placed (by a player or enderman).
      Overrides:
      onCreation in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;Lbec;)V
      intermediary method_8668 Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named onCreation Lnet/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:
      randomDisplayTick in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      rand - Random object
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Laqu;Ldt;Lbec;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)V
      named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
    • getMaterialColor

      public MaterialColor getMaterialColor(BlockState state)
      Returns the block's material color from it's state Blockstates can have different material colors
      Overrides:
      getMaterialColor in class Block
      Parameters:
      state - The Blockstate for which the material color is returned
      Returns:
      materialColor
      Mappings:
      Namespace Name Mixin selector
      official g Latr;g(Lbec;)Lboh;
      intermediary method_8680 Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;)Lnet/minecraft/class_65;
      named getMaterialColor Lnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/MaterialColor;
    • getRenderLayerType

      @Environment(CLIENT) public BlockRenderLayer getRenderLayerType()
      Returns the appropriate RenderLayer for a block. Only called on the client.
      Overrides:
      getRenderLayerType in class Block
      Returns:
      The block's RenderLayer
      Mappings:
      Namespace Name Mixin selector
      official k Latr;k()Laql;
      intermediary method_8687 Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(I)Lbec;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Lbec;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official e Latr;e()Lbed;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;