Пример #1
0
 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);
 }
Пример #2
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);
            }
        }
Пример #3
0
 public FallingGravel(WorldManager world, Location pos)
     : base(world, pos)
 {
     Type = Net.Packets.AddObjectVehiclePacket.ObjectType.FallingGravel;
     BlockId = (byte) BlockData.Blocks.Gravel;
 }
Пример #4
0
 private void InitializePosition()
 {
     World = Server.GetDefaultWorld();
     Position = new Location(
         World.Spawn.X,
         World.Spawn.Y + 1,
         World.Spawn.Z);
 }
Пример #5
0
 public void InitializePosition()
 {
     World = Server.GetDefaultWorld();
     Position = new Location(
         World.Spawn.WorldX,
         World.Spawn.WorldY + EyeGroundOffset,
         World.Spawn.WorldZ);
 }