Class EventSubscription

java.lang.Object
net.mathias2246.buildmc.api.messageBus.EventSubscription
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.Keyed

public class EventSubscription extends Object implements org.bukkit.Keyed
  • Constructor Details

    • EventSubscription

      public EventSubscription(@NotNull @NotNull org.bukkit.NamespacedKey key, @NotNull @NotNull org.bukkit.NamespacedKey channelId, @NotNull @NotNull Set<SemVer> acceptedVersions, @NotNull @NotNull String subscriberId, @NotNull @NotNull EventHandler handler)
  • Method Details

    • getKey

      @Contract(pure=true) @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed
    • getChannelId

      @Contract(pure=true) @NotNull public @NotNull org.bukkit.NamespacedKey getChannelId()
    • getAcceptedVersions

      @NotNull public @NotNull Set<SemVer> getAcceptedVersions()
    • getSubscriberId

      @Contract(pure=true) @NotNull public @NotNull String getSubscriberId()
    • getHandler

      @NotNull public @NotNull EventHandler getHandler()