Interface DynamicallyTypedMap<K>

Type Parameters:
K - the key type
All Known Subinterfaces:
DynamicallyTypedMapWithDoubles<K>, DynamicallyTypedMapWithFloats<K>
All Known Implementing Classes:
CompoundTag, GameRuleManager, MetadataMap, ServerConfig, WorldConfig

public interface DynamicallyTypedMap<K>
A map whose values are of variable types known to those invoking the getters.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Retrieves an entry as a boolean.
    int
    getInt(K key)
    Retrieves an entry as an int.
    getString(K key)
    Retrieves an entry as a String.
  • Method Details

    • getString

      String getString(K key)
      Retrieves an entry as a String.
      Parameters:
      key - the key to look up
      Returns:
      the value as a String
    • getInt

      int getInt(K key)
      Retrieves an entry as an int.
      Parameters:
      key - the key to look up
      Returns:
      the value as an int
    • getBoolean

      boolean getBoolean(K key)
      Retrieves an entry as a boolean.
      Parameters:
      key - the key to look up
      Returns:
      the value as a boolean