Creates a new instance of Vec2.
The x-coordinate of the vector.
The y-coordinate of the vector.
Deserializes the vector from a binary stream.
The binary stream to deserialize from.
Serializes the vector into a binary stream.
The binary stream to serialize into.
Static
deserializeDeserializes the network structure from a binary stream.
The binary stream to deserialize from.
An instance of the class T.
Represents the network structure of a 2D vector. https://mojang.github.io/bedrock-protocol-docs/html/Vec2.html