public class MetadataType<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetadataType.BasicReader<V> |
static interface |
MetadataType.BasicWriter<V> |
static interface |
MetadataType.EntityMetadataFactory<V> |
static interface |
MetadataType.HelperReader<V> |
static interface |
MetadataType.HelperWriter<V> |
static interface |
MetadataType.Reader<V> |
static interface |
MetadataType.Writer<V> |
| Modifier and Type | Method and Description |
|---|---|
static MetadataType<?> |
from(int id) |
static MetadataType<?> |
read(io.netty.buffer.ByteBuf in,
MinecraftCodecHelper helper) |
EntityMetadata<T,? extends MetadataType<T>> |
readMetadata(MinecraftCodecHelper helper,
io.netty.buffer.ByteBuf input,
int id) |
static int |
size() |
void |
writeMetadata(MinecraftCodecHelper helper,
io.netty.buffer.ByteBuf output,
T value) |
public static final ByteMetadataType BYTE
public static final IntMetadataType INT
public static final LongMetadataType LONG
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<com.nukkitx.math.vector.Vector3f> ROTATION
public static final MetadataType<com.nukkitx.math.vector.Vector3i> POSITION
public static final MetadataType<Optional<com.nukkitx.math.vector.Vector3i>> 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 IntMetadataType OPTIONAL_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 static final IntMetadataType CAT_VARIANT
public static final IntMetadataType FROG_VARIANT
public static final MetadataType<Optional<GlobalPos>> OPTIONAL_GLOBAL_POS
public static final MetadataType<PaintingType> PAINTING_VARIANT
public static final MetadataType<SnifferState> SNIFFER_STATE
public static final MetadataType<com.nukkitx.math.vector.Vector3f> VECTOR3
public static final MetadataType<com.nukkitx.math.vector.Vector4f> QUATERNION
public EntityMetadata<T,? extends MetadataType<T>> readMetadata(MinecraftCodecHelper helper, io.netty.buffer.ByteBuf input, int id) throws IOException
IOExceptionpublic void writeMetadata(MinecraftCodecHelper helper, io.netty.buffer.ByteBuf output, T value) throws IOException
IOExceptionpublic static MetadataType<?> read(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) throws IOException
IOExceptionpublic static MetadataType<?> from(int id)
public static int size()
Copyright © 2023. All rights reserved.