You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To get started with using the Virtual Furnace API, we're going to create a new instance of this.
It's pretty easy.
Here is a simple example:
publicclassTesterPluginextendsJavaPlugin {
// Create a instance of the APIprivateVirtualFurnaceAPIvirtualFurnaceAPI;
@OverridepublicvoidonEnable() {
// Instantiate that instance of the API in your plugin's onEnable methodthis.virtualFurnaceAPI = newVirtualFurnaceAPI(this);
}
// Optionally create a getter, if we wish to use the API elsewhere in your pluginpublicVirtualFurnaceAPIgetVirtualFurnaceAPI() {
returnvirtualFurnaceAPI;
}
}