Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. boolean isPresent = false;
  2.        
  3.         for(int i = 0; i < list.tagCount(); i++){
  4.             ImbumentEnum iEnum = ImbumentEnum.valueOf(((NBTTagCompound) list.getCompoundTagAt(i)).getString("CrystalAlchemyImbumentID"));
  5.             if(iEnum == imbument.getType()){
  6.                 isPresent = true;
  7.             }
  8.         }
  9.        
  10.         if(isPresent){
  11.             NBTTagCompound compound = new NBTTagCompound();
  12.             compound.setString("CrystalAlchemyImbumentID", imbument.getType().name());
  13.             list.appendTag(compound);
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement