Class CommandSourceStackMixin
java.lang.Object
net.kyori.adventure.platform.fabric.impl.mixin.CommandSourceStackMixin
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience,net.kyori.adventure.audience.ForwardingAudience,net.kyori.adventure.audience.ForwardingAudience.Single,net.kyori.adventure.identity.Identified,AdventureCommandSourceStack,AdventureCommandSourceStackInternal,net.kyori.adventure.pointer.Pointered
public abstract class CommandSourceStackMixin
extends Object
implements AdventureCommandSourceStackInternal
The methods in this class should match the implementations of their Text-using counterparts in
CommandSourceStack.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.Single -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadventure$audience(net.kyori.adventure.audience.Audience wrapped, FabricServerAudiencesImpl controller) Set the audience to be delegated to.net.minecraft.commands.CommandSourceThe backing source for the command.@NotNull net.kyori.adventure.audience.Audienceaudience()@NotNull net.kyori.adventure.identity.Identityidentity()voidsendFailure(@NotNull net.kyori.adventure.text.Component text) Send an error message to the command source.voidsendSuccess(@NotNull net.kyori.adventure.text.Component text, boolean sendToOps) Send a result message to the command source.protected abstract voidshadow$broadcastToAdmins(net.minecraft.network.chat.Component text) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.kyori.adventure.audience.Audience
deleteMessage, openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showTitle, stopSoundMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single
audiences, clearTitle, deleteMessage, filterAudience, forEachAudience, get, getOrDefault, getOrDefaultFrom, hideBossBar, openBook, playSound, playSound, playSound, pointers, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, stopSound
-
Constructor Details
-
CommandSourceStackMixin
public CommandSourceStackMixin()
-
-
Method Details
-
shadow$broadcastToAdmins
protected abstract void shadow$broadcastToAdmins(net.minecraft.network.chat.Component text) -
sendSuccess
public void sendSuccess(@NotNull @NotNull net.kyori.adventure.text.Component text, boolean sendToOps) Description copied from interface:AdventureCommandSourceStackSend a result message to the command source.- Specified by:
sendSuccessin interfaceAdventureCommandSourceStack- Parameters:
text- The text to sendsendToOps- If this message should be sent to all ops listening
-
sendFailure
public void sendFailure(@NotNull @NotNull net.kyori.adventure.text.Component text) Description copied from interface:AdventureCommandSourceStackSend an error message to the command source.- Specified by:
sendFailurein interfaceAdventureCommandSourceStack- Parameters:
text- The error
-
audience
@NotNull public @NotNull net.kyori.adventure.audience.Audience audience()- Specified by:
audiencein interfaceAdventureCommandSourceStack- Specified by:
audiencein interfacenet.kyori.adventure.audience.ForwardingAudience.Single
-
identity
@NotNull public @NotNull net.kyori.adventure.identity.Identity identity()- Specified by:
identityin interfaceAdventureCommandSourceStack- Specified by:
identityin interfacenet.kyori.adventure.identity.Identified
-
adventure$audience
public AdventureCommandSourceStack adventure$audience(net.kyori.adventure.audience.Audience wrapped, FabricServerAudiencesImpl controller) Description copied from interface:AdventureCommandSourceStackInternalSet the audience to be delegated to.- Specified by:
adventure$audiencein interfaceAdventureCommandSourceStackInternal- Parameters:
wrapped- wrapped audiencecontroller- controller to render with- Returns:
- the wrapped audience
-
adventure$source
public net.minecraft.commands.CommandSource adventure$source()Description copied from interface:AdventureCommandSourceStackInternalThe backing source for the command.- Specified by:
adventure$sourcein interfaceAdventureCommandSourceStackInternal- Returns:
- backing source
-