Class Position
java.lang.Object
zombie.network.fields.Position
- All Implemented Interfaces:
INetworkPacketField
,IPositional
,IDescriptor
- Direct Known Subclasses:
Square
,StatePacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getX()
float
getY()
float
getZ()
void
parse
(ByteBuffer byteBuffer, UdpConnection var2) void
set
(float float0, float float1, float float2) void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescription
Methods inherited from interface zombie.network.fields.INetworkPacketField
getPacketSizeBytes, isConsistent
-
Field Details
-
x
protected float x -
y
protected float y -
z
protected float z
-
-
Constructor Details
-
Position
public Position()
-
-
Method Details
-
set
public void set(float float0, float float1, float float2) -
parse
- Specified by:
parse
in interfaceINetworkPacketField
-
write
- Specified by:
write
in interfaceINetworkPacketField
-
getX
public float getX()- Specified by:
getX
in interfaceIPositional
-
getY
public float getY()- Specified by:
getY
in interfaceIPositional
-
getZ
public float getZ()- Specified by:
getZ
in interfaceIPositional
-