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.Source source)
    Obtains an Audience for a given Source instance.
    <SRC extends studio.mevera.imperat.context.Source>
    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.Source source, net.kyori.adventure.text.ComponentLike component)
    Sends a message to the Audience derived from the specified Source 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.Source source)
      Description copied from interface: AdventureProvider
      Obtains an Audience for a given Source instance. This method delegates to AdventureProvider.audience(Object) by retrieving the origin from the provided Source.
      Specified by:
      audience in interface AdventureProvider<S>
      Parameters:
      source - the Source instance from which the Audience is derived
      Returns:
      the Audience corresponding to the origin of the provided Source
    • 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.Source source, net.kyori.adventure.text.ComponentLike component)
      Description copied from interface: AdventureProvider
      Sends a message to the Audience derived from the specified Source instance. This method delegates to AdventureProvider.send(Object, ComponentLike) by retrieving the origin from the provided Source.
      Specified by:
      send in interface AdventureProvider<S>
      Parameters:
      source - the Source 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.Source> AdventureHelpComponent<SRC> createHelpComponent(net.kyori.adventure.text.Component component)
      Specified by:
      createHelpComponent in interface AdventureProvider<S>