Class AutoWrapper<T>

java.lang.Object
com.comphenix.protocol.wrappers.AutoWrapper<T>
All Implemented Interfaces:
EquivalentConverter<T>

public class AutoWrapper<T> extends Object implements EquivalentConverter<T>
Automatically wraps an internal NMS class to a non-versioned, deofbuscated class. Requirements:
  • The wrapper must be public
  • If the wrapper is an internal class, it must be static
  • The wrapper must have one public constructor with no arguments (the default constructor is acceptable)
  • The wrapper must have the the same number of fields as the NMS class
  • Each field should correspond, in order, to its NMS counterpart
  • Non-generic fields must have a converter