Class ServerCommandSource

java.lang.Object
net.minecraft.server.command.ServerCommandSource
All Implemented Interfaces:
CommandSource, AbstractServerCommandSource<ServerCommandSource>

public class ServerCommandSource extends Object implements AbstractServerCommandSource<ServerCommandSource>, CommandSource
Represents a command source used on server side.
See Also:
Mappings:
Namespace Name
named net/minecraft/server/command/ServerCommandSource
intermediary net/minecraft/class_2168
official ep
  • Field Details

    • REQUIRES_PLAYER_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_PLAYER_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named REQUIRES_PLAYER_EXCEPTION Lnet/minecraft/server/command/ServerCommandSource;REQUIRES_PLAYER_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_9824 Lnet/minecraft/class_2168;field_9824:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official a Lep;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • REQUIRES_ENTITY_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_ENTITY_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named REQUIRES_ENTITY_EXCEPTION Lnet/minecraft/server/command/ServerCommandSource;REQUIRES_ENTITY_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_9827 Lnet/minecraft/class_2168;field_9827:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official b Lep;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • output

      private final CommandOutput output
      Mappings:
      Namespace Name Mixin selector
      named output Lnet/minecraft/server/command/ServerCommandSource;output:Lnet/minecraft/server/command/CommandOutput;
      intermediary field_9819 Lnet/minecraft/class_2168;field_9819:Lnet/minecraft/class_2165;
      official c Lep;c:Leo;
    • position

      private final Vec3d position
      Mappings:
      Namespace Name Mixin selector
      named position Lnet/minecraft/server/command/ServerCommandSource;position:Lnet/minecraft/util/math/Vec3d;
      intermediary field_9817 Lnet/minecraft/class_2168;field_9817:Lnet/minecraft/class_243;
      official d Lep;d:Levs;
    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/server/command/ServerCommandSource;world:Lnet/minecraft/server/world/ServerWorld;
      intermediary field_9828 Lnet/minecraft/class_2168;field_9828:Lnet/minecraft/class_3218;
      official e Lep;e:Larf;
    • level

      private final int level
      Mappings:
      Namespace Name Mixin selector
      named level Lnet/minecraft/server/command/ServerCommandSource;level:I
      intermediary field_9815 Lnet/minecraft/class_2168;field_9815:I
      official f Lep;f:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/server/command/ServerCommandSource;name:Ljava/lang/String;
      intermediary field_9826 Lnet/minecraft/class_2168;field_9826:Ljava/lang/String;
      official g Lep;g:Ljava/lang/String;
    • displayName

      private final Text displayName
      Mappings:
      Namespace Name Mixin selector
      named displayName Lnet/minecraft/server/command/ServerCommandSource;displayName:Lnet/minecraft/text/Text;
      intermediary field_9825 Lnet/minecraft/class_2168;field_9825:Lnet/minecraft/class_2561;
      official h Lep;h:Lxp;
    • server

      private final MinecraftServer server
      Mappings:
      Namespace Name Mixin selector
      named server Lnet/minecraft/server/command/ServerCommandSource;server:Lnet/minecraft/server/MinecraftServer;
      intermediary field_9818 Lnet/minecraft/class_2168;field_9818:Lnet/minecraft/server/MinecraftServer;
      official i Lep;i:Lnet/minecraft/server/MinecraftServer;
    • silent

      private final boolean silent
      Mappings:
      Namespace Name Mixin selector
      named silent Lnet/minecraft/server/command/ServerCommandSource;silent:Z
      intermediary field_9823 Lnet/minecraft/class_2168;field_9823:Z
      official j Lep;j:Z
    • entity

      @Nullable private final @Nullable Entity entity
      Mappings:
      Namespace Name Mixin selector
      named entity Lnet/minecraft/server/command/ServerCommandSource;entity:Lnet/minecraft/entity/Entity;
      intermediary field_9820 Lnet/minecraft/class_2168;field_9820:Lnet/minecraft/class_1297;
      official k Lep;k:Lbsv;
    • returnValueConsumer

      private final ReturnValueConsumer returnValueConsumer
      Mappings:
      Namespace Name Mixin selector
      named returnValueConsumer Lnet/minecraft/server/command/ServerCommandSource;returnValueConsumer:Lnet/minecraft/command/ReturnValueConsumer;
      intermediary field_47159 Lnet/minecraft/class_2168;field_47159:Lnet/minecraft/class_8935;
      official l Lep;l:Lem;
    • entityAnchor

      private final EntityAnchorArgumentType.EntityAnchor entityAnchor
      Mappings:
      Namespace Name Mixin selector
      named entityAnchor Lnet/minecraft/server/command/ServerCommandSource;entityAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
      intermediary field_9816 Lnet/minecraft/class_2168;field_9816:Lnet/minecraft/class_2183$class_2184;
      official m Lep;m:Lfb$a;
    • rotation

      private final Vec2f rotation
      Mappings:
      Namespace Name Mixin selector
      named rotation Lnet/minecraft/server/command/ServerCommandSource;rotation:Lnet/minecraft/util/math/Vec2f;
      intermediary field_9822 Lnet/minecraft/class_2168;field_9822:Lnet/minecraft/class_241;
      official n Lep;n:Levr;
    • signedArguments

      private final SignedCommandArguments signedArguments
      Mappings:
      Namespace Name Mixin selector
      named signedArguments Lnet/minecraft/server/command/ServerCommandSource;signedArguments:Lnet/minecraft/network/message/SignedCommandArguments;
      intermediary field_39183 Lnet/minecraft/class_2168;field_39183:Lnet/minecraft/class_7448;
      official o Lep;o:Len;
    • messageChainTaskQueue

      private final FutureQueue messageChainTaskQueue
      Mappings:
      Namespace Name Mixin selector
      named messageChainTaskQueue Lnet/minecraft/server/command/ServerCommandSource;messageChainTaskQueue:Lnet/minecraft/util/thread/FutureQueue;
      intermediary field_39834 Lnet/minecraft/class_2168;field_39834:Lnet/minecraft/class_7620;
      official p Lep;p:Lazw;
  • Constructor Details

    • ServerCommandSource

      public ServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/command/ServerCommandSource;<init>(Lnet/minecraft/server/command/CommandOutput;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec2f;Lnet/minecraft/server/world/ServerWorld;ILjava/lang/String;Lnet/minecraft/text/Text;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/entity/Entity;)V
      intermediary <init> Lnet/minecraft/class_2168;<init>(Lnet/minecraft/class_2165;Lnet/minecraft/class_243;Lnet/minecraft/class_241;Lnet/minecraft/class_3218;ILjava/lang/String;Lnet/minecraft/class_2561;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1297;)V
      official <init> Lep;<init>(Leo;Levs;Levr;Larf;ILjava/lang/String;Lxp;Lnet/minecraft/server/MinecraftServer;Lbsv;)V
    • ServerCommandSource

      protected ServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable @Nullable Entity entity, boolean silent, ReturnValueConsumer resultStorer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/server/command/ServerCommandSource;<init>(Lnet/minecraft/server/command/CommandOutput;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec2f;Lnet/minecraft/server/world/ServerWorld;ILjava/lang/String;Lnet/minecraft/text/Text;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/entity/Entity;ZLnet/minecraft/command/ReturnValueConsumer;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/network/message/SignedCommandArguments;Lnet/minecraft/util/thread/FutureQueue;)V
      intermediary <init> Lnet/minecraft/class_2168;<init>(Lnet/minecraft/class_2165;Lnet/minecraft/class_243;Lnet/minecraft/class_241;Lnet/minecraft/class_3218;ILjava/lang/String;Lnet/minecraft/class_2561;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1297;ZLnet/minecraft/class_8935;Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_7448;Lnet/minecraft/class_7620;)V
      official <init> Lep;<init>(Leo;Levs;Levr;Larf;ILjava/lang/String;Lxp;Lnet/minecraft/server/MinecraftServer;Lbsv;ZLem;Lfb$a;Len;Lazw;)V
  • Method Details

    • withOutput

      public ServerCommandSource withOutput(CommandOutput output)
      Mappings:
      Namespace Name Mixin selector
      named withOutput Lnet/minecraft/server/command/ServerCommandSource;withOutput(Lnet/minecraft/server/command/CommandOutput;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_36321 Lnet/minecraft/class_2168;method_36321(Lnet/minecraft/class_2165;)Lnet/minecraft/class_2168;
      official a Lep;a(Leo;)Lep;
    • withEntity

      public ServerCommandSource withEntity(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named withEntity Lnet/minecraft/server/command/ServerCommandSource;withEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9232 Lnet/minecraft/class_2168;method_9232(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2168;
      official a Lep;a(Lbsv;)Lep;
    • withPosition

      public ServerCommandSource withPosition(Vec3d position)
      Mappings:
      Namespace Name Mixin selector
      named withPosition Lnet/minecraft/server/command/ServerCommandSource;withPosition(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9208 Lnet/minecraft/class_2168;method_9208(Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;
      official a Lep;a(Levs;)Lep;
    • withRotation

      public ServerCommandSource withRotation(Vec2f rotation)
      Mappings:
      Namespace Name Mixin selector
      named withRotation Lnet/minecraft/server/command/ServerCommandSource;withRotation(Lnet/minecraft/util/math/Vec2f;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9216 Lnet/minecraft/class_2168;method_9216(Lnet/minecraft/class_241;)Lnet/minecraft/class_2168;
      official a Lep;a(Levr;)Lep;
    • withReturnValueConsumer

      public ServerCommandSource withReturnValueConsumer(ReturnValueConsumer returnValueConsumer)
      Specified by:
      withReturnValueConsumer in interface AbstractServerCommandSource<ServerCommandSource>
      Mappings:
      Namespace Name Mixin selector
      named withReturnValueConsumer Lnet/minecraft/server/command/ServerCommandSource;withReturnValueConsumer(Lnet/minecraft/command/ReturnValueConsumer;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9231 Lnet/minecraft/class_2168;method_9231(Lnet/minecraft/class_8935;)Lnet/minecraft/class_2168;
      official a Lep;a(Lem;)Lep;
    • mergeReturnValueConsumers

      public ServerCommandSource mergeReturnValueConsumers(ReturnValueConsumer returnValueConsumer, BinaryOperator<ReturnValueConsumer> merger)
      Mappings:
      Namespace Name Mixin selector
      named mergeReturnValueConsumers Lnet/minecraft/server/command/ServerCommandSource;mergeReturnValueConsumers(Lnet/minecraft/command/ReturnValueConsumer;Ljava/util/function/BinaryOperator;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9209 Lnet/minecraft/class_2168;method_9209(Lnet/minecraft/class_8935;Ljava/util/function/BinaryOperator;)Lnet/minecraft/class_2168;
      official a Lep;a(Lem;Ljava/util/function/BinaryOperator;)Lep;
    • withSilent

      public ServerCommandSource withSilent()
      Mappings:
      Namespace Name Mixin selector
      named withSilent Lnet/minecraft/server/command/ServerCommandSource;withSilent()Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9217 Lnet/minecraft/class_2168;method_9217()Lnet/minecraft/class_2168;
      official a Lep;a()Lep;
    • withLevel

      public ServerCommandSource withLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      named withLevel Lnet/minecraft/server/command/ServerCommandSource;withLevel(I)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9206 Lnet/minecraft/class_2168;method_9206(I)Lnet/minecraft/class_2168;
      official a Lep;a(I)Lep;
    • withMaxLevel

      public ServerCommandSource withMaxLevel(int level)
      Mappings:
      Namespace Name Mixin selector
      named withMaxLevel Lnet/minecraft/server/command/ServerCommandSource;withMaxLevel(I)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9230 Lnet/minecraft/class_2168;method_9230(I)Lnet/minecraft/class_2168;
      official b Lep;b(I)Lep;
    • withEntityAnchor

      Mappings:
      Namespace Name Mixin selector
      named withEntityAnchor Lnet/minecraft/server/command/ServerCommandSource;withEntityAnchor(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9218 Lnet/minecraft/class_2168;method_9218(Lnet/minecraft/class_2183$class_2184;)Lnet/minecraft/class_2168;
      official a Lep;a(Lfb$a;)Lep;
    • withWorld

      public ServerCommandSource withWorld(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      named withWorld Lnet/minecraft/server/command/ServerCommandSource;withWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9227 Lnet/minecraft/class_2168;method_9227(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;
      official a Lep;a(Larf;)Lep;
    • withLookingAt

      public ServerCommandSource withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor)
      Mappings:
      Namespace Name Mixin selector
      named withLookingAt Lnet/minecraft/server/command/ServerCommandSource;withLookingAt(Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9220 Lnet/minecraft/class_2168;method_9220(Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)Lnet/minecraft/class_2168;
      official a Lep;a(Lbsv;Lfb$a;)Lep;
    • withLookingAt

      public ServerCommandSource withLookingAt(Vec3d position)
      Mappings:
      Namespace Name Mixin selector
      named withLookingAt Lnet/minecraft/server/command/ServerCommandSource;withLookingAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_9221 Lnet/minecraft/class_2168;method_9221(Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;
      official b Lep;b(Levs;)Lep;
    • withSignedArguments

      public ServerCommandSource withSignedArguments(SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue)
      Mappings:
      Namespace Name Mixin selector
      named withSignedArguments Lnet/minecraft/server/command/ServerCommandSource;withSignedArguments(Lnet/minecraft/network/message/SignedCommandArguments;Lnet/minecraft/util/thread/FutureQueue;)Lnet/minecraft/server/command/ServerCommandSource;
      intermediary method_43735 Lnet/minecraft/class_2168;method_43735(Lnet/minecraft/class_7448;Lnet/minecraft/class_7620;)Lnet/minecraft/class_2168;
      official a Lep;a(Len;Lazw;)Lep;
    • getDisplayName

      public Text getDisplayName()
      Mappings:
      Namespace Name Mixin selector
      named getDisplayName Lnet/minecraft/server/command/ServerCommandSource;getDisplayName()Lnet/minecraft/text/Text;
      intermediary method_9223 Lnet/minecraft/class_2168;method_9223()Lnet/minecraft/class_2561;
      official b Lep;b()Lxp;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/server/command/ServerCommandSource;getName()Ljava/lang/String;
      intermediary method_9214 Lnet/minecraft/class_2168;method_9214()Ljava/lang/String;
      official c Lep;c()Ljava/lang/String;
    • hasPermissionLevel

      public boolean hasPermissionLevel(int level)
      Specified by:
      hasPermissionLevel in interface AbstractServerCommandSource<ServerCommandSource>
      Specified by:
      hasPermissionLevel in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named hasPermissionLevel Lnet/minecraft/server/command/AbstractServerCommandSource;hasPermissionLevel(I)Z
      intermediary method_9259 Lnet/minecraft/class_8839;method_9259(I)Z
      official c Ler;c(I)Z
    • getPosition

      public Vec3d getPosition()
      Mappings:
      Namespace Name Mixin selector
      named getPosition Lnet/minecraft/server/command/ServerCommandSource;getPosition()Lnet/minecraft/util/math/Vec3d;
      intermediary method_9222 Lnet/minecraft/class_2168;method_9222()Lnet/minecraft/class_243;
      official d Lep;d()Levs;
    • getWorld

      public ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      named getWorld Lnet/minecraft/server/command/ServerCommandSource;getWorld()Lnet/minecraft/server/world/ServerWorld;
      intermediary method_9225 Lnet/minecraft/class_2168;method_9225()Lnet/minecraft/class_3218;
      official e Lep;e()Larf;
    • getEntity

      @Nullable public @Nullable Entity getEntity()
      Gets the entity from this command source or returns null if this command source is not an entity.
      Mappings:
      Namespace Name Mixin selector
      named getEntity Lnet/minecraft/server/command/ServerCommandSource;getEntity()Lnet/minecraft/entity/Entity;
      intermediary method_9228 Lnet/minecraft/class_2168;method_9228()Lnet/minecraft/class_1297;
      official f Lep;f()Lbsv;
    • getEntityOrThrow

      public Entity getEntityOrThrow() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Gets the entity from this command source or throws a command syntax exception if this command source is not an entity.
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named getEntityOrThrow Lnet/minecraft/server/command/ServerCommandSource;getEntityOrThrow()Lnet/minecraft/entity/Entity;
      intermediary method_9229 Lnet/minecraft/class_2168;method_9229()Lnet/minecraft/class_1297;
      official g Lep;g()Lbsv;
    • getPlayerOrThrow

      public ServerPlayerEntity getPlayerOrThrow() throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Returns the player from this command source.
      Returns:
      the player from this command source
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException - if this command source is not a player
      Mappings:
      Namespace Name Mixin selector
      named getPlayerOrThrow Lnet/minecraft/server/command/ServerCommandSource;getPlayerOrThrow()Lnet/minecraft/server/network/ServerPlayerEntity;
      intermediary method_9207 Lnet/minecraft/class_2168;method_9207()Lnet/minecraft/class_3222;
      official h Lep;h()Larg;
    • getPlayer

      Returns the player from this command source, or null if the source is not a player.
      Returns:
      the player from this command source, or null if the source is not a player
      Mappings:
      Namespace Name Mixin selector
      named getPlayer Lnet/minecraft/server/command/ServerCommandSource;getPlayer()Lnet/minecraft/server/network/ServerPlayerEntity;
      intermediary method_44023 Lnet/minecraft/class_2168;method_44023()Lnet/minecraft/class_3222;
      official i Lep;i()Larg;
    • isExecutedByPlayer

      public boolean isExecutedByPlayer()
      Mappings:
      Namespace Name Mixin selector
      named isExecutedByPlayer Lnet/minecraft/server/command/ServerCommandSource;isExecutedByPlayer()Z
      intermediary method_43737 Lnet/minecraft/class_2168;method_43737()Z
      official j Lep;j()Z
    • getRotation

      public Vec2f getRotation()
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/server/command/ServerCommandSource;getRotation()Lnet/minecraft/util/math/Vec2f;
      intermediary method_9210 Lnet/minecraft/class_2168;method_9210()Lnet/minecraft/class_241;
      official k Lep;k()Levr;
    • getServer

      public MinecraftServer getServer()
      Mappings:
      Namespace Name Mixin selector
      named getServer Lnet/minecraft/server/command/ServerCommandSource;getServer()Lnet/minecraft/server/MinecraftServer;
      intermediary method_9211 Lnet/minecraft/class_2168;method_9211()Lnet/minecraft/server/MinecraftServer;
      official l Lep;l()Lnet/minecraft/server/MinecraftServer;
    • getEntityAnchor

      public EntityAnchorArgumentType.EntityAnchor getEntityAnchor()
      Mappings:
      Namespace Name Mixin selector
      named getEntityAnchor Lnet/minecraft/server/command/ServerCommandSource;getEntityAnchor()Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
      intermediary method_9219 Lnet/minecraft/class_2168;method_9219()Lnet/minecraft/class_2183$class_2184;
      official m Lep;m()Lfb$a;
    • getSignedArguments

      public SignedCommandArguments getSignedArguments()
      Mappings:
      Namespace Name Mixin selector
      named getSignedArguments Lnet/minecraft/server/command/ServerCommandSource;getSignedArguments()Lnet/minecraft/network/message/SignedCommandArguments;
      intermediary method_43738 Lnet/minecraft/class_2168;method_43738()Lnet/minecraft/class_7448;
      official n Lep;n()Len;
    • getMessageChainTaskQueue

      public FutureQueue getMessageChainTaskQueue()
      Mappings:
      Namespace Name Mixin selector
      named getMessageChainTaskQueue Lnet/minecraft/server/command/ServerCommandSource;getMessageChainTaskQueue()Lnet/minecraft/util/thread/FutureQueue;
      intermediary method_44909 Lnet/minecraft/class_2168;method_44909()Lnet/minecraft/class_7620;
      official o Lep;o()Lazw;
    • shouldFilterText

      public boolean shouldFilterText(ServerPlayerEntity recipient)
      Returns whether to filter text sent to recipient.

      This returns true if either of the command executor or the recipient requires text filtering, unless recipient executed the command, where false is always returned.

      Returns:
      whether to filter text sent to recipient
      Mappings:
      Namespace Name Mixin selector
      named shouldFilterText Lnet/minecraft/server/command/ServerCommandSource;shouldFilterText(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
      intermediary method_45067 Lnet/minecraft/class_2168;method_45067(Lnet/minecraft/class_3222;)Z
      official a Lep;a(Larg;)Z
    • sendChatMessage

      public void sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params)
      Sends message as a chat message to the command's executor, or to the server's log if the command is not executed by a player.
      Mappings:
      Namespace Name Mixin selector
      named sendChatMessage Lnet/minecraft/server/command/ServerCommandSource;sendChatMessage(Lnet/minecraft/network/message/SentMessage;ZLnet/minecraft/network/message/MessageType$Parameters;)V
      intermediary method_44749 Lnet/minecraft/class_2168;method_44749(Lnet/minecraft/class_7604;ZLnet/minecraft/class_2556$class_7602;)V
      official a Lep;a(Lye;ZLxl$a;)V
    • sendMessage

      public void sendMessage(Text message)
      Sends message as the feedback to the command's executor, or to the server's log if the command is not executed by a player.
      Mappings:
      Namespace Name Mixin selector
      named sendMessage Lnet/minecraft/server/command/ServerCommandSource;sendMessage(Lnet/minecraft/text/Text;)V
      intermediary method_45068 Lnet/minecraft/class_2168;method_45068(Lnet/minecraft/class_2561;)V
      official a Lep;a(Lxp;)V
    • sendFeedback

      public void sendFeedback(Supplier<Text> feedbackSupplier, boolean broadcastToOps)
      Mappings:
      Namespace Name Mixin selector
      named sendFeedback Lnet/minecraft/server/command/ServerCommandSource;sendFeedback(Ljava/util/function/Supplier;Z)V
      intermediary method_9226 Lnet/minecraft/class_2168;method_9226(Ljava/util/function/Supplier;Z)V
      official a Lep;a(Ljava/util/function/Supplier;Z)V
    • sendToOps

      private void sendToOps(Text message)
      Mappings:
      Namespace Name Mixin selector
      named sendToOps Lnet/minecraft/server/command/ServerCommandSource;sendToOps(Lnet/minecraft/text/Text;)V
      intermediary method_9212 Lnet/minecraft/class_2168;method_9212(Lnet/minecraft/class_2561;)V
      official c Lep;c(Lxp;)V
    • sendError

      public void sendError(Text message)
      Mappings:
      Namespace Name Mixin selector
      named sendError Lnet/minecraft/server/command/ServerCommandSource;sendError(Lnet/minecraft/text/Text;)V
      intermediary method_9213 Lnet/minecraft/class_2168;method_9213(Lnet/minecraft/class_2561;)V
      official b Lep;b(Lxp;)V
    • getReturnValueConsumer

      public ReturnValueConsumer getReturnValueConsumer()
      Specified by:
      getReturnValueConsumer in interface AbstractServerCommandSource<ServerCommandSource>
      Mappings:
      Namespace Name Mixin selector
      named getReturnValueConsumer Lnet/minecraft/server/command/AbstractServerCommandSource;getReturnValueConsumer()Lnet/minecraft/command/ReturnValueConsumer;
      intermediary method_54881 Lnet/minecraft/class_8839;method_54881()Lnet/minecraft/class_8935;
      official p Ler;p()Lem;
    • getPlayerNames

      public Collection<String> getPlayerNames()
      Specified by:
      getPlayerNames in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getPlayerNames Lnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;
      intermediary method_9262 Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;
      official q Leu;q()Ljava/util/Collection;
    • getTeamNames

      public Collection<String> getTeamNames()
      Specified by:
      getTeamNames in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getTeamNames Lnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;
      intermediary method_9267 Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;
      official r Leu;r()Ljava/util/Collection;
    • getSoundIds

      public Stream<Identifier> getSoundIds()
      Specified by:
      getSoundIds in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getSoundIds Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;
      intermediary method_9254 Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;
      official s Leu;s()Ljava/util/stream/Stream;
    • getRecipeIds

      public Stream<Identifier> getRecipeIds()
      Specified by:
      getRecipeIds in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getRecipeIds Lnet/minecraft/command/CommandSource;getRecipeIds()Ljava/util/stream/Stream;
      intermediary method_9273 Lnet/minecraft/class_2172;method_9273()Ljava/util/stream/Stream;
      official t Leu;t()Ljava/util/stream/Stream;
    • getCompletions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context)
      Specified by:
      getCompletions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getCompletions Lnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9261 Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      official a Leu;a(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
    • listIdSuggestions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listIdSuggestions(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context)
      Specified by:
      listIdSuggestions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named listIdSuggestions Lnet/minecraft/command/CommandSource;listIdSuggestions(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/command/CommandSource$SuggestedIdType;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_41213 Lnet/minecraft/class_2172;method_41213(Lnet/minecraft/class_5321;Lnet/minecraft/class_2172$class_7078;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      official a Leu;a(Lale;Leu$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
    • getWorldKeys

      public Set<RegistryKey<World>> getWorldKeys()
      Specified by:
      getWorldKeys in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getWorldKeys Lnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;
      intermediary method_29310 Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;
      official u Leu;u()Ljava/util/Set;
    • getRegistryManager

      public DynamicRegistryManager getRegistryManager()
      Specified by:
      getRegistryManager in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getRegistryManager Lnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
      intermediary method_30497 Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;
      official v Leu;v()Ljw;
    • getEnabledFeatures

      public FeatureSet getEnabledFeatures()
      Specified by:
      getEnabledFeatures in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      named getEnabledFeatures Lnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
      intermediary method_45549 Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;
      official w Leu;w()Lcpm;
    • getDispatcher

      public com.mojang.brigadier.CommandDispatcher<ServerCommandSource> getDispatcher()
      Specified by:
      getDispatcher in interface AbstractServerCommandSource<ServerCommandSource>
      Mappings:
      Namespace Name Mixin selector
      named getDispatcher Lnet/minecraft/server/command/AbstractServerCommandSource;getDispatcher()Lcom/mojang/brigadier/CommandDispatcher;
      intermediary method_54310 Lnet/minecraft/class_8839;method_54310()Lcom/mojang/brigadier/CommandDispatcher;
      official x Ler;x()Lcom/mojang/brigadier/CommandDispatcher;
    • handleException

      public void handleException(com.mojang.brigadier.exceptions.CommandExceptionType type, com.mojang.brigadier.Message message, boolean silent, @Nullable @Nullable Tracer tracer)
      Specified by:
      handleException in interface AbstractServerCommandSource<ServerCommandSource>
      Mappings:
      Namespace Name Mixin selector
      named handleException Lnet/minecraft/server/command/AbstractServerCommandSource;handleException(Lcom/mojang/brigadier/exceptions/CommandExceptionType;Lcom/mojang/brigadier/Message;ZLnet/minecraft/server/function/Tracer;)V
      intermediary method_54491 Lnet/minecraft/class_8839;method_54491(Lcom/mojang/brigadier/exceptions/CommandExceptionType;Lcom/mojang/brigadier/Message;ZLnet/minecraft/class_6346;)V
      official a Ler;a(Lcom/mojang/brigadier/exceptions/CommandExceptionType;Lcom/mojang/brigadier/Message;ZLhr;)V
    • isSilent

      public boolean isSilent()
      Specified by:
      isSilent in interface AbstractServerCommandSource<ServerCommandSource>
      Mappings:
      Namespace Name Mixin selector
      named isSilent Lnet/minecraft/server/command/AbstractServerCommandSource;isSilent()Z
      intermediary method_54882 Lnet/minecraft/class_8839;method_54882()Z
      official y Ler;y()Z