Class Fires

java.lang.Object
mindustry.entities.Fires

public class Fires extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    create(Tile tile)
    Start a fire on the tile.
    static void
    extinguish(Tile tile, float intensity)
    Attempts to extinguish a fire by shortening its life.
    static mindustry.gen.Fire
    get(int x, int y)
     
    static mindustry.gen.Fire
    get(Tile tile)
     
    static boolean
    has(int x, int y)
     
    static void
    register(mindustry.gen.Fire fire)
     
    static void
    remove(Tile tile)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Fires

      public Fires()
  • Method Details

    • create

      public static void create(Tile tile)
      Start a fire on the tile. If there already is a fire there, refreshes its lifetime.
    • get

      @Nullable public static mindustry.gen.Fire get(Tile tile)
    • get

      @Nullable public static mindustry.gen.Fire get(int x, int y)
    • has

      public static boolean has(int x, int y)
    • extinguish

      public static void extinguish(Tile tile, float intensity)
      Attempts to extinguish a fire by shortening its life. If there is no fire here, does nothing.
    • remove

      public static void remove(Tile tile)
    • register

      public static void register(mindustry.gen.Fire fire)