Class FireBlock

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

public class FireBlock extends Block
Mappings:
Namespace Name
official all
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 Lall;a:Larr;
      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;
    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official b Lall;b:Laro;
      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 c Lall;c:Laro;
      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 d Lall;d:Laro;
      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 e Lall;e:Laro;
      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;
    • field_12678

      public static final BooleanProperty field_12678
      Mappings:
      Namespace Name Mixin selector
      official f Lall;f:Laro;
      intermediary field_12678 Lnet/minecraft/class_137;field_12678:Lnet/minecraft/class_2243;
      named field_12678 Lnet/minecraft/block/FireBlock;field_12678:Lnet/minecraft/state/property/BooleanProperty;
    • BLOCKS_BY_FLAMMABILITY

      private final Map<Block,Integer> BLOCKS_BY_FLAMMABILITY
      Mappings:
      Namespace Name Mixin selector
      official g Lall;g: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<Block,Integer> BLOCKS_BY_MODIFIER
      Mappings:
      Namespace Name Mixin selector
      official B Lall;B: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 b Lajt;b(Lard;Lahx;Lcl;)Lard;
      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 e Lall;e()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 Lall;a(Lajt;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

      @Nullable public Box getCollisionBox(BlockState state, World world, BlockPos pos)
      Overrides:
      getCollisionBox in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;)Lbbf;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • isFullBoundsCubeForCulling

      public boolean isFullBoundsCubeForCulling(BlockState blockState)
      Overrides:
      isFullBoundsCubeForCulling in class Block
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lard;)Z
      intermediary method_11560 Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Z
      named isFullBoundsCubeForCulling Lnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
    • method_11562

      public boolean method_11562(BlockState state)
      Overrides:
      method_11562 in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c(Lard;)Z
      intermediary method_11562 Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Z
      named method_11562 Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)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 Lajt;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 Lajt;a(Laht;)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 Lajt;b(Laht;Lcl;Lard;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 b Lall;b(Laht;Lcl;)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 s Lajt;s()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 Lall;c(Lajt;)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 Lall;d(Lajt;)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 Lall;a(Laht;Lcl;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 c Lall;c(Laht;Lcl;)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 d Lall;d(Laht;Lcl;)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 n Lajt;n()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 c Lall;c(Lahx;Lcl;)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 a Lajt;a(Laht;Lcl;)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
    • method_8641

      public void method_8641(BlockState blockState, World world, BlockPos blockPos, Block block)
      Overrides:
      method_8641 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Lajt;)V
      intermediary method_8641 Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)V
      named method_8641 Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;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 Lajt;c(Laht;Lcl;Lard;)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
    • method_8669

      @Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random)
      Overrides:
      method_8669 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Laht;Lcl;Ljava/util/Random;)V
      intermediary method_8669 Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)V
      named method_8669 Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;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 r Lajt;r(Lard;)Laxf;
      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 f Lajt;f()Lahm;
      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 Lajt;a(I)Lard;
      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 e Lajt;e(Lard;)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 b Lajt;b()Lare;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;