Package net.minecraft.server.command
Class ServerCommandSource
java.lang.Object
net.minecraft.server.command.ServerCommandSource
- All Implemented Interfaces:
- CommandSource
Represents a command source used on server side.
- See Also:
- Mappings:
- Namespace - Name - official - ds- intermediary - net/minecraft/class_2168- named - net/minecraft/server/command/ServerCommandSource
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.command.CommandSourceCommandSource.RelativePosition, CommandSource.SuggestedIdType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Textprivate final EntityAnchorArgumentType.EntityAnchorprivate final intprivate final FutureQueueprivate final Stringprivate final CommandOutputprivate final Vec3dstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate final @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource>private final IntConsumerprivate final Vec2fprivate final MinecraftServerprivate final SignedCommandArgumentsprivate final booleanprivate final ServerWorld
- 
Constructor SummaryConstructorsModifierConstructorDescriptionServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) protectedServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue, IntConsumer returnValueConsumer) 
- 
Method SummaryModifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>getCompletions(com.mojang.brigadier.context.CommandContext<?> context) Gets the entity from this command source or returns null if this command source is not an entity.Gets the entity from this command source or throws a command syntax exception if this command source is not an entity.getName()Returns the player from this command source, ornullif the source is not a player.Returns the player from this command source.getWorld()booleanhasPermissionLevel(int level) booleanCompletableFuture<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) mergeConsumers(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> merger) voidonCommandComplete(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean success, int result) voidsendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sendsmessageas a chat message to the command's executor, or to the server's log if the command is not executed by a player.voidvoidsendFeedback(Supplier<Text> feedbackSupplier, boolean broadcastToOps) voidsendMessage(Text message) Sendsmessageas the feedback to the command's executor, or to the server's log if the command is not executed by a player.private voidbooleanshouldFilterText(ServerPlayerEntity recipient) Returns whether to filter text sent torecipient.withConsumer(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer) withEntity(Entity entity) withLevel(int level) withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) withLookingAt(Vec3d position) withMaxLevel(int level) withMessageChainTaskQueue(FutureQueue messageChainTaskQueue) withOutput(CommandOutput output) withPosition(Vec3d position) withReturnValueConsumer(IntConsumer returnValueConsumer) withRotation(Vec2f rotation) withSignedArguments(SignedCommandArguments signedArguments) withWorld(ServerWorld world) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.CommandSourcegetBlockPositionSuggestions, getChatSuggestions, getEntitySuggestions, getPositionSuggestions, suggestIdentifiers
- 
Field Details- 
REQUIRES_PLAYER_EXCEPTIONpublic static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_PLAYER_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- intermediary - field_9824- Lnet/minecraft/class_2168;field_9824:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- named - REQUIRES_PLAYER_EXCEPTION- Lnet/minecraft/server/command/ServerCommandSource;REQUIRES_PLAYER_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 
- 
REQUIRES_ENTITY_EXCEPTIONpublic static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_ENTITY_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - official - b- Lds;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- intermediary - field_9827- Lnet/minecraft/class_2168;field_9827:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- named - REQUIRES_ENTITY_EXCEPTION- Lnet/minecraft/server/command/ServerCommandSource;REQUIRES_ENTITY_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 
- 
output- Mappings:
- Namespace - Name - Mixin selector - official - c- Lds;c:Ldr;- intermediary - field_9819- Lnet/minecraft/class_2168;field_9819:Lnet/minecraft/class_2165;- named - output- Lnet/minecraft/server/command/ServerCommandSource;output:Lnet/minecraft/server/command/CommandOutput;
 
- 
position- Mappings:
- Namespace - Name - Mixin selector - official - d- Lds;d:Leei;- intermediary - field_9817- Lnet/minecraft/class_2168;field_9817:Lnet/minecraft/class_243;- named - position- Lnet/minecraft/server/command/ServerCommandSource;position:Lnet/minecraft/util/math/Vec3d;
 
- 
world- Mappings:
- Namespace - Name - Mixin selector - official - e- Lds;e:Laif;- intermediary - field_9828- Lnet/minecraft/class_2168;field_9828:Lnet/minecraft/class_3218;- named - world- Lnet/minecraft/server/command/ServerCommandSource;world:Lnet/minecraft/server/world/ServerWorld;
 
- 
levelprivate final int level- Mappings:
- Namespace - Name - Mixin selector - official - f- Lds;f:I- intermediary - field_9815- Lnet/minecraft/class_2168;field_9815:I- named - level- Lnet/minecraft/server/command/ServerCommandSource;level:I
 
- 
name- Mappings:
- Namespace - Name - Mixin selector - official - g- Lds;g:Ljava/lang/String;- intermediary - field_9826- Lnet/minecraft/class_2168;field_9826:Ljava/lang/String;- named - name- Lnet/minecraft/server/command/ServerCommandSource;name:Ljava/lang/String;
 
- 
displayName- Mappings:
- Namespace - Name - Mixin selector - official - h- Lds;h:Lsw;- intermediary - field_9825- Lnet/minecraft/class_2168;field_9825:Lnet/minecraft/class_2561;- named - displayName- Lnet/minecraft/server/command/ServerCommandSource;displayName:Lnet/minecraft/text/Text;
 
- 
server- Mappings:
- Namespace - Name - Mixin selector - official - i- Lds;i:Lnet/minecraft/server/MinecraftServer;- intermediary - field_9818- Lnet/minecraft/class_2168;field_9818:Lnet/minecraft/server/MinecraftServer;- named - server- Lnet/minecraft/server/command/ServerCommandSource;server:Lnet/minecraft/server/MinecraftServer;
 
- 
silentprivate final boolean silent- Mappings:
- Namespace - Name - Mixin selector - official - j- Lds;j:Z- intermediary - field_9823- Lnet/minecraft/class_2168;field_9823:Z- named - silent- Lnet/minecraft/server/command/ServerCommandSource;silent:Z
 
- 
entity- Mappings:
- Namespace - Name - Mixin selector - official - k- Lds;k:Lbfj;- intermediary - field_9820- Lnet/minecraft/class_2168;field_9820:Lnet/minecraft/class_1297;- named - entity- Lnet/minecraft/server/command/ServerCommandSource;entity:Lnet/minecraft/entity/Entity;
 
- 
resultConsumer@Nullable private final @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> resultConsumer- Mappings:
- Namespace - Name - Mixin selector - official - l- Lds;l:Lcom/mojang/brigadier/ResultConsumer;- intermediary - field_9821- Lnet/minecraft/class_2168;field_9821:Lcom/mojang/brigadier/ResultConsumer;- named - resultConsumer- Lnet/minecraft/server/command/ServerCommandSource;resultConsumer:Lcom/mojang/brigadier/ResultConsumer;
 
- 
entityAnchor- Mappings:
- Namespace - Name - Mixin selector - official - m- Lds;m:Leb$a;- intermediary - field_9816- Lnet/minecraft/class_2168;field_9816:Lnet/minecraft/class_2183$class_2184;- named - entityAnchor- Lnet/minecraft/server/command/ServerCommandSource;entityAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
 
- 
rotation- Mappings:
- Namespace - Name - Mixin selector - official - n- Lds;n:Leeh;- intermediary - field_9822- Lnet/minecraft/class_2168;field_9822:Lnet/minecraft/class_241;- named - rotation- Lnet/minecraft/server/command/ServerCommandSource;rotation:Lnet/minecraft/util/math/Vec2f;
 
- 
signedArguments- Mappings:
- Namespace - Name - Mixin selector - official - o- Lds;o:Ldq;- intermediary - field_39183- Lnet/minecraft/class_2168;field_39183:Lnet/minecraft/class_7448;- named - signedArguments- Lnet/minecraft/server/command/ServerCommandSource;signedArguments:Lnet/minecraft/network/message/SignedCommandArguments;
 
- 
messageChainTaskQueue- Mappings:
- Namespace - Name - Mixin selector - official - p- Lds;p:Lapt;- intermediary - field_39834- Lnet/minecraft/class_2168;field_39834:Lnet/minecraft/class_7620;- named - messageChainTaskQueue- Lnet/minecraft/server/command/ServerCommandSource;messageChainTaskQueue:Lnet/minecraft/util/thread/FutureQueue;
 
- 
returnValueConsumer- Mappings:
- Namespace - Name - Mixin selector - official - q- Lds;q:Ljava/util/function/IntConsumer;- intermediary - field_44647- Lnet/minecraft/class_2168;field_44647:Ljava/util/function/IntConsumer;- named - returnValueConsumer- Lnet/minecraft/server/command/ServerCommandSource;returnValueConsumer:Ljava/util/function/IntConsumer;
 
 
- 
- 
Constructor Details- 
ServerCommandSourcepublic 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 - official - <init>- Lds;<init>(Ldr;Leei;Leeh;Laif;ILjava/lang/String;Lsw;Lnet/minecraft/server/MinecraftServer;Lbfj;)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- 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
 
- 
ServerCommandSourceprotected ServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable @Nullable Entity entity, boolean silent, @Nullable @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue, IntConsumer returnValueConsumer) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lds;<init>(Ldr;Leei;Leeh;Laif;ILjava/lang/String;Lsw;Lnet/minecraft/server/MinecraftServer;Lbfj;ZLcom/mojang/brigadier/ResultConsumer;Leb$a;Ldq;Lapt;Ljava/util/function/IntConsumer;)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;ZLcom/mojang/brigadier/ResultConsumer;Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_7448;Lnet/minecraft/class_7620;Ljava/util/function/IntConsumer;)V- 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;ZLcom/mojang/brigadier/ResultConsumer;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/network/message/SignedCommandArguments;Lnet/minecraft/util/thread/FutureQueue;Ljava/util/function/IntConsumer;)V
 
 
- 
- 
Method Details- 
withOutput- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Ldr;)Lds;- intermediary - method_36321- Lnet/minecraft/class_2168;method_36321(Lnet/minecraft/class_2165;)Lnet/minecraft/class_2168;- named - withOutput- Lnet/minecraft/server/command/ServerCommandSource;withOutput(Lnet/minecraft/server/command/CommandOutput;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withEntity- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Lbfj;)Lds;- intermediary - method_9232- Lnet/minecraft/class_2168;method_9232(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2168;- named - withEntity- Lnet/minecraft/server/command/ServerCommandSource;withEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withPosition- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Leei;)Lds;- intermediary - method_9208- Lnet/minecraft/class_2168;method_9208(Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;- named - withPosition- Lnet/minecraft/server/command/ServerCommandSource;withPosition(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withRotation- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Leeh;)Lds;- intermediary - method_9216- Lnet/minecraft/class_2168;method_9216(Lnet/minecraft/class_241;)Lnet/minecraft/class_2168;- named - withRotation- Lnet/minecraft/server/command/ServerCommandSource;withRotation(Lnet/minecraft/util/math/Vec2f;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withConsumerpublic ServerCommandSource withConsumer(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Lcom/mojang/brigadier/ResultConsumer;)Lds;- intermediary - method_9231- Lnet/minecraft/class_2168;method_9231(Lcom/mojang/brigadier/ResultConsumer;)Lnet/minecraft/class_2168;- named - withConsumer- Lnet/minecraft/server/command/ServerCommandSource;withConsumer(Lcom/mojang/brigadier/ResultConsumer;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
mergeConsumerspublic ServerCommandSource mergeConsumers(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> merger) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Lcom/mojang/brigadier/ResultConsumer;Ljava/util/function/BinaryOperator;)Lds;- intermediary - method_9209- Lnet/minecraft/class_2168;method_9209(Lcom/mojang/brigadier/ResultConsumer;Ljava/util/function/BinaryOperator;)Lnet/minecraft/class_2168;- named - mergeConsumers- Lnet/minecraft/server/command/ServerCommandSource;mergeConsumers(Lcom/mojang/brigadier/ResultConsumer;Ljava/util/function/BinaryOperator;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withSilent- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a()Lds;- intermediary - method_9217- Lnet/minecraft/class_2168;method_9217()Lnet/minecraft/class_2168;- named - withSilent- Lnet/minecraft/server/command/ServerCommandSource;withSilent()Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withLevel- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(I)Lds;- intermediary - method_9206- Lnet/minecraft/class_2168;method_9206(I)Lnet/minecraft/class_2168;- named - withLevel- Lnet/minecraft/server/command/ServerCommandSource;withLevel(I)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withMaxLevel- Mappings:
- Namespace - Name - Mixin selector - official - b- Lds;b(I)Lds;- intermediary - method_9230- Lnet/minecraft/class_2168;method_9230(I)Lnet/minecraft/class_2168;- named - withMaxLevel- Lnet/minecraft/server/command/ServerCommandSource;withMaxLevel(I)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withEntityAnchor- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Leb$a;)Lds;- intermediary - method_9218- Lnet/minecraft/class_2168;method_9218(Lnet/minecraft/class_2183$class_2184;)Lnet/minecraft/class_2168;- named - withEntityAnchor- Lnet/minecraft/server/command/ServerCommandSource;withEntityAnchor(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withWorld- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Laif;)Lds;- intermediary - method_9227- Lnet/minecraft/class_2168;method_9227(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;- named - withWorld- Lnet/minecraft/server/command/ServerCommandSource;withWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withLookingAtpublic ServerCommandSource withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Lbfj;Leb$a;)Lds;- intermediary - method_9220- Lnet/minecraft/class_2168;method_9220(Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)Lnet/minecraft/class_2168;- named - withLookingAt- Lnet/minecraft/server/command/ServerCommandSource;withLookingAt(Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withLookingAt- Mappings:
- Namespace - Name - Mixin selector - official - b- Lds;b(Leei;)Lds;- intermediary - method_9221- Lnet/minecraft/class_2168;method_9221(Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;- named - withLookingAt- Lnet/minecraft/server/command/ServerCommandSource;withLookingAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withSignedArguments- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Ldq;)Lds;- intermediary - method_43735- Lnet/minecraft/class_2168;method_43735(Lnet/minecraft/class_7448;)Lnet/minecraft/class_2168;- named - withSignedArguments- Lnet/minecraft/server/command/ServerCommandSource;withSignedArguments(Lnet/minecraft/network/message/SignedCommandArguments;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withMessageChainTaskQueue- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Lapt;)Lds;- intermediary - method_44908- Lnet/minecraft/class_2168;method_44908(Lnet/minecraft/class_7620;)Lnet/minecraft/class_2168;- named - withMessageChainTaskQueue- Lnet/minecraft/server/command/ServerCommandSource;withMessageChainTaskQueue(Lnet/minecraft/util/thread/FutureQueue;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
withReturnValueConsumer- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Ljava/util/function/IntConsumer;)Lds;- intermediary - method_51411- Lnet/minecraft/class_2168;method_51411(Ljava/util/function/IntConsumer;)Lnet/minecraft/class_2168;- named - withReturnValueConsumer- Lnet/minecraft/server/command/ServerCommandSource;withReturnValueConsumer(Ljava/util/function/IntConsumer;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
getDisplayName- Mappings:
- Namespace - Name - Mixin selector - official - b- Lds;b()Lsw;- intermediary - method_9223- Lnet/minecraft/class_2168;method_9223()Lnet/minecraft/class_2561;- named - getDisplayName- Lnet/minecraft/server/command/ServerCommandSource;getDisplayName()Lnet/minecraft/text/Text;
 
- 
getName- Mappings:
- Namespace - Name - Mixin selector - official - c- Lds;c()Ljava/lang/String;- intermediary - method_9214- Lnet/minecraft/class_2168;method_9214()Ljava/lang/String;- named - getName- Lnet/minecraft/server/command/ServerCommandSource;getName()Ljava/lang/String;
 
- 
hasPermissionLevelpublic boolean hasPermissionLevel(int level) - Specified by:
- hasPermissionLevelin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldu;c(I)Z- intermediary - method_9259- Lnet/minecraft/class_2172;method_9259(I)Z- named - hasPermissionLevel- Lnet/minecraft/command/CommandSource;hasPermissionLevel(I)Z
 
- 
getPosition- Mappings:
- Namespace - Name - Mixin selector - official - d- Lds;d()Leei;- intermediary - method_9222- Lnet/minecraft/class_2168;method_9222()Lnet/minecraft/class_243;- named - getPosition- Lnet/minecraft/server/command/ServerCommandSource;getPosition()Lnet/minecraft/util/math/Vec3d;
 
- 
getWorld- Mappings:
- Namespace - Name - Mixin selector - official - e- Lds;e()Laif;- intermediary - method_9225- Lnet/minecraft/class_2168;method_9225()Lnet/minecraft/class_3218;- named - getWorld- Lnet/minecraft/server/command/ServerCommandSource;getWorld()Lnet/minecraft/server/world/ServerWorld;
 
- 
getEntityGets the entity from this command source or returns null if this command source is not an entity.- Mappings:
- Namespace - Name - Mixin selector - official - f- Lds;f()Lbfj;- intermediary - method_9228- Lnet/minecraft/class_2168;method_9228()Lnet/minecraft/class_1297;- named - getEntity- Lnet/minecraft/server/command/ServerCommandSource;getEntity()Lnet/minecraft/entity/Entity;
 
- 
getEntityOrThrowGets 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 - official - g- Lds;g()Lbfj;- intermediary - method_9229- Lnet/minecraft/class_2168;method_9229()Lnet/minecraft/class_1297;- named - getEntityOrThrow- Lnet/minecraft/server/command/ServerCommandSource;getEntityOrThrow()Lnet/minecraft/entity/Entity;
 
- 
getPlayerOrThrowpublic ServerPlayerEntity getPlayerOrThrow() throws com.mojang.brigadier.exceptions.CommandSyntaxExceptionReturns 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 - official - h- Lds;h()Laig;- intermediary - method_9207- Lnet/minecraft/class_2168;method_9207()Lnet/minecraft/class_3222;- named - getPlayerOrThrow- Lnet/minecraft/server/command/ServerCommandSource;getPlayerOrThrow()Lnet/minecraft/server/network/ServerPlayerEntity;
 
- 
getPlayerReturns the player from this command source, ornullif the source is not a player.- Returns:
- the player from this command source, or nullif the source is not a player
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lds;i()Laig;- intermediary - method_44023- Lnet/minecraft/class_2168;method_44023()Lnet/minecraft/class_3222;- named - getPlayer- Lnet/minecraft/server/command/ServerCommandSource;getPlayer()Lnet/minecraft/server/network/ServerPlayerEntity;
 
- 
isExecutedByPlayerpublic boolean isExecutedByPlayer()- Mappings:
- Namespace - Name - Mixin selector - official - j- Lds;j()Z- intermediary - method_43737- Lnet/minecraft/class_2168;method_43737()Z- named - isExecutedByPlayer- Lnet/minecraft/server/command/ServerCommandSource;isExecutedByPlayer()Z
 
- 
getRotation- Mappings:
- Namespace - Name - Mixin selector - official - k- Lds;k()Leeh;- intermediary - method_9210- Lnet/minecraft/class_2168;method_9210()Lnet/minecraft/class_241;- named - getRotation- Lnet/minecraft/server/command/ServerCommandSource;getRotation()Lnet/minecraft/util/math/Vec2f;
 
- 
getServer- Mappings:
- Namespace - Name - Mixin selector - official - l- Lds;l()Lnet/minecraft/server/MinecraftServer;- intermediary - method_9211- Lnet/minecraft/class_2168;method_9211()Lnet/minecraft/server/MinecraftServer;- named - getServer- Lnet/minecraft/server/command/ServerCommandSource;getServer()Lnet/minecraft/server/MinecraftServer;
 
- 
getEntityAnchor- Mappings:
- Namespace - Name - Mixin selector - official - m- Lds;m()Leb$a;- intermediary - method_9219- Lnet/minecraft/class_2168;method_9219()Lnet/minecraft/class_2183$class_2184;- named - getEntityAnchor- Lnet/minecraft/server/command/ServerCommandSource;getEntityAnchor()Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
 
- 
getSignedArguments- Mappings:
- Namespace - Name - Mixin selector - official - n- Lds;n()Ldq;- intermediary - method_43738- Lnet/minecraft/class_2168;method_43738()Lnet/minecraft/class_7448;- named - getSignedArguments- Lnet/minecraft/server/command/ServerCommandSource;getSignedArguments()Lnet/minecraft/network/message/SignedCommandArguments;
 
- 
getMessageChainTaskQueue- Mappings:
- Namespace - Name - Mixin selector - official - o- Lds;o()Lapt;- intermediary - method_44909- Lnet/minecraft/class_2168;method_44909()Lnet/minecraft/class_7620;- named - getMessageChainTaskQueue- Lnet/minecraft/server/command/ServerCommandSource;getMessageChainTaskQueue()Lnet/minecraft/util/thread/FutureQueue;
 
- 
getReturnValueConsumer- Mappings:
- Namespace - Name - Mixin selector - official - p- Lds;p()Ljava/util/function/IntConsumer;- intermediary - method_51413- Lnet/minecraft/class_2168;method_51413()Ljava/util/function/IntConsumer;- named - getReturnValueConsumer- Lnet/minecraft/server/command/ServerCommandSource;getReturnValueConsumer()Ljava/util/function/IntConsumer;
 
- 
shouldFilterTextReturns whether to filter text sent torecipient.This returns trueif either of the command executor or the recipient requires text filtering, unlessrecipientexecuted the command, wherefalseis always returned.- Returns:
- whether to filter text sent to recipient
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Laig;)Z- intermediary - method_45067- Lnet/minecraft/class_2168;method_45067(Lnet/minecraft/class_3222;)Z- named - shouldFilterText- Lnet/minecraft/server/command/ServerCommandSource;shouldFilterText(Lnet/minecraft/server/network/ServerPlayerEntity;)Z
 
- 
sendChatMessagepublic void sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sendsmessageas 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 - official - a- Lds;a(Ltk;ZLss$a;)V- intermediary - method_44749- Lnet/minecraft/class_2168;method_44749(Lnet/minecraft/class_7604;ZLnet/minecraft/class_2556$class_7602;)V- named - sendChatMessage- Lnet/minecraft/server/command/ServerCommandSource;sendChatMessage(Lnet/minecraft/network/message/SentMessage;ZLnet/minecraft/network/message/MessageType$Parameters;)V
 
- 
sendMessageSendsmessageas 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 - official - a- Lds;a(Lsw;)V- intermediary - method_45068- Lnet/minecraft/class_2168;method_45068(Lnet/minecraft/class_2561;)V- named - sendMessage- Lnet/minecraft/server/command/ServerCommandSource;sendMessage(Lnet/minecraft/text/Text;)V
 
- 
sendFeedback- Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Ljava/util/function/Supplier;Z)V- intermediary - method_9226- Lnet/minecraft/class_2168;method_9226(Ljava/util/function/Supplier;Z)V- named - sendFeedback- Lnet/minecraft/server/command/ServerCommandSource;sendFeedback(Ljava/util/function/Supplier;Z)V
 
- 
sendToOps- Mappings:
- Namespace - Name - Mixin selector - official - c- Lds;c(Lsw;)V- intermediary - method_9212- Lnet/minecraft/class_2168;method_9212(Lnet/minecraft/class_2561;)V- named - sendToOps- Lnet/minecraft/server/command/ServerCommandSource;sendToOps(Lnet/minecraft/text/Text;)V
 
- 
sendError- Mappings:
- Namespace - Name - Mixin selector - official - b- Lds;b(Lsw;)V- intermediary - method_9213- Lnet/minecraft/class_2168;method_9213(Lnet/minecraft/class_2561;)V- named - sendError- Lnet/minecraft/server/command/ServerCommandSource;sendError(Lnet/minecraft/text/Text;)V
 
- 
onCommandCompletepublic void onCommandComplete(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean success, int result) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lds;a(Lcom/mojang/brigadier/context/CommandContext;ZI)V- intermediary - method_9215- Lnet/minecraft/class_2168;method_9215(Lcom/mojang/brigadier/context/CommandContext;ZI)V- named - onCommandComplete- Lnet/minecraft/server/command/ServerCommandSource;onCommandComplete(Lcom/mojang/brigadier/context/CommandContext;ZI)V
 
- 
getPlayerNames- Specified by:
- getPlayerNamesin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - q- Ldu;q()Ljava/util/Collection;- intermediary - method_9262- Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;- named - getPlayerNames- Lnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;
 
- 
getTeamNames- Specified by:
- getTeamNamesin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - r- Ldu;r()Ljava/util/Collection;- intermediary - method_9267- Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;- named - getTeamNames- Lnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;
 
- 
getSoundIds- Specified by:
- getSoundIdsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - s- Ldu;s()Ljava/util/stream/Stream;- intermediary - method_9254- Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;- named - getSoundIds- Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;
 
- 
getRecipeIds- Specified by:
- getRecipeIdsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - t- Ldu;t()Ljava/util/stream/Stream;- intermediary - method_9273- Lnet/minecraft/class_2172;method_9273()Ljava/util/stream/Stream;- named - getRecipeIds- Lnet/minecraft/command/CommandSource;getRecipeIds()Ljava/util/stream/Stream;
 
- 
getCompletionspublic CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context) - Specified by:
- getCompletionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldu;a(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;- named - getCompletions- Lnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
 
- 
listIdSuggestionspublic 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:
- listIdSuggestionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldu;a(Lacp;Ldu$a;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;- 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;
 
- 
getWorldKeys- Specified by:
- getWorldKeysin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - u- Ldu;u()Ljava/util/Set;- intermediary - method_29310- Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;- named - getWorldKeys- Lnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;
 
- 
getRegistryManager- Specified by:
- getRegistryManagerin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - v- Ldu;v()Lhs;- intermediary - method_30497- Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;- named - getRegistryManager- Lnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
 
- 
getEnabledFeatures- Specified by:
- getEnabledFeaturesin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - w- Ldu;w()Lcaw;- intermediary - method_45549- Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;- named - getEnabledFeatures- Lnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
 
 
-