Interface FullMappings
- All Superinterfaces:
BiMappings,Mappings
- All Known Implementing Classes:
FullIdentityMappings,FullMappingsBase,LegacyFullStringMappingsBase,ParticleMappings
Mappings containing the full string identifier mappings.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the unmapped integer id for the given identifier, or -1 if not found.default @Nullable Stringidentifier(int id) Returns the unmapped string identifier for the given mapped id.default @Nullable Stringidentifier(String mappedIdentifier) Returns the unmapped string identifier for the given mapped identifier.inverse()Returns the inverse of the bimappings.booleanReturns whether the int id mappings are identity mappings.@Nullable KeykeyFromId(int id) Returns the unmapped key for the given mapped id.@Nullable KeykeyFromMappedKey(String mappedIdentifier) Returns the unmapped key for the given mapped identifier.intReturns the mapped integer id for the given mapped identifier, or -1 if not found.default @Nullable StringmappedIdentifier(int mappedId) Returns the mapped string identifier for the given mapped id.default @Nullable StringmappedIdentifier(String identifier) Returns the mapped string identifier for the given unmapped identifier.@Nullable KeymappedKeyFromKey(String identifier) Returns the mapped key for the given unmapped identifier.@Nullable KeymappedKeyFromMappedId(int mappedId) Returns the mapped key for the given mapped id.Methods inherited from interface com.viaversion.viaversion.api.data.Mappings
contains, getNewId, getNewIdOrDefault, isIdentity, mappedSize, setNewId, size
-
Method Details
-
id
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
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
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
Returns the unmapped string identifier for the given mapped identifier.- Parameters:
mappedIdentifier- mapped identifier- Returns:
- unmapped string identifier, or null if not found
-
mappedIdentifier
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
Returns the mapped string identifier for the given unmapped identifier.- Parameters:
identifier- unmapped identifier- Returns:
- mapped string identifier, or null if not found
-
keyFromId
Returns the unmapped key for the given mapped id.- Parameters:
id- unmapped id- Returns:
- unmapped key, or null if out of bounds
-
keyFromMappedKey
Returns the unmapped key for the given mapped identifier.- Parameters:
mappedIdentifier- mapped identifier- Returns:
- unmapped key, or null if not found
-
mappedKeyFromMappedId
Returns the mapped key for the given mapped id.- Parameters:
mappedId- mapped id- Returns:
- mapped key, or null if out of bounds
-
mappedKeyFromKey
Returns the mapped key for the given unmapped identifier.- Parameters:
identifier- unmapped identifier- Returns:
- mapped key, or null if not found
-
isIntIdIdentity
boolean isIntIdIdentity()Returns whether the int id mappings are identity mappings.- Returns:
- whether the int id mappings are identity mappings
- See Also:
-
inverse
FullMappings inverse()Description copied from interface:BiMappingsReturns the inverse of the bimappings.- Specified by:
inversein interfaceBiMappings- Specified by:
inversein interfaceMappings- Returns:
- inverse of the bimappings
-