Interface FullMappings
- All Superinterfaces:
BiMappings
,Mappings
- All Known Implementing Classes:
FullMappingsBase
,ParticleMappings
Mappings containing the full string identifier mappings.
-
Method Summary
Modifier and TypeMethodDescriptionint
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.inverse()
Returns the inverse of the bimappings.int
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
mappedIdentifier
(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, 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
-
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
-
inverse
FullMappings inverse()Description copied from interface:BiMappings
Returns the inverse of the bimappings.- Specified by:
inverse
in interfaceBiMappings
- Specified by:
inverse
in interfaceMappings
- Returns:
- inverse of the bimappings
-