Little_K小K
如题=Bukkit里好像没有player.hunger
这个东西



q513902026
Player
  float getExhaustion()
   Gets the players current exhaustion level.
Exhaustion controls how fast the food level drops. While you have a certain amount of exhaustion, your saturation will drop to zero, and then your food will drop to zero.

Returns:
Exhaustion level

107874017
本帖最后由 107874017 于 2016-4-6 21:53 编辑

getFoodLevel()
就是这货了XD
其实楼上那个也可以x
不过我习惯这个

Little_K小K
q513902026 发表于 2016-4-5 17:22
Player
  float getExhaustion()
   Gets the players current exhaustion level.

谢谢=-=

Little_K小K
107874017 发表于 2016-4-6 21:49
getFoodLevel()
就是这货了XD
其实楼上那个也可以x

嗯谢谢=-=

第一页 上一页 下一页 最后一页