CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.SafeVarHandle< Type, FieldType > Class Template Reference

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...

Public Member Functions

FieldType get (Type instance)
 
FieldType getStatic ()
 
void set (Type instance, FieldType param)
 

Static Public Member Functions

static< Type, FieldType > SafeVarHandle< Type, FieldType > ofOrNull (Class<? super Type > classType, String fieldName, String mojangMappedFieldName, Class<? super FieldType > fieldType)
 

Static Public Attributes

static boolean USING_MOJANG_MAPPINGS = MojangMappedVersionHandler.isMojangMapped()
 

Detailed Description

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
<Type>
<FieldType>