Class FullIdentityMappings
java.lang.Object
com.viaversion.viaversion.api.data.FullMappingsBase
com.viaversion.viaversion.api.data.FullIdentityMappings
- All Implemented Interfaces:
BiMappings,FullMappings,Mappings
-
Field Summary
Fields inherited from class com.viaversion.viaversion.api.data.FullMappingsBase
idToKey, mappedIdToKey, mappedStringToId, mappings, stringToId -
Constructor Summary
ConstructorsConstructorDescriptionFullIdentityMappings(MappingDataLoader.IdentifiersPair identifiersPair, Mappings mappings) -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringidentifier(String mappedIdentifier) Returns the unmapped string identifier for the given mapped identifier.inverse()Returns the inverse of the bimappings.booleanReturns whether the mappings are unchanged identity mappings.booleanReturns whether the int id mappings are identity mappings.@Nullable KeykeyFromMappedKey(String mappedIdentifier) Returns the unmapped key for the given mapped identifier.Methods inherited from class com.viaversion.viaversion.api.data.FullMappingsBase
getNewId, id, keyFromId, mappedId, mappedKeyFromKey, mappedKeyFromMappedId, 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.FullMappings
identifier, mappedIdentifier, mappedIdentifierMethods inherited from interface com.viaversion.viaversion.api.data.Mappings
contains, getNewIdOrDefault
-
Constructor Details
-
FullIdentityMappings
-
-
Method Details
-
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
-
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
-
isIdentity
public boolean isIdentity()Description copied from interface:MappingsReturns whether the mappings are unchanged identity mappings.- Returns:
- whether the mappings are unchanged identity mappings
-
isIntIdIdentity
public boolean isIntIdIdentity()Description copied from interface:FullMappingsReturns whether the int id mappings are identity mappings.- Specified by:
isIntIdIdentityin interfaceFullMappings- Overrides:
isIntIdIdentityin classFullMappingsBase- Returns:
- whether the int id mappings are identity mappings
- See Also:
-
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
-