Class IntMetadataType
java.lang.Object
com.github.steveice10.mc.protocol.data.game.entity.metadata.MetadataType<Integer>
com.github.steveice10.mc.protocol.data.game.entity.metadata.IntMetadataType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class com.github.steveice10.mc.protocol.data.game.entity.metadata.MetadataType
MetadataType.BasicReader<V>, MetadataType.BasicWriter<V>, MetadataType.EntityMetadataFactory<V>, MetadataType.Reader<V>, MetadataType.Writer<V> -
Field Summary
Fields inherited from class com.github.steveice10.mc.protocol.data.game.entity.metadata.MetadataType
BLOCK_STATE, BOOLEAN, BYTE, CAT_VARIANT, CHAT, DIRECTION, FLOAT, FROG_VARIANT, INT, ITEM, LONG, NBT_TAG, OPTIONAL_BLOCK_STATE, OPTIONAL_CHAT, OPTIONAL_GLOBAL_POS, OPTIONAL_POSITION, OPTIONAL_UUID, OPTIONAL_VARINT, PAINTING_VARIANT, PARTICLE, POSE, POSITION, QUATERNION, ROTATION, SNIFFER_STATE, STRING, VECTOR3, VILLAGER_DATA -
Method Summary
Modifier and TypeMethodDescriptionreadMetadata(MinecraftCodecHelper helper, io.netty.buffer.ByteBuf input, int id) voidwriteMetadataPrimitive(MinecraftCodecHelper helper, io.netty.buffer.ByteBuf output, int value) Methods inherited from class com.github.steveice10.mc.protocol.data.game.entity.metadata.MetadataType
from, read, size, writeMetadata
-
Method Details
-
readMetadata
public EntityMetadata<Integer,IntMetadataType> readMetadata(MinecraftCodecHelper helper, io.netty.buffer.ByteBuf input, int id) throws IOException - Overrides:
readMetadatain classMetadataType<Integer>- Throws:
IOException
-
writeMetadataPrimitive
public void writeMetadataPrimitive(MinecraftCodecHelper helper, io.netty.buffer.ByteBuf output, int value) throws IOException - Throws:
IOException
-