Package studio.mevera.imperat.adventure
Class EmptyAdventure<S>
java.lang.Object
studio.mevera.imperat.adventure.EmptyAdventure<S>
- All Implemented Interfaces:
AdventureProvider<S>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.audience.AudienceObtains anAudiencefor the specified source.net.kyori.adventure.audience.Audienceaudience(studio.mevera.imperat.context.Source source) Obtains anAudiencefor a givenSourceinstance.<SRC extends studio.mevera.imperat.context.Source>
AdventureHelpComponent<SRC>createHelpComponent(net.kyori.adventure.text.Component component) voidSends a message to theAudiencederived from the specified source.voidsend(studio.mevera.imperat.context.Source source, net.kyori.adventure.text.ComponentLike component) Sends a message to theAudiencederived from the specifiedSourceinstance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface studio.mevera.imperat.adventure.AdventureProvider
close
-
Constructor Details
-
EmptyAdventure
public EmptyAdventure()
-
-
Method Details
-
audience
Description copied from interface:AdventureProviderObtains anAudiencefor the specified source.- Specified by:
audiencein interfaceAdventureProvider<S>- Parameters:
sender- the source from which theAudienceis derived- Returns:
- the
Audiencecorresponding to the given source
-
audience
public net.kyori.adventure.audience.Audience audience(studio.mevera.imperat.context.Source source) Description copied from interface:AdventureProviderObtains anAudiencefor a givenSourceinstance. This method delegates toAdventureProvider.audience(Object)by retrieving the origin from the providedSource.- Specified by:
audiencein interfaceAdventureProvider<S>- Parameters:
source- theSourceinstance from which theAudienceis derived- Returns:
- the
Audiencecorresponding to the origin of the providedSource
-
send
Description copied from interface:AdventureProviderSends a message to theAudiencederived from the specified source.- Specified by:
sendin interfaceAdventureProvider<S>- Parameters:
sender- the source from which theAudienceis derivedcomponent- the message to be sent, represented by aComponentLikeinstance
-
send
public void send(studio.mevera.imperat.context.Source source, net.kyori.adventure.text.ComponentLike component) Description copied from interface:AdventureProviderSends a message to theAudiencederived from the specifiedSourceinstance. This method delegates toAdventureProvider.send(Object, ComponentLike)by retrieving the origin from the providedSource.- Specified by:
sendin interfaceAdventureProvider<S>- Parameters:
source- theSourceinstance from which theAudienceis derivedcomponent- the message to be sent, represented by aComponentLikeinstance
-
createHelpComponent
public <SRC extends studio.mevera.imperat.context.Source> AdventureHelpComponent<SRC> createHelpComponent(net.kyori.adventure.text.Component component) - Specified by:
createHelpComponentin interfaceAdventureProvider<S>
-