Class EmptyAdventure<S>

java.lang.Object
studio.mevera.imperat.adventure.EmptyAdventure<S>
All Implemented Interfaces:
AdventureProvider<S>

public class EmptyAdventure<S> extends Object implements AdventureProvider<S>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.audience.Audience
    audience(S sender)
    Obtains an Audience for the specified source.
    net.kyori.adventure.audience.Audience
    audience(studio.mevera.imperat.context.CommandSource source)
    Obtains an Audience for a given CommandSource instance.
    <SRC extends studio.mevera.imperat.context.CommandSource>
    AdventureHelpComponent<SRC>
    createHelpComponent(net.kyori.adventure.text.Component component)
     
    void
    send(S sender, net.kyori.adventure.text.ComponentLike component)
    Sends a message to the Audience derived from the specified source.
    void
    send(studio.mevera.imperat.context.CommandSource source, net.kyori.adventure.text.ComponentLike component)
    Sends a message to the Audience derived from the specified CommandSource instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface studio.mevera.imperat.adventure.AdventureProvider

    close
  • Constructor Details

    • EmptyAdventure

      public EmptyAdventure()
  • Method Details

    • audience

      public net.kyori.adventure.audience.Audience audience(S sender)
      Description copied from interface: AdventureProvider
      Obtains an Audience for the specified source.
      Specified by:
      audience in interface AdventureProvider<S>
      Parameters:
      sender - the source from which the Audience is derived
      Returns:
      the Audience corresponding to the given source
    • audience

      public net.kyori.adventure.audience.Audience audience(studio.mevera.imperat.context.CommandSource source)
      Description copied from interface: AdventureProvider
      Obtains an Audience for a given CommandSource instance. This method delegates to AdventureProvider.audience(Object) by retrieving the origin from the provided CommandSource.
      Specified by:
      audience in interface AdventureProvider<S>
      Parameters:
      source - the CommandSource instance from which the Audience is derived
      Returns:
      the Audience corresponding to the origin of the provided CommandSource
    • send

      public void send(S sender, net.kyori.adventure.text.ComponentLike component)
      Description copied from interface: AdventureProvider
      Sends a message to the Audience derived from the specified source.
      Specified by:
      send in interface AdventureProvider<S>
      Parameters:
      sender - the source from which the Audience is derived
      component - the message to be sent, represented by a ComponentLike instance
    • send

      public void send(studio.mevera.imperat.context.CommandSource source, net.kyori.adventure.text.ComponentLike component)
      Description copied from interface: AdventureProvider
      Sends a message to the Audience derived from the specified CommandSource instance. This method delegates to AdventureProvider.send(Object, ComponentLike) by retrieving the origin from the provided CommandSource.
      Specified by:
      send in interface AdventureProvider<S>
      Parameters:
      source - the CommandSource instance from which the Audience is derived
      component - the message to be sent, represented by a ComponentLike instance
    • createHelpComponent

      public <SRC extends studio.mevera.imperat.context.CommandSource> AdventureHelpComponent<SRC> createHelpComponent(net.kyori.adventure.text.Component component)
      Specified by:
      createHelpComponent in interface AdventureProvider<S>