コード例 #1
0
 public virtual void OnDeath(net.minecraft.src.Entity entity)
 {
     if (scoreValue >= 0 && entity != null)
     {
         entity.AddToPlayerScore(this, scoreValue);
     }
     if (entity != null)
     {
         entity.UpdateKillStatistic(this);
     }
     unused_flag = true;
     if (!worldObj.singleplayerWorld)
     {
         DropFewItems();
     }
     worldObj.SendTrackedEntityStatusUpdatePacket(this, unchecked ((byte)3));
 }