It is for a Minecraft plugin (though it's just to try to figure out how they work); thus, it's only for practice, in a sense. I can't figure out how to use the instance Explosive of the class Explosive of the package net.canarymod.api.entity. Any help on what I'm doing wrong or should be doing would be greatly appreciated. If it's of any concern, I'm using the CanaryMod API. Here's the code:
import net.canarymod.api.entity.Explosive;
public class main {
public static void main(String args[]){
Explosive explosion = new Explosive();
explosion.setPower(300);
explosion.setCanDamageWorld(false);
explosion.setCanDamageEntities(true);
System.out.println(explosion.canDamageWorld());
}
}