- Building Minecraft Server Modifications
- Cody M. Sommer
- 169字
- 2021-08-04 10:09:51
Understanding the Java documentation
In case you are new to reading API 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, booleansetFire)
method. You will be brought to the method description 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, explained as follows:
- Where the explosion should take place
- How powerful the explosion should be
- Whether the explosion should cause 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 we 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 would return false
.
- 從零開始:數(shù)字圖像處理的編程基礎(chǔ)與應(yīng)用
- 簡單高效LATEX
- FreeSWITCH 1.6 Cookbook
- Apex Design Patterns
- 青少年P(guān)ython編程入門
- Linux Device Drivers Development
- ASP.NET Core 2 Fundamentals
- 計算機(jī)應(yīng)用基礎(chǔ)教程(Windows 7+Office 2010)
- Emgu CV Essentials
- Clean Code in C#
- Python函數(shù)式編程(第2版)
- Microsoft Dynamics GP 2013 Cookbook
- 例說FPGA:可直接用于工程項(xiàng)目的第一手經(jīng)驗(yàn)
- Unity 5 Game Optimization
- C語言編程魔法書:基于C11標(biāo)準(zhǔn)