Java Reference
In-Depth Information
APPENDIX 2
How to Read the Canary Documentation
Many times you'll need to read the Canary documentation directly to find out
how to do something in the Minecraft world involving a Block , a Player , an Ocelot ,
a Cow , a Creeper , or whatever. You need to find out what classes to use and
what functions they offer. The Canary documentation lists this information
for you, and we'll take a quick look here at how to find it.
Canary JavaDoc Documentation
The Canary JavaDoc documentation is centered on the system's classes,
listed within their packages. Here you'll find the following:
•The package name, which is what you use in the import statement. 1
•The class name, which is what you use to declare variables and create
objects with new . 2
•The functions (methods) in the class that you can run with () and
parameters. 3
•Parent classes or interfaces that it uses, which will include additional
functions you can call. 4
Point your browser to the Canary documentation, and all the hidden treasures
of Canary are yours! 5 Ah, but what does all this stuff mean? And where is
everything?
1. Chapter 2, Add an Editor and Java , on page 15 , and Appendix 7, Common Imports , on
page 253 .
2. Chapter 4, Plugins Have Variables, Functions, and Keywords , on page 43 , and Chapter
5, Plugins Have Objects , on page 67 .
3. Chapter 7, Use Piles of Variables: Arrays , on page 89 .
4. Chapter 5, Plugins Have Objects , on page 67 .
5. https://ci.visualillusionsent.net/job/CanaryLib/javadoc
 
 
 
Search WWH ::




Custom Search