public void removeAllNonCreativeModeEntities() {
      for(int var1 = 0; var1 < this.width; ++var1) {
         for(int var2 = 0; var2 < this.depth; ++var2) {
            for(int var3 = 0; var3 < this.height; ++var3) {
               List var4 = this.entityGrid[(var3 * this.depth + var2) * this.width + var1];

               for(int var5 = 0; var5 < var4.size(); ++var5) {
                  if(!((Entity)var4.get(var5)).isCreativeModeAllowed()) {
                     var4.remove(var5--);
                  }
               }
            }
         }
      }

   }