Class FullIdentityMappings

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

public class FullIdentityMappings extends FullMappingsBase
  • Constructor Details

  • Method Details

    • 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
    • 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
    • isIdentity

      public boolean isIdentity()
      Description copied from interface: Mappings
      Returns whether the mappings are unchanged identity mappings.
      Returns:
      whether the mappings are unchanged identity mappings
    • isIntIdIdentity

      public boolean isIntIdIdentity()
      Description copied from interface: FullMappings
      Returns whether the int id mappings are identity mappings.
      Specified by:
      isIntIdIdentity in interface FullMappings
      Overrides:
      isIntIdIdentity in class FullMappingsBase
      Returns:
      whether the int id mappings are identity mappings
      See Also:
    • inverse

      public FullIdentityMappings 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