Class Prediction
java.lang.Object
zombie.network.fields.character.Prediction
- All Implemented Interfaces:
INetworkPacketField, IDescriptor, INetworkPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbytestatic final floatfloatfinal Vector3floatfloatbytefloatfloatbyte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(Prediction other) voidparse(ByteBufferReader b, IConnection connection) voidupdate()voidwrite(ByteBuffer b) voidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClient, processClientLoading, processServer, sendToClient, sendToClients, sendToRelativeClients, sendToServer, setData, shouldInstantiate, syncMethods inherited from interface INetworkPacketField
getPacketSizeBytes, isConsistent
-
Field Details
-
type
public byte type -
x
public float x -
y
public float y -
z
public byte z -
direction
public float direction -
moveDirection
public float moveDirection -
speed
public float speed -
distance
public byte distance -
position
-
predictLeft
public float predictLeft -
DISTANCE_SCALE
public static final float DISTANCE_SCALE- See Also:
-
-
Constructor Details
-
Prediction
public Prediction()
-
-
Method Details
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
write
-
copy
-
update
public void update()
-