Example #1
0
        public void untrackEntity(Entity entity)
        {
            if (entity is EntityPlayerMP)
            {
                var entityplayermp = (EntityPlayerMP)entity;
                EntityTrackerEntry entitytrackerentry1;
                for (Iterator iterator = trackedEntitySet.iterator();
                     iterator.hasNext();
                     entitytrackerentry1.removeFromTrackedPlayers(entityplayermp))
                {
                    entitytrackerentry1 = (EntityTrackerEntry)iterator.next();
                }
            }
            var entitytrackerentry =
                (EntityTrackerEntry)trackedEntityHashTable.removeObject(entity.entityId);

            if (entitytrackerentry != null)
            {
                trackedEntitySet.remove(entitytrackerentry);
                entitytrackerentry.sendDestroyEntityPacketToTrackedPlayers();
            }
        }
Example #2
0
 public override void releaseEntitySkin(Entity entity)
 {
     base.releaseEntitySkin(entity);
     field_20912_E.removeObject(entity.entityId);
 }