public FallingSand(WorldManager world, Location pos) : base(world, pos) { Type = Net.Packets.AddObjectVehiclePacket.ObjectType.FallingSand; BlockId = (byte) BlockData.Blocks.Sand; Velocity = new Vector3(0, -0.4D, 0); }
protected BlockBasePhysics(WorldManager world, Location pos) { World = world; Position = pos; EntityId = world.Server.AllocateEntity(); CreateEntityPacket entity = new CreateEntityPacket { EntityId = EntityId }; foreach (var nearbyPlayer in World.Server.GetNearbyPlayers(World, new AbsWorldCoords(Position.X, Position.Y, Position.Z))) { nearbyPlayer.SendPacket(entity); } }
public FallingGravel(WorldManager world, Location pos) : base(world, pos) { Type = Net.Packets.AddObjectVehiclePacket.ObjectType.FallingGravel; BlockId = (byte) BlockData.Blocks.Gravel; }
private void InitializePosition() { World = Server.GetDefaultWorld(); Position = new Location( World.Spawn.X, World.Spawn.Y + 1, World.Spawn.Z); }
public void InitializePosition() { World = Server.GetDefaultWorld(); Position = new Location( World.Spawn.WorldX, World.Spawn.WorldY + EyeGroundOffset, World.Spawn.WorldZ); }