Interface CapabilityRegistration

All Superinterfaces:
Registration

public interface CapabilityRegistration extends Registration
A capability an addon reports through PlatformService.registerCapability(org.bukkit.plugin.Plugin, java.lang.String, java.util.function.Supplier<dev.itsharshxd.zentrix.api.platform.CapabilityStatus>).

The registration ends when it is unregistered or when its owner is disabled, whichever comes first. Unregistering twice is harmless.

Since:
1.8.0
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    id()
    The registered capability id.

    Methods inherited from interface dev.itsharshxd.zentrix.api.addon.Registration

    isActive, owner, unregister
  • Method Details

    • id

      @NotNull @NotNull String id()
      The registered capability id.