頒獎成就

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(結束。)

參考