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

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?
主站蜘蛛池模板: 盘山县| 贵定县| 那曲县| 双辽市| 乌鲁木齐县| 平南县| 大石桥市| 安陆市| 隆昌县| 宜宾市| 嘉定区| 驻马店市| 通江县| 镇原县| 游戏| 高平市| 余姚市| 隆回县| 潜山县| 全南县| 项城市| 乐陵市| 海南省| 云梦县| 北辰区| 东乌珠穆沁旗| 建阳市| 游戏| 梁平县| 建瓯市| 阿拉善左旗| 探索| 沈丘县| 平安县| 洪江市| 灵武市| 吉水县| 民丰县| 铜鼓县| 赤峰市| 祁阳县|