Table of Contents

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

x double
y double
z double
heading float
pitch float

SyncedEntityPos(Vec3d)

public SyncedEntityPos(Vec3d position)

Parameters

position Vec3d

Fields

LastReceivedClientPosition

public long LastReceivedClientPosition

Field Value

long

Properties

Dirty

Marks the position as dirty- requiring a refresh from the server.

public bool Dirty { get; set; }

Property Value

bool

Pitch

The rotation around the Z axis, in radians.

public override float Pitch { get; set; }

Property Value

float

PitchInternal

Sets the pitch of the Entity Position. This may cause desync.

public float PitchInternal { set; }

Property Value

float

Roll

The rotation around the X axis, in radians.

public override float Roll { get; set; }

Property Value

float

RollInternal

Sets the roll of the Entity Position. This may cause desync.

public float RollInternal { set; }

Property Value

float

StanceInternal

Sets the stance of the Entity Position. This may cause desync.

public int StanceInternal { set; }

Property Value

int

X

The X position of the Entity.

public override double X { get; set; }

Property Value

double

XInternal

Internally sets the value of X. This may cause desync.

public double XInternal { set; }

Property Value

double

Y

The Y position of the Entity.

public override double Y { get; set; }

Property Value

double

YInternal

Internally sets the value of Y. This may cause desync.

public double YInternal { set; }

Property Value

double

Yaw

The rotation around the Y axis, in radians.

public override float Yaw { get; set; }

Property Value

float

YawInternal

Sets the yaw of the Entity Position. This may cause desync.

public float YawInternal { set; }

Property Value

float

Z

The Z position of the Entity.

public override double Z { get; set; }

Property Value

double

ZInternal

Internally sets the value of Z. This may cause desync.

public double ZInternal { set; }

Property Value

double

Methods

MarkClean()

Marks the position as clean- and not requiring a refresh from the server.

public void MarkClean()