A wrapper around VarHandle with better type safety using generics and a toggleable underlying implementation depending on whether we're using mojang mappings or non-mojang mappings.
More...
|
FieldType | get (Type instance) |
|
FieldType | getStatic () |
|
void | set (Type instance, FieldType param) |
|
|
static< Type, FieldType > SafeVarHandle< Type, FieldType > | ofOrNull (Class<? super Type > classType, String fieldName, String mojangMappedFieldName, Class<? super FieldType > fieldType) |
|
|
static boolean | USING_MOJANG_MAPPINGS = MojangMappedVersionHandler.isMojangMapped() |
|
A wrapper around VarHandle with better type safety using generics and a toggleable underlying implementation depending on whether we're using mojang mappings or non-mojang mappings.
- Parameters
-