- Building Minecraft Server Modifications
- Cody M. Sommer
- 322字
- 2021-08-04 10:09:52
Creating a new project
Once NetBeans is installed, open it for the first time and you will see the start page. You can exit the start page as it's of no importance to you. Open the File menu and click New Project.... We want to create a New Java Application which is selected by default, so simply click on Next. We must now name our first project. It is a good idea to avoid using spaces within a name. Let's name this project MyFirstBukkitPlugin
. Unless you want to store your project in another location you can leave the default value of Project Location. Be sure that Create Main Class is checked. The main class is where we will put the code that is needed to enable our plugin. For this field you must determine the package of your project. This usually involves your website's domain name in reverse order. For example, Bukkit uses org.bukkit
and I use com.codisimus
. Assuming you don't have your own domain name, you can use your email address, for example com.gmail.username
. You want to use something that will be unique. If two plugins were to have the same package then it might cause collisions in class names, and CraftBukkit will have no way to know which class you are referring to. Using an email address or a domain name that you own is a good way to ensure that other developers don't use the same package. For this reason, you should exclude bukkit or minecraft from your package name. The package should also be in lowercase as given in the previous examples. Once you have a package, you need to name your main class. To avoid confusion, most Bukkit plugin developers use the project name as the main class name. The name of the main class should start with a capital letter. The following screenshot is an example of how your forms should look before clicking on Finish:

- Google Flutter Mobile Development Quick Start Guide
- C++程序設(shè)計(jì)(第3版)
- Python數(shù)據(jù)可視化:基于Bokeh的可視化繪圖
- C# Programming Cookbook
- Learning Apache Mahout Classification
- Building an RPG with Unity 2018
- Visual Basic程序設(shè)計(jì)(第三版)
- Swift語言實(shí)戰(zhàn)晉級
- Fastdata Processing with Spark
- 基于GPU加速的計(jì)算機(jī)視覺編程:使用OpenCV和CUDA實(shí)時(shí)處理復(fù)雜圖像數(shù)據(jù)
- Visual C++開發(fā)寶典
- Learning Puppet
- 中小企業(yè)網(wǎng)站建設(shè)與管理(靜態(tài)篇)
- C語言開發(fā)寶典
- Python GUI設(shè)計(jì):tkinter菜鳥編程