T
- read/written typepublic abstract class Type<T> extends java.lang.Object implements ByteBufReader<T>, ByteBufWriter<T>
Modifier | Constructor and Description |
---|---|
protected |
Type(java.lang.Class<? super T> outputClass) |
protected |
Type(java.lang.String typeName,
java.lang.Class<? super T> outputClass) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Type> |
getBaseClass()
Returns the base class, useful when the output class is insufficient for type comparison.
|
java.lang.Class<? super T> |
getOutputClass()
Returns the output class type.
|
java.lang.String |
getTypeName()
Returns the type name.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
read
write
public static final ByteType BYTE
public static final UnsignedByteType UNSIGNED_BYTE
public static final Type<byte[]> BYTE_ARRAY_PRIMITIVE
public static final Type<byte[]> OPTIONAL_BYTE_ARRAY_PRIMITIVE
public static final Type<byte[]> SHORT_BYTE_ARRAY
public static final Type<byte[]> REMAINING_BYTES
public static final ShortType SHORT
public static final UnsignedShortType UNSIGNED_SHORT
public static final IntType INT
public static final FloatType FLOAT
public static final FloatType.OptionalFloatType OPTIONAL_FLOAT
public static final DoubleType DOUBLE
public static final LongType LONG
public static final Type<long[]> LONG_ARRAY_PRIMITIVE
public static final BooleanType BOOLEAN
public static final Type<com.google.gson.JsonElement> COMPONENT
public static final Type<com.google.gson.JsonElement> OPTIONAL_COMPONENT
public static final Type<java.lang.String> STRING
public static final Type<java.lang.String> OPTIONAL_STRING
public static final Type<java.lang.String[]> STRING_ARRAY
public static final Type<java.util.UUID> UUID
public static final Type<java.util.UUID> OPTIONAL_UUID
public static final Type<java.util.UUID[]> UUID_ARRAY
@Deprecated public static final Type<java.util.UUID> UUID_INT_ARRAY
public static final VarIntType VAR_INT
public static final OptionalVarIntType OPTIONAL_VAR_INT
public static final Type<int[]> VAR_INT_ARRAY_PRIMITIVE
public static final VarLongType VAR_LONG
@Deprecated public static final Type<java.lang.Byte[]> BYTE_ARRAY
@Deprecated public static final Type<java.lang.Short[]> UNSIGNED_BYTE_ARRAY
@Deprecated public static final Type<java.lang.Boolean[]> BOOLEAN_ARRAY
@Deprecated public static final Type<java.lang.Integer[]> INT_ARRAY
@Deprecated public static final Type<java.lang.Short[]> SHORT_ARRAY
@Deprecated public static final Type<java.lang.Integer[]> UNSIGNED_SHORT_ARRAY
@Deprecated public static final Type<java.lang.Double[]> DOUBLE_ARRAY
@Deprecated public static final Type<java.lang.Long[]> LONG_ARRAY
@Deprecated public static final Type<java.lang.Float[]> FLOAT_ARRAY
@Deprecated public static final Type<java.lang.Integer[]> VAR_INT_ARRAY
@Deprecated public static final Type<java.lang.Long[]> VAR_LONG_ARRAY
public static final VoidType NOTHING
public static final Type<EulerAngle> ROTATION
public static final Type<Quaternion> QUATERNION
public static final Type<com.github.steveice10.opennbt.tag.builtin.CompoundTag> NBT
public static final Type<com.github.steveice10.opennbt.tag.builtin.CompoundTag> NAMELESS_NBT
public static final Type<com.github.steveice10.opennbt.tag.builtin.CompoundTag[]> NBT_ARRAY
public static final Type<GlobalPosition> GLOBAL_POSITION
public static final Type<GlobalPosition> OPTIONAL_GLOBAL_POSITION
public static final Type<ChunkPosition> CHUNK_POSITION
public static final Type<BlockChangeRecord> BLOCK_CHANGE_RECORD
public static final Type<BlockChangeRecord[]> BLOCK_CHANGE_RECORD_ARRAY
public static final Type<BlockChangeRecord> VAR_LONG_BLOCK_CHANGE_RECORD
public static final Type<BlockChangeRecord[]> VAR_LONG_BLOCK_CHANGE_RECORD_ARRAY
public static final Type<VillagerData> VILLAGER_DATA
public static final Type<ProfileKey> PROFILE_KEY
public static final Type<ProfileKey> OPTIONAL_PROFILE_KEY
public static final Type<PlayerMessageSignature> PLAYER_MESSAGE_SIGNATURE
public static final Type<PlayerMessageSignature> OPTIONAL_PLAYER_MESSAGE_SIGNATURE
public static final Type<PlayerMessageSignature[]> PLAYER_MESSAGE_SIGNATURE_ARRAY
protected Type(java.lang.Class<? super T> outputClass)
protected Type(java.lang.String typeName, java.lang.Class<? super T> outputClass)
public java.lang.Class<? super T> getOutputClass()
public java.lang.String getTypeName()
public java.lang.Class<? extends Type> getBaseClass()
List
} as their output type.public java.lang.String toString()
toString
in class java.lang.Object