Just cast the plugin object to the API instance. For example:
(This is just an example, you should, of course, check to ensure the plugin is loaded.)
public class ExamplePlugin extends JavaPlugin { private IPacketEntityAPI instance; public void onEnable() { instance = (IPacketEntityAPI) Bukkit.getPluginManager().getPlugin("PacketEntityAPI"); } }
There was an error while loading. Please reload this page.
Home ⋅ Javadocs
Getting Started
Obtaining an API Instance
Fake Entities:
Hitboxes:
Listeners:
Modifiers:
Packets: