Interface FullMappings

All Superinterfaces:
BiMappings, Mappings
All Known Implementing Classes:
FullMappingsBase, ParticleMappings

public interface FullMappings extends BiMappings
Mappings containing the full string identifier mappings.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    id(String identifier)
    Returns the unmapped integer id for the given identifier, or -1 if not found.
    @Nullable String
    identifier(int id)
    Returns the unmapped string identifier for the given mapped id.
    Returns the inverse of the bimappings.
    int
    mappedId(String mappedIdentifier)
    Returns the mapped integer id for the given mapped identifier, or -1 if not found.
    @Nullable String
    mappedIdentifier(int mappedId)
    Returns the mapped string identifier for the given mapped id.
    @Nullable String
    Returns the mapped string identifier for the given unmapped identifier.

    Methods inherited from interface com.viaversion.viaversion.api.data.Mappings

    contains, getNewId, getNewIdOrDefault, mappedSize, setNewId, size
  • Method Details

    • id

      int id(String identifier)
      Returns the unmapped integer id for the given identifier, or -1 if not found.
      Parameters:
      identifier - unmapped string identifier
      Returns:
      unmapped int id, or -1 if not found
    • mappedId

      int mappedId(String mappedIdentifier)
      Returns the mapped integer id for the given mapped identifier, or -1 if not found.
      Parameters:
      mappedIdentifier - mapped string identifier
      Returns:
      mapped int id, or -1 if not found
    • identifier

      @Nullable String identifier(int id)
      Returns the unmapped string identifier for the given mapped id.
      Parameters:
      id - unmapped id
      Returns:
      unmapped string identifier, or null if out of bounds
    • mappedIdentifier

      @Nullable String mappedIdentifier(int mappedId)
      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

      @Nullable String mappedIdentifier(String identifier)
      Returns the mapped string identifier for the given unmapped identifier.
      Parameters:
      identifier - unmapped identifier
      Returns:
      mapped string identifier, or null if not found
    • inverse

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