Class FireBlock

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

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

    • AGE

      public static final IntProperty AGE
      Mappings:
      Namespace Name Mixin selector
      official a Lagv;a:Lamn;
      intermediary field_919 Lnet/minecraft/class_210;field_919:Lnet/minecraft/class_391;
      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 Lagv;b:Lamk;
      intermediary field_920 Lnet/minecraft/class_210;field_920:Lnet/minecraft/class_388;
      named FLIP Lnet/minecraft/block/FireBlock;FLIP:Lnet/minecraft/state/property/BooleanProperty;
    • ALT

      public static final BooleanProperty ALT
      Mappings:
      Namespace Name Mixin selector
      official N Lagv;N:Lamk;
      intermediary field_911 Lnet/minecraft/class_210;field_911:Lnet/minecraft/class_388;
      named ALT Lnet/minecraft/block/FireBlock;ALT:Lnet/minecraft/state/property/BooleanProperty;
    • NORTH

      public static final BooleanProperty NORTH
      Mappings:
      Namespace Name Mixin selector
      official O Lagv;O:Lamk;
      intermediary field_912 Lnet/minecraft/class_210;field_912:Lnet/minecraft/class_388;
      named NORTH Lnet/minecraft/block/FireBlock;NORTH:Lnet/minecraft/state/property/BooleanProperty;
    • EAST

      public static final BooleanProperty EAST
      Mappings:
      Namespace Name Mixin selector
      official P Lagv;P:Lamk;
      intermediary field_913 Lnet/minecraft/class_210;field_913:Lnet/minecraft/class_388;
      named EAST Lnet/minecraft/block/FireBlock;EAST:Lnet/minecraft/state/property/BooleanProperty;
    • SOUTH

      public static final BooleanProperty SOUTH
      Mappings:
      Namespace Name Mixin selector
      official Q Lagv;Q:Lamk;
      intermediary field_914 Lnet/minecraft/class_210;field_914:Lnet/minecraft/class_388;
      named SOUTH Lnet/minecraft/block/FireBlock;SOUTH:Lnet/minecraft/state/property/BooleanProperty;
    • WEST

      public static final BooleanProperty WEST
      Mappings:
      Namespace Name Mixin selector
      official R Lagv;R:Lamk;
      intermediary field_915 Lnet/minecraft/class_210;field_915:Lnet/minecraft/class_388;
      named WEST Lnet/minecraft/block/FireBlock;WEST:Lnet/minecraft/state/property/BooleanProperty;
    • UPPER

      public static final IntProperty UPPER
      Mappings:
      Namespace Name Mixin selector
      official S Lagv;S:Lamn;
      intermediary field_916 Lnet/minecraft/class_210;field_916:Lnet/minecraft/class_391;
      named UPPER Lnet/minecraft/block/FireBlock;UPPER:Lnet/minecraft/state/property/IntProperty;
    • BLOCKS_BY_FLAMMABILITY

      private final Map<Block,​Integer> BLOCKS_BY_FLAMMABILITY
      Mappings:
      Namespace Name Mixin selector
      official T Lagv;T:Ljava/util/Map;
      intermediary field_917 Lnet/minecraft/class_210;field_917: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 U Lagv;U:Ljava/util/Map;
      intermediary field_918 Lnet/minecraft/class_210;field_918: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, WorldView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - WorldView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official a Lafh;a(Lalz;Ladq;Lcj;)Lalz;
      intermediary method_673 Lnet/minecraft/class_160;method_673(Lnet/minecraft/class_376;Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Lnet/minecraft/class_376;
      named getBlockState Lnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • registerDefaultFlammables

      public static void registerDefaultFlammables()
      Mappings:
      Namespace Name Mixin selector
      official l Lagv;l()V
      intermediary method_856 Lnet/minecraft/class_210;method_856()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 Lagv;a(Lafh;II)V
      intermediary method_850 Lnet/minecraft/class_210;method_850(Lnet/minecraft/class_160;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 Lafh;a(Ladm;Lcj;Lalz;)Laug;
      intermediary method_645 Lnet/minecraft/class_160;method_645(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)Lnet/minecraft/class_646;
      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 Lafh;c()Z
      intermediary method_699 Lnet/minecraft/class_160;method_699()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 Lafh;d()Z
      intermediary method_709 Lnet/minecraft/class_160;method_709()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 Lafh;a(Ljava/util/Random;)I
      intermediary method_677 Lnet/minecraft/class_160;method_677(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 Lafh;a(Ladm;)I
      intermediary method_642 Lnet/minecraft/class_160;method_642(Lnet/minecraft/class_99;)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 Lafh;b(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_690 Lnet/minecraft/class_160;method_690(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 e Lagv;e(Ladm;Lcj;)Z
      intermediary method_853 Lnet/minecraft/class_210;method_853(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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 N Lafh;N()Z
      intermediary method_628 Lnet/minecraft/class_160;method_628()Z
      named isFire Lnet/minecraft/block/Block;isFire()Z
    • method_851

      private int method_851​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official c Lagv;c(Lafh;)I
      intermediary method_851 Lnet/minecraft/class_210;method_851(Lnet/minecraft/class_160;)I
      named method_851 Lnet/minecraft/block/FireBlock;method_851(Lnet/minecraft/block/Block;)I
    • method_852

      private int method_852​(Block block)
      Mappings:
      Namespace Name Mixin selector
      official d Lagv;d(Lafh;)I
      intermediary method_852 Lnet/minecraft/class_210;method_852(Lnet/minecraft/class_160;)I
      named method_852 Lnet/minecraft/block/FireBlock;method_852(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 Lagv;a(Ladm;Lcj;ILjava/util/Random;I)V
      intermediary method_849 Lnet/minecraft/class_210;method_849(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;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_855

      private boolean method_855​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official f Lagv;f(Ladm;Lcj;)Z
      intermediary method_855 Lnet/minecraft/class_210;method_855(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)Z
      named method_855 Lnet/minecraft/block/FireBlock;method_855(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • method_857

      private int method_857​(World world, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official m Lagv;m(Ladm;Lcj;)I
      intermediary method_857 Lnet/minecraft/class_210;method_857(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)I
      named method_857 Lnet/minecraft/block/FireBlock;method_857(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 A Lafh;A()Z
      intermediary method_615 Lnet/minecraft/class_160;method_615()Z
      named hasCollision Lnet/minecraft/block/Block;hasCollision()Z
    • method_854

      public boolean method_854​(WorldView worldView, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official e Lagv;e(Ladq;Lcj;)Z
      intermediary method_854 Lnet/minecraft/class_210;method_854(Lnet/minecraft/class_104;Lnet/minecraft/class_1372;)Z
      named method_854 Lnet/minecraft/block/FireBlock;method_854(Lnet/minecraft/world/WorldView;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 d Lafh;d(Ladm;Lcj;)Z
      intermediary method_711 Lnet/minecraft/class_160;method_711(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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 Lafh;a(Ladm;Lcj;Lalz;Lafh;)V
      intermediary method_648 Lnet/minecraft/class_160;method_648(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;Lnet/minecraft/class_160;)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 Lafh;c(Ladm;Lcj;Lalz;)V
      intermediary method_703 Lnet/minecraft/class_160;method_703(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;)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 Lafh;c(Ladm;Lcj;Lalz;Ljava/util/Random;)V
      intermediary method_704 Lnet/minecraft/class_160;method_704(Lnet/minecraft/class_99;Lnet/minecraft/class_1372;Lnet/minecraft/class_376;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 Lafh;g(Lalz;)Larn;
      intermediary method_720 Lnet/minecraft/class_160;method_720(Lnet/minecraft/class_376;)Lnet/minecraft/class_592;
      named getMaterialColor Lnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/MaterialColor;
    • getRenderLayerType

      @Environment(CLIENT) public RenderLayer 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 m Lafh;m()Ladf;
      intermediary method_731 Lnet/minecraft/class_160;method_731()Lnet/minecraft/class_91;
      named getRenderLayerType Lnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/RenderLayer;
    • 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 Lafh;a(I)Lalz;
      intermediary method_637 Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;
      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 Lafh;c(Lalz;)I
      intermediary method_706 Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)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 Lafh;e()Lama;
      intermediary method_714 Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;