Class MapLocales

java.lang.Object
arc.struct.ObjectMap<String,arc.struct.StringMap>
mindustry.type.MapLocales
All Implemented Interfaces:
arc.util.serialization.Json.JsonSerializable, Iterable<arc.struct.ObjectMap.Entry<String,arc.struct.StringMap>>

public class MapLocales extends arc.struct.ObjectMap<String,arc.struct.StringMap> implements arc.util.serialization.Json.JsonSerializable
Class for storing map-specific locale bundles
  • Nested Class Summary

    Nested classes/interfaces inherited from class arc.struct.ObjectMap

    arc.struct.ObjectMap.Entries<K extends Object,V extends Object>, arc.struct.ObjectMap.Entry<K extends Object,V extends Object>, arc.struct.ObjectMap.Keys<K extends Object>, arc.struct.ObjectMap.Values<V extends Object>
  • Field Summary

    Fields inherited from class arc.struct.ObjectMap

    size
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    static String
     
    getFormatted(String key, Object... args)
     
     
    void
    read(arc.util.serialization.Json json, arc.util.serialization.JsonValue jsonData)
     
    void
    write(arc.util.serialization.Json json)
     

    Methods inherited from class arc.struct.ObjectMap

    clear, clear, containsKey, containsValue, each, ensureCapacity, entries, equals, findKey, get, get, get, getNull, getThrow, hashCode, isEmpty, iterator, keys, merge, of, put, putAll, putAll, remove, shrink, toString, toString, toString, values

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • MapLocales

      public MapLocales()
  • Method Details

    • write

      public void write(arc.util.serialization.Json json)
      Specified by:
      write in interface arc.util.serialization.Json.JsonSerializable
    • read

      public void read(arc.util.serialization.Json json, arc.util.serialization.JsonValue jsonData)
      Specified by:
      read in interface arc.util.serialization.Json.JsonSerializable
    • copy

      public MapLocales copy()
      Overrides:
      copy in class arc.struct.ObjectMap<String,arc.struct.StringMap>
    • getProperty

      public String getProperty(String key)
    • containsProperty

      public boolean containsProperty(String key)
    • getFormatted

      public String getFormatted(String key, Object... args)
    • currentLocale

      public static String currentLocale()