Class SyncedEntityPos
- Namespace
- Vintagestory.API.Common.Entities
- Assembly
- VintagestoryAPI.dll
Represents an EntityPos thats synced over the network using a dirty flag and regular is-dirty checks
public class SyncedEntityPos : EntityPos
- Inheritance
-
SyncedEntityPos
- Inherited Members
- Extension Methods
Constructors
SyncedEntityPos()
public SyncedEntityPos()
SyncedEntityPos(double, double, double, float, float)
public SyncedEntityPos(double x, double y, double z, float heading = 0, float pitch = 0)
Parameters
SyncedEntityPos(Vec3d)
public SyncedEntityPos(Vec3d position)
Parameters
position
Vec3d
Fields
LastReceivedClientPosition
public long LastReceivedClientPosition
Field Value
Properties
Dirty
Marks the position as dirty- requiring a refresh from the server.
public bool Dirty { get; set; }
Property Value
Pitch
The rotation around the Z axis, in radians.
public override float Pitch { get; set; }
Property Value
PitchInternal
Sets the pitch of the Entity Position. This may cause desync.
public float PitchInternal { set; }
Property Value
Roll
The rotation around the X axis, in radians.
public override float Roll { get; set; }
Property Value
RollInternal
Sets the roll of the Entity Position. This may cause desync.
public float RollInternal { set; }
Property Value
StanceInternal
Sets the stance of the Entity Position. This may cause desync.
public int StanceInternal { set; }
Property Value
X
The X position of the Entity.
public override double X { get; set; }
Property Value
XInternal
Internally sets the value of X. This may cause desync.
public double XInternal { set; }
Property Value
Y
The Y position of the Entity.
public override double Y { get; set; }
Property Value
YInternal
Internally sets the value of Y. This may cause desync.
public double YInternal { set; }
Property Value
Yaw
The rotation around the Y axis, in radians.
public override float Yaw { get; set; }
Property Value
YawInternal
Sets the yaw of the Entity Position. This may cause desync.
public float YawInternal { set; }
Property Value
Z
The Z position of the Entity.
public override double Z { get; set; }
Property Value
ZInternal
Internally sets the value of Z. This may cause desync.
public double ZInternal { set; }
Property Value
Methods
MarkClean()
Marks the position as clean- and not requiring a refresh from the server.
public void MarkClean()