Example #1
0
 public void trackEntity(Entity entity, int i, int j, bool flag)
 {
     if (i > maxTrackingDistanceThreshold)
     {
         i = maxTrackingDistanceThreshold;
     }
     if (trackedEntityHashTable.containsItem(entity.entityId))
     {
         throw new IllegalStateException("Entity is already tracked!");
     }
     else
     {
         var entitytrackerentry = new EntityTrackerEntry(entity, i, j, flag);
         trackedEntitySet.add(entitytrackerentry);
         trackedEntityHashTable.addKey(entity.entityId, entitytrackerentry);
         entitytrackerentry.updatePlayerEntities(mcServer.worldMngr.playerEntities);
         return;
     }
 }
Example #2
0
 public override void obtainEntitySkin(Entity entity)
 {
     base.obtainEntitySkin(entity);
     field_20912_E.addKey(entity.entityId, entity);
 }