Class ResolvableIntType
java.lang.Object
com.viaversion.viaversion.api.type.Type<ResolvableInt>
com.viaversion.viaversion.api.type.types.misc.ResolvableIntType
- All Implemented Interfaces:
ByteBufReader<ResolvableInt>,ByteBufWriter<ResolvableInt>,CodecWriter<ResolvableInt>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(io.netty.buffer.ByteBuf buffer) Reads a value from a ByteBuf.voidwrite(Ops ops, ResolvableInt value) voidwrite(io.netty.buffer.ByteBuf buffer, ResolvableInt value) Writes an object to a type to a ByteBuf.Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, toString
-
Constructor Details
-
ResolvableIntType
public ResolvableIntType()
-
-
Method Details
-
read
Description copied from interface:ByteBufReaderReads a value from a ByteBuf.- Parameters:
buffer- buffer to read from- Returns:
- type based on the class type
-
write
Description copied from interface:ByteBufWriterWrites an object to a type to a ByteBuf.- Parameters:
buffer- buffer to write tovalue- value to write
-
write
- Specified by:
writein interfaceCodecWriter<ResolvableInt>- Overrides:
writein classType<ResolvableInt>
-