Пример #1
0
  public static Reagent getPlayerReagentType(EntityPlayer player) {
    NBTTagCompound data = APISpellHelper.getPersistentDataTag(player);
    if (data.hasKey("BM:ReagentType")) {
      return ReagentRegistry.getReagentForKey(data.getString("BM:ReagentType"));
    }

    return null;
  }
Пример #2
0
 public static void setPlayerReagentType(EntityPlayer player, Reagent reagent) {
   setPlayerReagentType(player, ReagentRegistry.getKeyForReagent(reagent));
 }