Class Prediction
java.lang.Object
zombie.network.fields.character.Prediction
- All Implemented Interfaces:
INetworkPacketField, IDescriptor, INetworkPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbytestatic final floatstatic final bytefloatfloatfloatfinal Vector3floatfloatbytefloatfloatbyte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(Prediction other) voidparse(ByteBufferReader b, IConnection connection) voidupdate()voidupdateLerp(IsoPlayer player) 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, logInconsistentPacket, parseClient, parseClientLoading, parseServer, postpone, processClient, processClientLoading, processServer, sendToClient, 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 -
pathFindX
public float pathFindX -
pathFindY
public float pathFindY -
position
-
predictionTimeRemaining
public float predictionTimeRemaining -
DISTANCE_SCALE
public static final float DISTANCE_SCALE- See Also:
-
MAX_LERP_DISTANCE
public static final byte MAX_LERP_DISTANCE- 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() -
updateLerp
-