Interface FullMappings
- All Superinterfaces:
BiMappings,Mappings
- All Known Implementing Classes:
FullIdentityMappings,FullMappingsBase,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.@Nullable Stringidentifier(int id) Returns the unmapped string identifier for the given mapped id.@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.intReturns the mapped integer id for the given mapped identifier, or -1 if not found.@Nullable StringmappedIdentifier(int mappedId) Returns the mapped string identifier for the given mapped id.@Nullable StringmappedIdentifier(String identifier) Returns the mapped string identifier for the given unmapped identifier.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
-
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
-