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