Class LegacyFullStringMappingsBase

java.lang.Object
com.viaversion.viaversion.api.data.FullMappingsBase
com.viaversion.viaversion.api.data.LegacyFullStringMappingsBase
All Implemented Interfaces:
BiMappings, FullMappings, Mappings

public class LegacyFullStringMappingsBase extends FullMappingsBase
Full mappings for versions where required identifiers hadn't yet followed the resource location format (i.e., pre-1.9.4 sounds).
  • Constructor Details

  • Method Details

    • identifier

      public String identifier(int id)
      Description copied from interface: FullMappings
      Returns the unmapped string identifier for the given mapped id.
      Parameters:
      id - unmapped id
      Returns:
      unmapped string identifier, or null if out of bounds
    • identifier

      public @Nullable String identifier(String mappedIdentifier)
      Description copied from interface: FullMappings
      Returns the unmapped string identifier for the given mapped identifier.
      Parameters:
      mappedIdentifier - mapped identifier
      Returns:
      unmapped string identifier, or null if not found
    • mappedIdentifier

      public @Nullable String mappedIdentifier(int mappedId)
      Description copied from interface: FullMappings
      Returns the mapped string identifier for the given mapped id.
      Parameters:
      mappedId - mapped id
      Returns:
      mapped string identifier, or null if out of bounds
    • mappedIdentifier

      public @Nullable String mappedIdentifier(String identifier)
      Description copied from interface: FullMappings
      Returns the mapped string identifier for the given unmapped identifier.
      Parameters:
      identifier - unmapped identifier
      Returns:
      mapped string identifier, or null if not found
    • keyFromId

      public @Nullable Key keyFromId(int id)
      Description copied from interface: FullMappings
      Returns the unmapped key for the given mapped id.
      Specified by:
      keyFromId in interface FullMappings
      Overrides:
      keyFromId in class FullMappingsBase
      Parameters:
      id - unmapped id
      Returns:
      unmapped key, or null if out of bounds
    • keyFromMappedKey

      public @Nullable Key keyFromMappedKey(String mappedIdentifier)
      Description copied from interface: FullMappings
      Returns the unmapped key for the given mapped identifier.
      Specified by:
      keyFromMappedKey in interface FullMappings
      Overrides:
      keyFromMappedKey in class FullMappingsBase
      Parameters:
      mappedIdentifier - mapped identifier
      Returns:
      unmapped key, or null if not found
    • mappedKeyFromMappedId

      public @Nullable Key mappedKeyFromMappedId(int mappedId)
      Description copied from interface: FullMappings
      Returns the mapped key for the given mapped id.
      Specified by:
      mappedKeyFromMappedId in interface FullMappings
      Overrides:
      mappedKeyFromMappedId in class FullMappingsBase
      Parameters:
      mappedId - mapped id
      Returns:
      mapped key, or null if out of bounds
    • mappedKeyFromKey

      public @Nullable Key mappedKeyFromKey(String identifier)
      Description copied from interface: FullMappings
      Returns the mapped key for the given unmapped identifier.
      Specified by:
      mappedKeyFromKey in interface FullMappings
      Overrides:
      mappedKeyFromKey in class FullMappingsBase
      Parameters:
      identifier - unmapped identifier
      Returns:
      mapped key, or null if not found
    • inverse

      public FullMappings inverse()
      Description copied from interface: BiMappings
      Returns the inverse of the bimappings.
      Specified by:
      inverse in interface BiMappings
      Specified by:
      inverse in interface FullMappings
      Specified by:
      inverse in interface Mappings
      Overrides:
      inverse in class FullMappingsBase
      Returns:
      inverse of the bimappings