- Building Minecraft Server Modifications(Second Edition)
- Cody M. Sommer
- 167字
- 2021-07-30 09:52:21
Understanding the Java documentation
Let's look at a method that is included in the World
class to see what information it provides us. Click on the link to view the createExplosion(Location loc, float power, boolean setFire)
method. You will be brought to a method description that is similar to the one shown in the following screenshot:

The screenshot explains each parameter and the return value for the method. This method requires that we pass three parameters to it, which is explained as follows:
- Where the explosion should take place
- How powerful the explosion should be
- Whether the explosion should cause the surrounding blocks to ignite in flames
If the returned value is void
, then the method will not send any information back to us. In this example, the method returns a boolean
value. On reading the documentation, you will learn that the returned value is whether or not the explosion actually occurred. If another plugin prevented the explosion from happening, then the createExplosion
method will return false
.
- SoapUI Cookbook
- Python數(shù)據(jù)分析基礎(chǔ)
- Learning Docker
- Instant Apache Stanbol
- Windows系統(tǒng)管理與服務(wù)配置
- JIRA 7 Administration Cookbook(Second Edition)
- Getting Started with Gulp
- HTML5從入門到精通 (第2版)
- HTML 5與CSS 3權(quán)威指南(第3版·上冊)
- Spring Boot+Vue全棧開發(fā)實戰(zhàn)
- Python 3.7從入門到精通(視頻教學(xué)版)
- JavaScript程序設(shè)計(第2版)
- 單片機原理及應(yīng)用技術(shù)
- 程序員的成長課
- 零基礎(chǔ)學(xué)SQL(升級版)