Package net.minecraft.server.command
Class ServerCommandSource
java.lang.Object
net.minecraft.server.command.ServerCommandSource
- All Implemented Interfaces:
CommandSource,PermissionSource,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/ServerCommandSourceintermediary net/minecraft/class_2168official ej
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.CommandSource
CommandSource.RelativePosition, CommandSource.SuggestedIdType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Textprivate final EntityAnchorArgumentType.EntityAnchorprivate final FutureQueueprivate final Stringprivate final CommandOutputprivate final PermissionPredicateprivate final Vec3dstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate final ReturnValueConsumerprivate final Vec2fprivate final MinecraftServerprivate final SignedCommandArgumentsprivate final booleanprivate final ServerWorldFields inherited from interface net.minecraft.command.CommandSource
SUGGESTION_MATCH_PREFIX -
Constructor Summary
ConstructorsModifierConstructorDescriptionServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, PermissionPredicate permissions, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) privateServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, PermissionPredicate permissions, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, ReturnValueConsumer resultStorer, EntityAnchorArgumentType.EntityAnchor entityAnchor, SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context) com.mojang.brigadier.CommandDispatcher<ServerCommandSource> 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.private Optional<? extends RegistryWrapper<?>> getRegistry(RegistryKey<? extends Registry<?>> registryRef) getWorld()voidhandleException(com.mojang.brigadier.exceptions.CommandExceptionType type, com.mojang.brigadier.Message message, boolean silent, @Nullable Tracer tracer) booleanbooleanisSilent()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) mergeReturnValueConsumers(ReturnValueConsumer returnValueConsumer, BinaryOperator<ReturnValueConsumer> merger) 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.withAdditionalPermissions(PermissionPredicate permissions) withEntity(Entity entity) withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) withLookingAt(Vec3d position) withOutput(CommandOutput output) withPermissions(PermissionPredicate permissions) withPosition(Vec3d position) withReturnValueConsumer(ReturnValueConsumer returnValueConsumer) withRotation(Vec2f rotation) withSignedArguments(SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) withWorld(ServerWorld world) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.command.AbstractServerCommandSource
handleException, withDummyReturnValueConsumerMethods inherited from interface net.minecraft.command.CommandSource
getBlockPositionSuggestions, getChatSuggestions, getEntitySuggestions, getPositionSuggestions, suggestIdentifiers
-
Field Details
-
REQUIRES_PLAYER_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_PLAYER_EXCEPTION- Mappings:
Namespace Name Mixin selector named REQUIRES_PLAYER_EXCEPTIONLnet/minecraft/server/command/ServerCommandSource;REQUIRES_PLAYER_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9824Lnet/minecraft/class_2168;field_9824:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official aLej;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_EXCEPTIONLnet/minecraft/server/command/ServerCommandSource;REQUIRES_ENTITY_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9827Lnet/minecraft/class_2168;field_9827:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official bLej;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
output
- Mappings:
Namespace Name Mixin selector named outputLnet/minecraft/server/command/ServerCommandSource;output:Lnet/minecraft/server/command/CommandOutput;intermediary field_9819Lnet/minecraft/class_2168;field_9819:Lnet/minecraft/class_2165;official dLej;d:Lei;
-
position
- Mappings:
Namespace Name Mixin selector named positionLnet/minecraft/server/command/ServerCommandSource;position:Lnet/minecraft/util/math/Vec3d;intermediary field_9817Lnet/minecraft/class_2168;field_9817:Lnet/minecraft/class_243;official eLej;e:Lfrd;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/server/command/ServerCommandSource;world:Lnet/minecraft/server/world/ServerWorld;intermediary field_9828Lnet/minecraft/class_2168;field_9828:Lnet/minecraft/class_3218;official fLej;f:Laxl;
-
permissions
- Mappings:
Namespace Name Mixin selector named permissionsLnet/minecraft/server/command/ServerCommandSource;permissions:Lnet/minecraft/command/permission/PermissionPredicate;intermediary field_63437Lnet/minecraft/class_2168;field_63437:Lnet/minecraft/class_12096;official gLej;g:Lbbs;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/server/command/ServerCommandSource;name:Ljava/lang/String;intermediary field_9826Lnet/minecraft/class_2168;field_9826:Ljava/lang/String;official hLej;h:Ljava/lang/String;
-
displayName
- Mappings:
Namespace Name Mixin selector named displayNameLnet/minecraft/server/command/ServerCommandSource;displayName:Lnet/minecraft/text/Text;intermediary field_9825Lnet/minecraft/class_2168;field_9825:Lnet/minecraft/class_2561;official iLej;i:Lym;
-
server
- Mappings:
Namespace Name Mixin selector named serverLnet/minecraft/server/command/ServerCommandSource;server:Lnet/minecraft/server/MinecraftServer;intermediary field_9818Lnet/minecraft/class_2168;field_9818:Lnet/minecraft/server/MinecraftServer;official jLej;j:Lnet/minecraft/server/MinecraftServer;
-
silent
private final boolean silent- Mappings:
Namespace Name Mixin selector named silentLnet/minecraft/server/command/ServerCommandSource;silent:Zintermediary field_9823Lnet/minecraft/class_2168;field_9823:Zofficial kLej;k:Z
-
entity
- Mappings:
Namespace Name Mixin selector named entityLnet/minecraft/server/command/ServerCommandSource;entity:Lnet/minecraft/entity/Entity;intermediary field_9820Lnet/minecraft/class_2168;field_9820:Lnet/minecraft/class_1297;official lLej;l:Lcgd;
-
returnValueConsumer
- Mappings:
Namespace Name Mixin selector named returnValueConsumerLnet/minecraft/server/command/ServerCommandSource;returnValueConsumer:Lnet/minecraft/command/ReturnValueConsumer;intermediary field_47159Lnet/minecraft/class_2168;field_47159:Lnet/minecraft/class_8935;official mLej;m:Leg;
-
entityAnchor
- Mappings:
Namespace Name Mixin selector named entityAnchorLnet/minecraft/server/command/ServerCommandSource;entityAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;intermediary field_9816Lnet/minecraft/class_2168;field_9816:Lnet/minecraft/class_2183$class_2184;official nLej;n:Lev$a;
-
rotation
- Mappings:
Namespace Name Mixin selector named rotationLnet/minecraft/server/command/ServerCommandSource;rotation:Lnet/minecraft/util/math/Vec2f;intermediary field_9822Lnet/minecraft/class_2168;field_9822:Lnet/minecraft/class_241;official oLej;o:Lfrc;
-
signedArguments
- Mappings:
Namespace Name Mixin selector named signedArgumentsLnet/minecraft/server/command/ServerCommandSource;signedArguments:Lnet/minecraft/network/message/SignedCommandArguments;intermediary field_39183Lnet/minecraft/class_2168;field_39183:Lnet/minecraft/class_7448;official pLej;p:Leh;
-
messageChainTaskQueue
- Mappings:
Namespace Name Mixin selector named messageChainTaskQueueLnet/minecraft/server/command/ServerCommandSource;messageChainTaskQueue:Lnet/minecraft/util/thread/FutureQueue;intermediary field_39834Lnet/minecraft/class_2168;field_39834:Lnet/minecraft/class_7620;official qLej;q:Lbhi;
-
-
Constructor Details
-
ServerCommandSource
public ServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, PermissionPredicate permissions, 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;Lnet/minecraft/command/permission/PermissionPredicate;Ljava/lang/String;Lnet/minecraft/text/Text;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/entity/Entity;)Vintermediary <init>Lnet/minecraft/class_2168;<init>(Lnet/minecraft/class_2165;Lnet/minecraft/class_243;Lnet/minecraft/class_241;Lnet/minecraft/class_3218;Lnet/minecraft/class_12096;Ljava/lang/String;Lnet/minecraft/class_2561;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1297;)Vofficial <init>Lej;<init>(Lei;Lfrd;Lfrc;Laxl;Lbbs;Ljava/lang/String;Lym;Lnet/minecraft/server/MinecraftServer;Lcgd;)V
-
ServerCommandSource
private ServerCommandSource(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, PermissionPredicate permissions, 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;Lnet/minecraft/command/permission/PermissionPredicate;Ljava/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;)Vintermediary <init>Lnet/minecraft/class_2168;<init>(Lnet/minecraft/class_2165;Lnet/minecraft/class_243;Lnet/minecraft/class_241;Lnet/minecraft/class_3218;Lnet/minecraft/class_12096;Ljava/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;)Vofficial <init>Lej;<init>(Lei;Lfrd;Lfrc;Laxl;Lbbs;Ljava/lang/String;Lym;Lnet/minecraft/server/MinecraftServer;Lcgd;ZLeg;Lev$a;Leh;Lbhi;)V
-
-
Method Details
-
withOutput
- Mappings:
Namespace Name Mixin selector named withOutputLnet/minecraft/server/command/ServerCommandSource;withOutput(Lnet/minecraft/server/command/CommandOutput;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_36321Lnet/minecraft/class_2168;method_36321(Lnet/minecraft/class_2165;)Lnet/minecraft/class_2168;official aLej;a(Lei;)Lej;
-
withEntity
- Mappings:
Namespace Name Mixin selector named withEntityLnet/minecraft/server/command/ServerCommandSource;withEntity(Lnet/minecraft/entity/Entity;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9232Lnet/minecraft/class_2168;method_9232(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2168;official aLej;a(Lcgd;)Lej;
-
withPosition
- Mappings:
Namespace Name Mixin selector named withPositionLnet/minecraft/server/command/ServerCommandSource;withPosition(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9208Lnet/minecraft/class_2168;method_9208(Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;official aLej;a(Lfrd;)Lej;
-
withRotation
- Mappings:
Namespace Name Mixin selector named withRotationLnet/minecraft/server/command/ServerCommandSource;withRotation(Lnet/minecraft/util/math/Vec2f;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9216Lnet/minecraft/class_2168;method_9216(Lnet/minecraft/class_241;)Lnet/minecraft/class_2168;official aLej;a(Lfrc;)Lej;
-
withReturnValueConsumer
- Specified by:
withReturnValueConsumerin interfaceAbstractServerCommandSource<ServerCommandSource>- Mappings:
Namespace Name Mixin selector named withReturnValueConsumerLnet/minecraft/server/command/ServerCommandSource;withReturnValueConsumer(Lnet/minecraft/command/ReturnValueConsumer;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9231Lnet/minecraft/class_2168;method_9231(Lnet/minecraft/class_8935;)Lnet/minecraft/class_2168;official aLej;a(Leg;)Lej;
-
mergeReturnValueConsumers
public ServerCommandSource mergeReturnValueConsumers(ReturnValueConsumer returnValueConsumer, BinaryOperator<ReturnValueConsumer> merger) - Mappings:
Namespace Name Mixin selector named mergeReturnValueConsumersLnet/minecraft/server/command/ServerCommandSource;mergeReturnValueConsumers(Lnet/minecraft/command/ReturnValueConsumer;Ljava/util/function/BinaryOperator;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9209Lnet/minecraft/class_2168;method_9209(Lnet/minecraft/class_8935;Ljava/util/function/BinaryOperator;)Lnet/minecraft/class_2168;official aLej;a(Leg;Ljava/util/function/BinaryOperator;)Lej;
-
withSilent
- Mappings:
Namespace Name Mixin selector named withSilentLnet/minecraft/server/command/ServerCommandSource;withSilent()Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9217Lnet/minecraft/class_2168;method_9217()Lnet/minecraft/class_2168;official aLej;a()Lej;
-
withPermissions
- Mappings:
Namespace Name Mixin selector named withPermissionsLnet/minecraft/server/command/ServerCommandSource;withPermissions(Lnet/minecraft/command/permission/PermissionPredicate;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9206Lnet/minecraft/class_2168;method_9206(Lnet/minecraft/class_12096;)Lnet/minecraft/class_2168;official aLej;a(Lbbs;)Lej;
-
withAdditionalPermissions
- Mappings:
Namespace Name Mixin selector named withAdditionalPermissionsLnet/minecraft/server/command/ServerCommandSource;withAdditionalPermissions(Lnet/minecraft/command/permission/PermissionPredicate;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9230Lnet/minecraft/class_2168;method_9230(Lnet/minecraft/class_12096;)Lnet/minecraft/class_2168;official bLej;b(Lbbs;)Lej;
-
withEntityAnchor
- Mappings:
Namespace Name Mixin selector named withEntityAnchorLnet/minecraft/server/command/ServerCommandSource;withEntityAnchor(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9218Lnet/minecraft/class_2168;method_9218(Lnet/minecraft/class_2183$class_2184;)Lnet/minecraft/class_2168;official aLej;a(Lev$a;)Lej;
-
withWorld
- Mappings:
Namespace Name Mixin selector named withWorldLnet/minecraft/server/command/ServerCommandSource;withWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9227Lnet/minecraft/class_2168;method_9227(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;official aLej;a(Laxl;)Lej;
-
withLookingAt
public ServerCommandSource withLookingAt(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) - Mappings:
Namespace Name Mixin selector named withLookingAtLnet/minecraft/server/command/ServerCommandSource;withLookingAt(Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9220Lnet/minecraft/class_2168;method_9220(Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)Lnet/minecraft/class_2168;official aLej;a(Lcgd;Lev$a;)Lej;
-
withLookingAt
- Mappings:
Namespace Name Mixin selector named withLookingAtLnet/minecraft/server/command/ServerCommandSource;withLookingAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_9221Lnet/minecraft/class_2168;method_9221(Lnet/minecraft/class_243;)Lnet/minecraft/class_2168;official bLej;b(Lfrd;)Lej;
-
withSignedArguments
public ServerCommandSource withSignedArguments(SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue) - Mappings:
Namespace Name Mixin selector named withSignedArgumentsLnet/minecraft/server/command/ServerCommandSource;withSignedArguments(Lnet/minecraft/network/message/SignedCommandArguments;Lnet/minecraft/util/thread/FutureQueue;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_43735Lnet/minecraft/class_2168;method_43735(Lnet/minecraft/class_7448;Lnet/minecraft/class_7620;)Lnet/minecraft/class_2168;official aLej;a(Leh;Lbhi;)Lej;
-
getDisplayName
- Mappings:
Namespace Name Mixin selector named getDisplayNameLnet/minecraft/server/command/ServerCommandSource;getDisplayName()Lnet/minecraft/text/Text;intermediary method_9223Lnet/minecraft/class_2168;method_9223()Lnet/minecraft/class_2561;official bLej;b()Lym;
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/server/command/ServerCommandSource;getName()Ljava/lang/String;intermediary method_9214Lnet/minecraft/class_2168;method_9214()Ljava/lang/String;official cLej;c()Ljava/lang/String;
-
getPermissions
- Specified by:
getPermissionsin interfacePermissionSource- Mappings:
Namespace Name Mixin selector named getPermissionsLnet/minecraft/command/permission/PermissionSource;getPermissions()Lnet/minecraft/command/permission/PermissionPredicate;intermediary method_75037Lnet/minecraft/class_12097;method_75037()Lnet/minecraft/class_12096;official dLbbt;d()Lbbs;
-
getPosition
- Mappings:
Namespace Name Mixin selector named getPositionLnet/minecraft/server/command/ServerCommandSource;getPosition()Lnet/minecraft/util/math/Vec3d;intermediary method_9222Lnet/minecraft/class_2168;method_9222()Lnet/minecraft/class_243;official eLej;e()Lfrd;
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorldLnet/minecraft/server/command/ServerCommandSource;getWorld()Lnet/minecraft/server/world/ServerWorld;intermediary method_9225Lnet/minecraft/class_2168;method_9225()Lnet/minecraft/class_3218;official fLej;f()Laxl;
-
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 getEntityLnet/minecraft/server/command/ServerCommandSource;getEntity()Lnet/minecraft/entity/Entity;intermediary method_9228Lnet/minecraft/class_2168;method_9228()Lnet/minecraft/class_1297;official gLej;g()Lcgd;
-
getEntityOrThrow
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 getEntityOrThrowLnet/minecraft/server/command/ServerCommandSource;getEntityOrThrow()Lnet/minecraft/entity/Entity;intermediary method_9229Lnet/minecraft/class_2168;method_9229()Lnet/minecraft/class_1297;official hLej;h()Lcgd;
-
getPlayerOrThrow
public 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 named getPlayerOrThrowLnet/minecraft/server/command/ServerCommandSource;getPlayerOrThrow()Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_9207Lnet/minecraft/class_2168;method_9207()Lnet/minecraft/class_3222;official iLej;i()Laxm;
-
getPlayer
Returns 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 named getPlayerLnet/minecraft/server/command/ServerCommandSource;getPlayer()Lnet/minecraft/server/network/ServerPlayerEntity;intermediary method_44023Lnet/minecraft/class_2168;method_44023()Lnet/minecraft/class_3222;official jLej;j()Laxm;
-
isExecutedByPlayer
public boolean isExecutedByPlayer()- Mappings:
Namespace Name Mixin selector named isExecutedByPlayerLnet/minecraft/server/command/ServerCommandSource;isExecutedByPlayer()Zintermediary method_43737Lnet/minecraft/class_2168;method_43737()Zofficial kLej;k()Z
-
getRotation
- Mappings:
Namespace Name Mixin selector named getRotationLnet/minecraft/server/command/ServerCommandSource;getRotation()Lnet/minecraft/util/math/Vec2f;intermediary method_9210Lnet/minecraft/class_2168;method_9210()Lnet/minecraft/class_241;official lLej;l()Lfrc;
-
getServer
- Mappings:
Namespace Name Mixin selector named getServerLnet/minecraft/server/command/ServerCommandSource;getServer()Lnet/minecraft/server/MinecraftServer;intermediary method_9211Lnet/minecraft/class_2168;method_9211()Lnet/minecraft/server/MinecraftServer;official mLej;m()Lnet/minecraft/server/MinecraftServer;
-
getEntityAnchor
- Mappings:
Namespace Name Mixin selector named getEntityAnchorLnet/minecraft/server/command/ServerCommandSource;getEntityAnchor()Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;intermediary method_9219Lnet/minecraft/class_2168;method_9219()Lnet/minecraft/class_2183$class_2184;official nLej;n()Lev$a;
-
getSignedArguments
- Mappings:
Namespace Name Mixin selector named getSignedArgumentsLnet/minecraft/server/command/ServerCommandSource;getSignedArguments()Lnet/minecraft/network/message/SignedCommandArguments;intermediary method_43738Lnet/minecraft/class_2168;method_43738()Lnet/minecraft/class_7448;official oLej;o()Leh;
-
getMessageChainTaskQueue
- Mappings:
Namespace Name Mixin selector named getMessageChainTaskQueueLnet/minecraft/server/command/ServerCommandSource;getMessageChainTaskQueue()Lnet/minecraft/util/thread/FutureQueue;intermediary method_44909Lnet/minecraft/class_2168;method_44909()Lnet/minecraft/class_7620;official pLej;p()Lbhi;
-
shouldFilterText
Returns 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 named shouldFilterTextLnet/minecraft/server/command/ServerCommandSource;shouldFilterText(Lnet/minecraft/server/network/ServerPlayerEntity;)Zintermediary method_45067Lnet/minecraft/class_2168;method_45067(Lnet/minecraft/class_3222;)Zofficial aLej;a(Laxm;)Z
-
sendChatMessage
public 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 named sendChatMessageLnet/minecraft/server/command/ServerCommandSource;sendChatMessage(Lnet/minecraft/network/message/SentMessage;ZLnet/minecraft/network/message/MessageType$Parameters;)Vintermediary method_44749Lnet/minecraft/class_2168;method_44749(Lnet/minecraft/class_7604;ZLnet/minecraft/class_2556$class_7602;)Vofficial aLej;a(Lzc;ZLyi$a;)V
-
sendMessage
Sendsmessageas 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 sendMessageLnet/minecraft/server/command/ServerCommandSource;sendMessage(Lnet/minecraft/text/Text;)Vintermediary method_45068Lnet/minecraft/class_2168;method_45068(Lnet/minecraft/class_2561;)Vofficial aLej;a(Lym;)V
-
sendFeedback
- Mappings:
Namespace Name Mixin selector named sendFeedbackLnet/minecraft/server/command/ServerCommandSource;sendFeedback(Ljava/util/function/Supplier;Z)Vintermediary method_9226Lnet/minecraft/class_2168;method_9226(Ljava/util/function/Supplier;Z)Vofficial aLej;a(Ljava/util/function/Supplier;Z)V
-
sendToOps
- Mappings:
Namespace Name Mixin selector named sendToOpsLnet/minecraft/server/command/ServerCommandSource;sendToOps(Lnet/minecraft/text/Text;)Vintermediary method_9212Lnet/minecraft/class_2168;method_9212(Lnet/minecraft/class_2561;)Vofficial cLej;c(Lym;)V
-
sendError
- Mappings:
Namespace Name Mixin selector named sendErrorLnet/minecraft/server/command/ServerCommandSource;sendError(Lnet/minecraft/text/Text;)Vintermediary method_9213Lnet/minecraft/class_2168;method_9213(Lnet/minecraft/class_2561;)Vofficial bLej;b(Lym;)V
-
getReturnValueConsumer
- Specified by:
getReturnValueConsumerin interfaceAbstractServerCommandSource<ServerCommandSource>- Mappings:
Namespace Name Mixin selector named getReturnValueConsumerLnet/minecraft/server/command/AbstractServerCommandSource;getReturnValueConsumer()Lnet/minecraft/command/ReturnValueConsumer;intermediary method_54881Lnet/minecraft/class_8839;method_54881()Lnet/minecraft/class_8935;official qLel;q()Leg;
-
getPlayerNames
- Specified by:
getPlayerNamesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getPlayerNamesLnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;intermediary method_9262Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;official rLeo;r()Ljava/util/Collection;
-
getTeamNames
- Specified by:
getTeamNamesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getTeamNamesLnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;intermediary method_9267Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;official sLeo;s()Ljava/util/Collection;
-
getSoundIds
- Specified by:
getSoundIdsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getSoundIdsLnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;intermediary method_9254Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;official tLeo;t()Ljava/util/stream/Stream;
-
getCompletions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context) - Specified by:
getCompletionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getCompletionsLnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;intermediary method_9261Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;official aLeo;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:
listIdSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named listIdSuggestionsLnet/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_41213Lnet/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 aLeo;a(Lamx;Leo$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
-
getRegistry
private Optional<? extends RegistryWrapper<?>> getRegistry(RegistryKey<? extends Registry<?>> registryRef) - Mappings:
Namespace Name Mixin selector named getRegistryLnet/minecraft/server/command/ServerCommandSource;getRegistry(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_71773Lnet/minecraft/class_2168;method_71773(Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLej;a(Lamx;)Ljava/util/Optional;
-
getWorldKeys
- Specified by:
getWorldKeysin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getWorldKeysLnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;intermediary method_29310Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;official uLeo;u()Ljava/util/Set;
-
getRegistryManager
- Specified by:
getRegistryManagerin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getRegistryManagerLnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;intermediary method_30497Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;official vLeo;v()Ljx;
-
getEnabledFeatures
- Specified by:
getEnabledFeaturesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getEnabledFeaturesLnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary method_45549Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;official wLeo;w()Ldfn;
-
getDispatcher
- Specified by:
getDispatcherin interfaceAbstractServerCommandSource<ServerCommandSource>- Mappings:
Namespace Name Mixin selector named getDispatcherLnet/minecraft/server/command/AbstractServerCommandSource;getDispatcher()Lcom/mojang/brigadier/CommandDispatcher;intermediary method_54310Lnet/minecraft/class_8839;method_54310()Lcom/mojang/brigadier/CommandDispatcher;official xLel;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:
handleExceptionin interfaceAbstractServerCommandSource<ServerCommandSource>- Mappings:
Namespace Name Mixin selector named handleExceptionLnet/minecraft/server/command/AbstractServerCommandSource;handleException(Lcom/mojang/brigadier/exceptions/CommandExceptionType;Lcom/mojang/brigadier/Message;ZLnet/minecraft/server/function/Tracer;)Vintermediary method_54491Lnet/minecraft/class_8839;method_54491(Lcom/mojang/brigadier/exceptions/CommandExceptionType;Lcom/mojang/brigadier/Message;ZLnet/minecraft/class_6346;)Vofficial aLel;a(Lcom/mojang/brigadier/exceptions/CommandExceptionType;Lcom/mojang/brigadier/Message;ZLhp;)V
-
isSilent
public boolean isSilent()- Specified by:
isSilentin interfaceAbstractServerCommandSource<ServerCommandSource>- Mappings:
Namespace Name Mixin selector named isSilentLnet/minecraft/server/command/AbstractServerCommandSource;isSilent()Zintermediary method_54882Lnet/minecraft/class_8839;method_54882()Zofficial yLel;y()Z
-