M - The type of the mapping, used for chainingP - The type of the parent objectpublic interface Mapping<M extends Mapping,P> extends Reversible<M,P>
| Modifier and Type | Method and Description |
|---|---|
M |
copy(P parent)
Clones this mapping, to a given parent.
|
<T> Optional<T> |
get(ExtensionKey<T> key)
Gets the value of the extension data, if it exists.
|
String |
getDeobfuscatedName()
Gets the de-obfuscated name of the member being represented.
|
String |
getFullDeobfuscatedName()
Gets the fully-qualified de-obfuscated name of the member.
|
String |
getFullObfuscatedName()
Gets the fully-qualified obfuscated name of the member.
|
MappingSet |
getMappings()
Gets the
MappingSet that the mappings belongs to. |
String |
getObfuscatedName()
Gets the obfuscated name of the member being represented.
|
default <T> T |
getOrCreate(ExtensionKey<T> key,
Supplier<T> supplier)
Gets the value of the extension data, or uses the supplier (setting that value too).
|
default String |
getSimpleDeobfuscatedName()
Gets the unqualified ("simple") de-obfuscated name of the member.
|
default String |
getSimpleObfuscatedName()
Gets the unqualified ("simple") obfuscated name of the member.
|
boolean |
hasDeobfuscatedName()
Establishes whether the mapping has had a de-obfuscated name set.
|
M |
merge(M with,
P parent)
Merges this mapping with another, to a given parent.
|
<T> void |
set(ExtensionKey<T> key,
T value)
Sets the given extension data to the given value.
|
M |
setDeobfuscatedName(String deobfuscatedName)
Sets the de-obfuscated name of the member.
|
reverseString getObfuscatedName()
String getDeobfuscatedName()
setDeobfuscatedName(String).M setDeobfuscatedName(String deobfuscatedName)
deobfuscatedName - The new de-obfuscated namethis for chainingdefault String getSimpleObfuscatedName()
default String getSimpleDeobfuscatedName()
String getFullObfuscatedName()
String getFullDeobfuscatedName()
boolean hasDeobfuscatedName()
True if the mapping is mapped, false otherwiseMappingSet getMappings()
MappingSet that the mappings belongs to.M merge(M with, P parent)
with - The mapping to merge withparent - The parentM copy(P parent)
parent - The parent<T> Optional<T> get(ExtensionKey<T> key)
T - The type of the extension datakey - The key of the extension dataOptionaldefault <T> T getOrCreate(ExtensionKey<T> key, Supplier<T> supplier)
T - The type of the extension datakey - The key of the extension datasupplier - The "backup" value supplier<T> void set(ExtensionKey<T> key, T value)
T - The type of the extension datakey - The extension data keyvalue - The extension data value