public class MetadataType<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetadataType.EntityMetadataFactory<V> |
static interface |
MetadataType.Reader<V> |
static interface |
MetadataType.Writer<V> |
| Modifier and Type | Field and Description |
|---|---|
static IntMetadataType |
BLOCK_STATE |
static BooleanMetadataType |
BOOLEAN |
static ByteMetadataType |
BYTE |
static MetadataType<net.kyori.adventure.text.Component> |
CHAT |
static MetadataType<Direction> |
DIRECTION |
static FloatMetadataType |
FLOAT |
static IntMetadataType |
INT |
static MetadataType<ItemStack> |
ITEM |
static MetadataType<com.github.steveice10.opennbt.tag.builtin.CompoundTag> |
NBT_TAG |
static MetadataType<Optional<net.kyori.adventure.text.Component>> |
OPTIONAL_CHAT |
static MetadataType<Optional<Position>> |
OPTIONAL_POSITION |
static MetadataType<Optional<UUID>> |
OPTIONAL_UUID |
static OptionalIntMetadataType |
OPTIONAL_VARINT |
static MetadataType<Particle> |
PARTICLE |
static MetadataType<Pose> |
POSE |
static MetadataType<Position> |
POSITION |
static MetadataType<Rotation> |
ROTATION |
static MetadataType<String> |
STRING |
static MetadataType<VillagerData> |
VILLAGER_DATA |
| Modifier and Type | Method and Description |
|---|---|
static MetadataType<?> |
read(com.github.steveice10.packetlib.io.NetInput in) |
EntityMetadata<T,? extends MetadataType<T>> |
readMetadata(com.github.steveice10.packetlib.io.NetInput input,
int id) |
static void |
write(com.github.steveice10.packetlib.io.NetOutput out,
MetadataType<?> type) |
void |
writeMetadata(com.github.steveice10.packetlib.io.NetOutput output,
T value) |
public static final ByteMetadataType BYTE
public static final IntMetadataType INT
public static final FloatMetadataType FLOAT
public static final MetadataType<String> STRING
public static final MetadataType<net.kyori.adventure.text.Component> CHAT
public static final MetadataType<Optional<net.kyori.adventure.text.Component>> OPTIONAL_CHAT
public static final MetadataType<ItemStack> ITEM
public static final BooleanMetadataType BOOLEAN
public static final MetadataType<Rotation> ROTATION
public static final MetadataType<Position> POSITION
public static final MetadataType<Optional<Position>> OPTIONAL_POSITION
public static final MetadataType<Direction> DIRECTION
public static final MetadataType<Optional<UUID>> OPTIONAL_UUID
public static final IntMetadataType BLOCK_STATE
public static final MetadataType<com.github.steveice10.opennbt.tag.builtin.CompoundTag> NBT_TAG
public static final MetadataType<Particle> PARTICLE
public static final MetadataType<VillagerData> VILLAGER_DATA
public static final OptionalIntMetadataType OPTIONAL_VARINT
public static final MetadataType<Pose> POSE
public EntityMetadata<T,? extends MetadataType<T>> readMetadata(com.github.steveice10.packetlib.io.NetInput input, int id) throws IOException
IOExceptionpublic void writeMetadata(com.github.steveice10.packetlib.io.NetOutput output,
T value)
throws IOException
IOExceptionpublic static MetadataType<?> read(com.github.steveice10.packetlib.io.NetInput in) throws IOException
IOExceptionpublic static void write(com.github.steveice10.packetlib.io.NetOutput out,
MetadataType<?> type)
throws IOException
IOExceptionCopyright © 2022. All rights reserved.