Exemplo n.º 1
0
		public virtual void SendRemove(Player player)
		{
			var message = McpeMobEffect.CreateObject();
			message.entityId = EntityManager.EntityIdSelf;
			message.eventId = 3;
			message.effectId = (int) EffectId;
			player.SendPackage(message);
		}
Exemplo n.º 2
0
        public virtual void SendRemove(Player player)
        {
            var message = McpeMobEffect.CreateObject();

            message.entityId = 0;
            message.eventId  = 3;
            message.effectId = (byte)EffectId;
            player.SendPackage(message);
        }
Exemplo n.º 3
0
        private static void OnMcpeMobEffect(Package message)
        {
            McpeMobEffect msg = (McpeMobEffect)message;

            Log.DebugFormat("operation: {0}", msg.eventId);
            Log.DebugFormat("entity id: {0}", msg.entityId);
            Log.DebugFormat("effectId: {0}", msg.effectId);
            Log.DebugFormat("amplifier: {0}", msg.amplifier);
            Log.DebugFormat("duration: {0}", msg.duration);
            Log.DebugFormat("particles: {0}", msg.particles);
        }
Exemplo n.º 4
0
		public virtual void SendUpdate(Player player)
		{
			var message = McpeMobEffect.CreateObject();
			message.entityId = EntityManager.EntityIdSelf;
			message.eventId = 2;
			message.effectId = (int) EffectId;
			message.duration = Duration;
			message.amplifier = Level;
			message.particles = Particles;
			player.SendPackage(message);
		}
Exemplo n.º 5
0
        public virtual void SendUpdate(Player player)
        {
            var message = McpeMobEffect.CreateObject();

            message.entityId  = 0;
            message.eventId   = 2;
            message.effectId  = (byte)EffectId;
            message.duration  = Duration;
            message.amplifier = (byte)Level;
            message.particles = (byte)(Particles ? 1 : 0);
            player.SendPackage(message);
        }
Exemplo n.º 6
0
        public virtual void SendAdd(Player player)
        {
            var message = McpeMobEffect.CreateObject();

            message.runtimeEntityId = EntityManager.EntityIdSelf;
            message.eventId         = 1;
            message.effectId        = (int)EffectId;
            message.duration        = Duration;
            message.amplifier       = Level;
            message.particles       = Particles;
            player.SendPackage(message);

            player.BroadcastSetEntityData();
        }
Exemplo n.º 7
0
        public void SendRemove(Player player)
        {
            {
                var message = McpeMobEffect.CreateObject();
                message.entityId = 0;
                message.eventId  = 3;
                message.effectId = (byte)EffectId;
                player.SendPackage(message, true);
            }

            {
                var message = McpeMobEffect.CreateObject();
                message.entityId = player.EntityId;
                message.eventId  = 3;
                message.effectId = (byte)EffectId;
                player.Level.RelayBroadcast(player, message, true);
            }
        }
Exemplo n.º 8
0
        public void SendUpdate(Player player)
        {
            {
                var message = McpeMobEffect.CreateObject();
                message.entityId  = 0;
                message.eventId   = 2;
                message.effectId  = (byte)EffectId;
                message.duration  = 20 * Duration;
                message.amplifier = (byte)Level;
                message.particles = (byte)(Particles ? 1 : 0);
                player.SendPackage(message, true);
            }

            {
                var message = McpeMobEffect.CreateObject();
                message.entityId  = player.EntityId;
                message.eventId   = 2;
                message.effectId  = (byte)EffectId;
                message.duration  = 20 * Duration;
                message.amplifier = (byte)Level;
                message.particles = (byte)(Particles ? 1 : 0);
                player.Level.RelayBroadcast(player, message, true);
            }
        }
Exemplo n.º 9
0
 public virtual void HandleMcpeMobEffect(McpeMobEffect message)
 {
 }
 public abstract void HandleMcpeMobEffect(McpeMobEffect message);
Exemplo n.º 11
0
 public override void HandleMcpeMobEffect(McpeMobEffect message)
 {
 }
Exemplo n.º 12
0
 public override void HandleMcpeMobEffect(McpeMobEffect message)
 {
     UnhandledPackage(message);
 }