Class Types

java.lang.Object
com.viaversion.viaversion.api.type.Types

public final class Types extends Object
Holds the mostly stable Type instances. Others may be held separately or object classes themselves, e.g. Types1_20_5 or Enchantments
  • Field Details

    • EMPTY

      public static final Type<Unit> EMPTY
    • BYTE

      public static final ByteType BYTE
    • UNSIGNED_BYTE

      public static final UnsignedByteType UNSIGNED_BYTE
    • BYTE_ARRAY_PRIMITIVE

      public static final Type<byte[]> BYTE_ARRAY_PRIMITIVE
    • OPTIONAL_BYTE_ARRAY_PRIMITIVE

      public static final Type<byte[]> OPTIONAL_BYTE_ARRAY_PRIMITIVE
    • SHORT_BYTE_ARRAY

      public static final Type<byte[]> SHORT_BYTE_ARRAY
    • REMAINING_BYTES

      public static final Type<byte[]> REMAINING_BYTES
    • SHORT

      public static final ShortType SHORT
    • UNSIGNED_SHORT

      public static final UnsignedShortType UNSIGNED_SHORT
    • INT

      public static final IntType INT
    • INT_ARRAY_PRIMITIVE

      public static final Type<int[]> INT_ARRAY_PRIMITIVE
    • FLOAT

      public static final FloatType FLOAT
    • OPTIONAL_FLOAT

      public static final FloatType.OptionalFloatType OPTIONAL_FLOAT
    • FLOAT_ARRAY_PRIMITIVE

      public static final Type<float[]> FLOAT_ARRAY_PRIMITIVE
    • DOUBLE

      public static final DoubleType DOUBLE
    • LONG

      public static final LongType LONG
    • LONG_ARRAY_PRIMITIVE

      public static final Type<long[]> LONG_ARRAY_PRIMITIVE
    • BOOLEAN

      public static final BooleanType BOOLEAN
    • OPTIONAL_BOOLEAN

      public static final BooleanType.OptionalBooleanType OPTIONAL_BOOLEAN
    • BOOLEAN_ARRAY_PRIMITIVE

      public static final Type<boolean[]> BOOLEAN_ARRAY_PRIMITIVE
    • COMPONENT

      public static final Type<com.google.gson.JsonElement> COMPONENT
    • OPTIONAL_COMPONENT

      public static final Type<com.google.gson.JsonElement> OPTIONAL_COMPONENT
    • STRING

      public static final Type<String> STRING
    • OPTIONAL_STRING

      public static final Type<String> OPTIONAL_STRING
    • STRING_ARRAY

      public static final Type<String[]> STRING_ARRAY
    • UUID

      public static final Type<UUID> UUID
    • OPTIONAL_UUID

      public static final Type<UUID> OPTIONAL_UUID
    • UUID_ARRAY

      public static final Type<UUID[]> UUID_ARRAY
    • VAR_INT

      public static final VarIntType VAR_INT
    • OPTIONAL_VAR_INT

      public static final OptionalVarIntType OPTIONAL_VAR_INT
    • VAR_INT_ARRAY_PRIMITIVE

      public static final Type<int[]> VAR_INT_ARRAY_PRIMITIVE
    • VAR_LONG

      public static final VarLongType VAR_LONG
    • SERVERBOUND_CUSTOM_PAYLOAD_DATA

      public static final Type<byte[]> SERVERBOUND_CUSTOM_PAYLOAD_DATA
    • BLOCK_POSITION1_8

      public static final Type<BlockPosition> BLOCK_POSITION1_8
    • OPTIONAL_POSITION1_8

      public static final Type<BlockPosition> OPTIONAL_POSITION1_8
    • BLOCK_POSITION1_14

      public static final Type<BlockPosition> BLOCK_POSITION1_14
    • OPTIONAL_POSITION_1_14

      public static final Type<BlockPosition> OPTIONAL_POSITION_1_14
    • ROTATIONS

      public static final Type<EulerAngle> ROTATIONS
    • VECTOR

      public static final Type<Vector> VECTOR
    • VECTOR3F

      public static final Type<Vector3f> VECTOR3F
    • QUATERNION

      public static final Type<Quaternion> QUATERNION
    • NAMED_COMPOUND_TAG

      public static final Type<com.viaversion.nbt.tag.CompoundTag> NAMED_COMPOUND_TAG
    • OPTIONAL_NAMED_COMPOUND_TAG

      public static final Type<com.viaversion.nbt.tag.CompoundTag> OPTIONAL_NAMED_COMPOUND_TAG
    • NAMED_COMPOUND_TAG_ARRAY

      public static final Type<com.viaversion.nbt.tag.CompoundTag[]> NAMED_COMPOUND_TAG_ARRAY
    • COMPOUND_TAG

      public static final Type<com.viaversion.nbt.tag.CompoundTag> COMPOUND_TAG
    • OPTIONAL_COMPOUND_TAG

      public static final Type<com.viaversion.nbt.tag.CompoundTag> OPTIONAL_COMPOUND_TAG
    • TAG

      public static final Type<com.viaversion.nbt.tag.Tag> TAG
    • TAG_ARRAY

      public static final Type<com.viaversion.nbt.tag.Tag[]> TAG_ARRAY
    • OPTIONAL_TAG

      public static final Type<com.viaversion.nbt.tag.Tag> OPTIONAL_TAG
    • GLOBAL_POSITION

      public static final Type<GlobalBlockPosition> GLOBAL_POSITION
    • OPTIONAL_GLOBAL_POSITION

      public static final Type<GlobalBlockPosition> OPTIONAL_GLOBAL_POSITION
    • CHUNK_POSITION

      public static final Type<ChunkPosition> CHUNK_POSITION
    • BLOCK_ENTITY1_18

      public static final Type<BlockEntity> BLOCK_ENTITY1_18
    • BLOCK_ENTITY1_20_2

      public static final Type<BlockEntity> BLOCK_ENTITY1_20_2
    • BLOCK_CHANGE

      public static final Type<BlockChangeRecord> BLOCK_CHANGE
    • BLOCK_CHANGE_ARRAY

      public static final Type<BlockChangeRecord[]> BLOCK_CHANGE_ARRAY
    • VAR_LONG_BLOCK_CHANGE

      public static final Type<BlockChangeRecord> VAR_LONG_BLOCK_CHANGE
    • VAR_LONG_BLOCK_CHANGE_ARRAY

      public static final Type<BlockChangeRecord[]> VAR_LONG_BLOCK_CHANGE_ARRAY
    • VILLAGER_DATA

      public static final Type<VillagerData> VILLAGER_DATA
    • GAME_PROFILE

      public static final Type<GameProfile> GAME_PROFILE
    • PROFILE_KEY

      public static final Type<ProfileKey> PROFILE_KEY
    • OPTIONAL_PROFILE_KEY

      public static final Type<ProfileKey> OPTIONAL_PROFILE_KEY
    • PLAYER_MESSAGE_SIGNATURE

      public static final Type<PlayerMessageSignature> PLAYER_MESSAGE_SIGNATURE
    • OPTIONAL_PLAYER_MESSAGE_SIGNATURE

      public static final Type<PlayerMessageSignature> OPTIONAL_PLAYER_MESSAGE_SIGNATURE
    • PLAYER_MESSAGE_SIGNATURE_ARRAY

      public static final Type<PlayerMessageSignature[]> PLAYER_MESSAGE_SIGNATURE_ARRAY
    • PROFILE_ACTIONS_ENUM1_19_3

      public static final BitSetType PROFILE_ACTIONS_ENUM1_19_3
    • PROFILE_ACTIONS_ENUM1_21_2

      public static final BitSetType PROFILE_ACTIONS_ENUM1_21_2
    • PROFILE_ACTIONS_ENUM1_21_4

      public static final BitSetType PROFILE_ACTIONS_ENUM1_21_4
    • SIGNATURE_BYTES

      public static final ByteArrayType SIGNATURE_BYTES
    • ACKNOWLEDGED_BIT_SET

      public static final BitSetType ACKNOWLEDGED_BIT_SET
    • OPTIONAL_SIGNATURE_BYTES

      public static final ByteArrayType.OptionalByteArrayType OPTIONAL_SIGNATURE_BYTES
    • REGISTRY_ENTRY

      public static final Type<RegistryEntry> REGISTRY_ENTRY
    • REGISTRY_ENTRY_ARRAY

      public static final Type<RegistryEntry[]> REGISTRY_ENTRY_ARRAY
    • HOLDER_SET

      public static final Type<HolderSet> HOLDER_SET
    • OPTIONAL_HOLDER_SET

      public static final Type<HolderSet> OPTIONAL_HOLDER_SET
    • SOUND_EVENT

      public static final HolderType<SoundEvent> SOUND_EVENT
    • ITEM1_8

      public static final Type<Item> ITEM1_8
    • ITEM1_13

      public static final Type<Item> ITEM1_13
    • ITEM1_13_2

      public static final Type<Item> ITEM1_13_2
    • ITEM1_20_2

      public static final Type<Item> ITEM1_20_2
    • ITEM1_8_SHORT_ARRAY

      public static final Type<Item[]> ITEM1_8_SHORT_ARRAY
    • ITEM1_13_SHORT_ARRAY

      public static final Type<Item[]> ITEM1_13_SHORT_ARRAY
    • ITEM1_13_2_SHORT_ARRAY

      public static final Type<Item[]> ITEM1_13_2_SHORT_ARRAY
    • ITEM1_13_ARRAY

      public static final Type<Item[]> ITEM1_13_ARRAY
    • ITEM1_13_2_ARRAY

      public static final Type<Item[]> ITEM1_13_2_ARRAY
    • ITEM1_20_2_ARRAY

      public static final Type<Item[]> ITEM1_20_2_ARRAY
  • Constructor Details

    • Types

      public Types()