Пример #1
0
  private void load(NBTTagCompound NBT) {
    NBTTagCompound tag = NBT.getCompoundTag(NBT_TAG);
    tiles.readFromNBT(tag);

    for (CrystalNetworkTile te : tiles.values()) {
      if (te instanceof TileEntityCrystalPylon) {
        TileEntityCrystalPylon tile = (TileEntityCrystalPylon) te;
        this.addPylon(tile);
      }
    }
    // ReikaJavaLibrary.pConsole(tiles+" from "+tag, Side.SERVER);
  }
 public Collection<TileEntityControlRod> getAllRods() {
   return Collections.unmodifiableCollection(controls.values());
 }