颁奖成就

Player player;     //The player you want to award your achievement with
Achievement achievement;     //The achievement you want to award your player

player.awardAchievement(achievement);    //Awarding the achievement

检查玩家是否有成就:

Player player;
Achievement achievement;
boolean hasAchievement = player.hasAchievement(achievement);

该代码将奖励成就和任何父母成就。

可能的成就是:

  • ACQUIRE_IRON(获取硬件)
  • BAKE_CAKE(谎言)
  • BOOKCASE(图书馆员)
  • BREED_COW(重新种群)
  • BREW_POTION(当地啤酒厂)
  • BUILD_BETTER_PICKAXE(获得升级)
  • BUILD_FURNACE(热门话题)
  • BUILD_HOE(农场时间!)
  • BUILD_PICKAXE(挖掘时间!)
  • BUILD_SWORD(罢工时间!)
  • BUILD_WORKBENCH(基准测试)
  • COOK_FISH(美味鱼)
  • DIAMONDS_TO_YOU(钻石给你!)
  • 附魔(附魔)
  • END_PORTAL(结束?)
  • EXPLORE_ALL_BIOMES(冒险时间)
  • FLY_PIG(猪飞时)
  • FULL_BEACON(Beaconator)
  • GET_BLAZE_ROD(进入火灾)
  • GET_DIAMONDS(DIAMONDS!)
  • GHAST_RETURN(返回发件人)
  • KILL_COW(牛自卸车)
  • KILL_ENEMY(怪物猎人)
  • KILL_WITHER(起点)
  • MAKE_BREAD(Toast)
  • MINE_WOOD(木材加工)
  • NETHER_PORTAL(我们需要更深入)
  • ON_A_RAIL(在轨道上)
  • OPEN_INVENTORY(盘点)
  • OVERKILL(Overkill)
  • 超过(动力不足)
  • SNIPE_SKELETON(狙击手决斗)
  • SPAWN_WITHER(起点?)
  • THE_END(结束。)

参考