Class LegacyFullStringMappingsBase
java.lang.Object
com.viaversion.viaversion.api.data.FullMappingsBase
com.viaversion.viaversion.api.data.LegacyFullStringMappingsBase
- All Implemented Interfaces:
BiMappings,FullMappings,Mappings
Full mappings for versions where required identifiers hadn't yet followed the resource location format (i.e., pre-1.9.4 sounds).
-
Field Summary
Fields inherited from class com.viaversion.viaversion.api.data.FullMappingsBase
idToKey, mappedIdToKey, mappedStringToId, mappings, stringToId -
Constructor Summary
ConstructorsConstructorDescriptionLegacyFullStringMappingsBase(MappingDataLoader.IdentifiersPair identifiersPair, Mappings mappings) -
Method Summary
Modifier and TypeMethodDescriptionidentifier(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.@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.@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.@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 class com.viaversion.viaversion.api.data.FullMappingsBase
getNewId, id, isIntIdIdentity, mappedId, mappedSize, of, setNewId, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.viaversion.viaversion.api.data.Mappings
contains, getNewIdOrDefault, isIdentity
-
Constructor Details
-
LegacyFullStringMappingsBase
public LegacyFullStringMappingsBase(MappingDataLoader.IdentifiersPair identifiersPair, Mappings mappings)
-
-
Method Details
-
identifier
Description copied from interface:FullMappingsReturns the unmapped string identifier for the given mapped id.- Parameters:
id- unmapped id- Returns:
- unmapped string identifier, or null if out of bounds
-
identifier
Description copied from interface:FullMappingsReturns the unmapped string identifier for the given mapped identifier.- Parameters:
mappedIdentifier- mapped identifier- Returns:
- unmapped string identifier, or null if not found
-
mappedIdentifier
Description copied from interface:FullMappingsReturns the mapped string identifier for the given mapped id.- Parameters:
mappedId- mapped id- Returns:
- mapped string identifier, or null if out of bounds
-
mappedIdentifier
Description copied from interface:FullMappingsReturns the mapped string identifier for the given unmapped identifier.- Parameters:
identifier- unmapped identifier- Returns:
- mapped string identifier, or null if not found
-
keyFromId
Description copied from interface:FullMappingsReturns the unmapped key for the given mapped id.- Specified by:
keyFromIdin interfaceFullMappings- Overrides:
keyFromIdin classFullMappingsBase- Parameters:
id- unmapped id- Returns:
- unmapped key, or null if out of bounds
-
keyFromMappedKey
Description copied from interface:FullMappingsReturns the unmapped key for the given mapped identifier.- Specified by:
keyFromMappedKeyin interfaceFullMappings- Overrides:
keyFromMappedKeyin classFullMappingsBase- Parameters:
mappedIdentifier- mapped identifier- Returns:
- unmapped key, or null if not found
-
mappedKeyFromMappedId
Description copied from interface:FullMappingsReturns the mapped key for the given mapped id.- Specified by:
mappedKeyFromMappedIdin interfaceFullMappings- Overrides:
mappedKeyFromMappedIdin classFullMappingsBase- Parameters:
mappedId- mapped id- Returns:
- mapped key, or null if out of bounds
-
mappedKeyFromKey
Description copied from interface:FullMappingsReturns the mapped key for the given unmapped identifier.- Specified by:
mappedKeyFromKeyin interfaceFullMappings- Overrides:
mappedKeyFromKeyin classFullMappingsBase- Parameters:
identifier- unmapped identifier- Returns:
- mapped key, or null if not found
-
inverse
Description copied from interface:BiMappingsReturns the inverse of the bimappings.- Specified by:
inversein interfaceBiMappings- Specified by:
inversein interfaceFullMappings- Specified by:
inversein interfaceMappings- Overrides:
inversein classFullMappingsBase- Returns:
- inverse of the bimappings
-