Class CachedTile

java.lang.Object
mindustry.world.Tile
mindustry.world.CachedTile
All Implemented Interfaces:
Position, QuadTree.QuadTreeObject, Displayable

public class CachedTile extends Tile
A tile which does not trigger change events and whose entity types are cached. Prevents garbage when loading previews.
  • Constructor Details

    • CachedTile

      public CachedTile()
  • Method Details

    • preChanged

      protected void preChanged()
      Overrides:
      preChanged in class Tile
    • changeBuild

      protected void changeBuild(Team team, Prov<mindustry.gen.Building> entityprov, int rotation)
      Overrides:
      changeBuild in class Tile