官术网_书友最值得收藏!

Exploring Bukkit API

Now that you are familiar with the Bukkit API documentation, I advise you to look through more of it on your own. You will find interesting methods, many of which will spark ideas for cool plugins that you may want to make. Take note that there may be additional links to view more methods for an object. For example, a player is a type of entity, therefore you can call any entity method on a player object. This inheritance is shown after the following method list:

If you are ever going to try and think up an idea for a plugin, browsing through the following websites is sure to give you some ideas. I suggest reading the class pages listed as follows as they will be classes that you will frequently use in your future plugins:

The following are a few challenges to guide you while exploring the Bukkit API on your own and becoming familiar with it:

  • Which method would you call to check what time it is in a world?
  • Which methods would you call to get the block that is at x:20 y:64 z:14 in the world that is named "world"?
  • Which methods would you call to send a message to the player whose name is Steve?
  • Which methods would you call to check if the material of a block is flammable?
  • Which method would you call to check if a player has any diamonds in their inventory?
  • Which methods would you call to check if a player is holding an item that is edible?
主站蜘蛛池模板: 泰来县| 石河子市| 蕉岭县| 城步| 柳州市| 修水县| 航空| 井研县| 崇阳县| 海宁市| 大宁县| 安仁县| 江城| 清苑县| 洪江市| 海原县| 阜城县| 昌乐县| 个旧市| 长岭县| 贺州市| 福海县| 津南区| 祁东县| 宁夏| 台中市| 嵊泗县| 蓬溪县| 浦北县| 霍山县| 苍梧县| 万盛区| 融水| 石家庄市| 彭山县| 囊谦县| 永泰县| 湾仔区| 昌黎县| 泸溪县| 顺昌县|