private PotionData dataFromString(String string){
  PotionType type;
  boolean extended=false, upgraded=false;
  if (string.startsWith("minecraft:"))   string=string.replace("minecraft:","");
  if (string.startsWith("long_")) {
    string=string.replace("long_","");
    extended=true;
  }
 else   if (string.startsWith("strong_")) {
    string=string.replace("strong_","");
    upgraded=true;
  }
  type=PotionTypeTable.fromName(string);
  return new PotionData(type,extended,upgraded);
}

private PotionData dataFromString ( String string ) { PotionType type ; boolean extended = false , upgraded = false ; if ( string . startsWith ( "minecraft:" ) ) string = string . replace ( "minecraft:" , "" ) ; if ( string . startsWith ( "long_" ) ) { string = string . replace ( "long_" , "" ) ; extended = true ; } else if ( string . startsWith ( "strong_" ) ) { string = string . replace ( "strong_" , "" ) ; upgraded = true ; } type = PotionTypeTable . fromName ( string ) ; return new PotionData ( type , extended , upgraded ) ; }
converts a potion id string to the potiondata of this item meta .
