/// <summary>
 /// Initializes a new instance of the <see cref="UpdateEntityRequest" /> class.
 /// </summary>
 /// <param name="damage">The damage the entity will take.</param>
 /// <param name="inventory">The slots in the inventory of the entity to modify.</param>
 /// <param name="position">The position that the entity will be moved to.</param>
 /// <param name="rotation">The new rotation of the entity.</param>
 /// <param name="scale">The new scale of the entity.</param>
 /// <param name="velocity">The new speed of the entity.</param>
 /// <param name="world">The world that the entity will be moved to.</param>
 public UpdateEntityRequest(DamageRequest damage = default(DamageRequest), List <SlotRequest> inventory = default(List <SlotRequest>), Vector3d position = default(Vector3d), Vector3d rotation = default(Vector3d), Vector3d scale = default(Vector3d), Vector3d velocity = default(Vector3d), string world = default(string))
 {
     this.Damage    = damage;
     this.Inventory = inventory;
     this.Position  = position;
     this.Rotation  = rotation;
     this.Scale     = scale;
     this.Velocity  = velocity;
     this.World     = world;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdatePlayerRequest" /> class.
 /// </summary>
 /// <param name="damage">The damage the entity will take.</param>
 /// <param name="exhaustion">The exhaustion of the player.</param>
 /// <param name="experienceSinceLevel">The amount of experience gained since the last level.</param>
 /// <param name="foodLevel">The food level of the player.</param>
 /// <param name="gameMode">The game mode of the player.</param>
 /// <param name="health">The current amount of health the player has.</param>
 /// <param name="inventory">The slots in the inventory of the entity to modify.</param>
 /// <param name="level">The player level.</param>
 /// <param name="maxHealth">The maximum health of the player.</param>
 /// <param name="position">The position that the entity will be moved to.</param>
 /// <param name="rotation">The new rotation of the entity.</param>
 /// <param name="saturation">The saturation of the player.</param>
 /// <param name="scale">The new scale of the entity.</param>
 /// <param name="totalExperience">The total experience of the player.</param>
 /// <param name="velocity">The new speed of the entity.</param>
 /// <param name="world">The world that the entity will be moved to.</param>
 public UpdatePlayerRequest(DamageRequest damage = default(DamageRequest), double?exhaustion = default(double?), int?experienceSinceLevel = default(int?), int?foodLevel = default(int?), string gameMode = default(string), double?health = default(double?), List <SlotRequest> inventory = default(List <SlotRequest>), int?level = default(int?), double?maxHealth = default(double?), Vector3d position = default(Vector3d), Vector3d rotation = default(Vector3d), double?saturation = default(double?), Vector3d scale = default(Vector3d), int?totalExperience = default(int?), Vector3d velocity = default(Vector3d), string world = default(string))
 {
     this.Damage               = damage;
     this.Exhaustion           = exhaustion;
     this.ExperienceSinceLevel = experienceSinceLevel;
     this.FoodLevel            = foodLevel;
     this.GameMode             = gameMode;
     this.Health               = health;
     this.Inventory            = inventory;
     this.Level           = level;
     this.MaxHealth       = maxHealth;
     this.Position        = position;
     this.Rotation        = rotation;
     this.Saturation      = saturation;
     this.Scale           = scale;
     this.TotalExperience = totalExperience;
     this.Velocity        = velocity;
     this.World           = world;
 }