public void readFromNBT(final NBTTagCompound nbt){
  programs.clear();
  final NBTTagList pagesNbt=nbt.getTagList(TAG_PAGES,Constants.NBT.TAG_STRING);
  for (int index=0; index < pagesNbt.tagCount(); index++) {
    programs.add(Arrays.asList(PATTERN_LINES.split(pagesNbt.getStringTagAt(index))));
  }
  selectedProgram=nbt.getInteger(TAG_SELECTED);
  validateSelectedPage();
}

public void readFromNBT ( final NBTTagCompound nbt ) { programs . clear ( ) ; final NBTTagList pagesNbt = nbt . getTagList ( TAG_PAGES , Constants . NBT . TAG_STRING ) ; for ( int index = 0 ; index < pagesNbt . tagCount ( ) ; index ++ ) { programs . add ( Arrays . asList ( PATTERN_LINES . split ( pagesNbt . getStringTagAt ( index ) ) ) ) ; } selectedProgram = nbt . getInteger ( TAG_SELECTED ) ; validateSelectedPage ( ) ; }
load data from the specified nbt tag .
