Open 305pence opened 4 years ago
@305pence Hello,
The problem seems to be related to the inner class.
Java denote the inner class with $ sign instead of .(dot), so all you have to do is
IMPORT org.bukkit.entity.EnderDragon$Phase
Let us know if it doesn't work.
@wysohn In that case, would the class be called Phase or EnderDragon$Phase in your code?
@gerzytet I believe it is just Phase
yeah, that seems to work
I'm reopening this as a low priority bug because requiring this internal notation for importing is inconsistent with java and the javadocs.
I'm especially suprised that no-one who uses sponge has complained yet. Sponge has inner classes everywhere
Basically, i'm having trouble with importing org.bukkit.entity.EnderDragon.Phase
i tried this code to summon an ender dragon and set it's phase so it doesn't just float there
and i got the error below