net.minecraft.commands

public class CommandSourceStack

implements ExecutionCommandSource<CommandSourceStack>, SharedSuggestionProvider

ew
net.minecraft.commands.CommandSourceStack
net.minecraft.class_2168
net.minecraft.server.command.ServerCommandSource
net.minecraft.commands.CommandListenerWrapper

Field summary

Modifier and TypeField
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
ERROR_NOT_PLAYER
field_9824
REQUIRES_PLAYER_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
b
ERROR_NOT_ENTITY
field_9827
REQUIRES_ENTITY_EXCEPTION
private final CommandSource
c
source
field_9819
output
private final Vec3
d
worldPosition
field_9817
position
private final ServerLevel
e
level
field_9828
world
private final int
f
permissionLevel
field_9815
level
private final String
g
textName
field_9826
name
private final Component
h
displayName
field_9825
displayName
private final MinecraftServer
i
server
field_9818
server
private final boolean
j
silent
field_9823
silent
private final Entity
k
entity
field_9820
entity
private final CommandResultCallback
l
resultCallback
field_47159
returnValueConsumer
private final EntityAnchorArgument$Anchor
m
anchor
field_9816
entityAnchor
private final Vec2
n
rotation
field_9822
rotation
private final CommandSigningContext
o
signingContext
field_39183
signedArguments
private final TaskChainer
p
chatMessageChainer
field_39834
messageChainTaskQueue

Constructor summary

ModifierConstructor
public (CommandSource output, Vec3 pos, Vec2 rot, ServerLevel world, int level, String name, Component displayName, MinecraftServer server, Entity entity)
protected (CommandSource output, Vec3 pos, Vec2 rot, ServerLevel world, int level, String name, Component displayName, MinecraftServer server, Entity entity, boolean silent, CommandResultCallback resultStorer, EntityAnchorArgument$Anchor entityAnchor, CommandSigningContext signedArguments, TaskChainer messageChainTaskQueue)

Method summary

Modifier and TypeMethod
public CommandSourceStack
a(ev arg0)
withSource(CommandSource arg0)
method_36321(class_2165 arg0)
withOutput(CommandOutput output)
public CommandSourceStack
a(bvk arg0)
withEntity(Entity arg0)
method_9232(class_1297 arg0)
withEntity(Entity entity)
public CommandSourceStack
a(fby arg0)
withPosition(Vec3 arg0)
method_9208(class_243 arg0)
withPosition(Vec3d position)
public CommandSourceStack
a(fbx arg0)
withRotation(Vec2 arg0)
method_9216(class_241 arg0)
withRotation(Vec2f rotation)
public CommandSourceStack
a(et arg0)
withCallback(CommandResultCallback arg0)
method_9231(class_8935 arg0)
withReturnValueConsumer(ReturnValueConsumer arg0)
public CommandSourceStack
a(et arg0, BinaryOperator<et> arg1)
withCallback(CommandResultCallback arg0, BinaryOperator<CommandResultCallback> arg1)
method_9209(class_8935 arg0, BinaryOperator<class_8935> arg1)
mergeReturnValueConsumers(ReturnValueConsumer returnValueConsumer, BinaryOperator<ReturnValueConsumer> merger)
public CommandSourceStack
a()
withSuppressedOutput()
method_9217()
withSilent()
public CommandSourceStack
a(int arg0)
withPermission(int arg0)
method_9206(int arg0)
withLevel(int level)
public CommandSourceStack
b(int arg0)
withMaximumPermission(int arg0)
method_9230(int arg0)
withMaxLevel(int level)
public CommandSourceStack
a(fi$a arg0)
withAnchor(EntityAnchorArgument$Anchor arg0)
method_9218(class_2183$class_2184 arg0)
withEntityAnchor(EntityAnchorArgumentType$EntityAnchor anchor)
public CommandSourceStack
a(ash arg0)
withLevel(ServerLevel arg0)
method_9227(class_3218 arg0)
withWorld(ServerWorld world)
public CommandSourceStack
a(bvk arg0, fi$a arg1)
facing(Entity arg0, EntityAnchorArgument$Anchor arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
withLookingAt(Entity entity, EntityAnchorArgumentType$EntityAnchor anchor)
public CommandSourceStack
b(fby arg0)
facing(Vec3 arg0)
method_9221(class_243 arg0)
withLookingAt(Vec3d position)
public CommandSourceStack
a(eu arg0, bbc arg1)
withSigningContext(CommandSigningContext arg0, TaskChainer arg1)
method_43735(class_7448 arg0, class_7620 arg1)
withSignedArguments(SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue)
public Component
b()
getDisplayName()
method_9223()
getDisplayName()
public String
c()
getTextName()
method_9214()
getName()
public boolean
c(int arg0)
hasPermission(int arg0)
method_9259(int arg0)
hasPermissionLevel(int arg0)
public Vec3
d()
getPosition()
method_9222()
getPosition()
public ServerLevel
e()
getLevel()
method_9225()
getWorld()
public Entity
f()
getEntity()
method_9228()
getEntity()
public Entity
g()
getEntityOrException()
method_9229()
getEntityOrThrow()
public ServerPlayer
h()
getPlayerOrException()
method_9207()
getPlayerOrThrow()
public ServerPlayer
i()
getPlayer()
method_44023()
getPlayer()
public boolean
j()
isPlayer()
method_43737()
isExecutedByPlayer()
public Vec2
k()
getRotation()
method_9210()
getRotation()
public MinecraftServer
l()
getServer()
method_9211()
getServer()
public EntityAnchorArgument$Anchor
m()
getAnchor()
method_9219()
getEntityAnchor()
public CommandSigningContext
n()
getSigningContext()
method_43738()
getSignedArguments()
public TaskChainer
o()
getChatMessageChainer()
method_44909()
getMessageChainTaskQueue()
public boolean
a(asi arg0)
shouldFilterMessageTo(ServerPlayer arg0)
method_45067(class_3222 arg0)
shouldFilterText(ServerPlayerEntity recipient)
public void
a(yk arg0, boolean arg1, xr$a arg2)
sendChatMessage(OutgoingChatMessage arg0, boolean arg1, ChatType$Bound arg2)
method_44749(class_7604 arg0, boolean arg1, class_2556$class_7602 arg2)
sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType$Parameters params)
public void
a(xv arg0)
sendSystemMessage(Component arg0)
method_45068(class_2561 arg0)
sendMessage(Text message)
public void
a(Supplier<xv> arg0, boolean arg1)
sendSuccess(Supplier<Component> arg0, boolean arg1)
method_9226(Supplier<class_2561> arg0, boolean arg1)
sendFeedback(Supplier<Text> feedbackSupplier, boolean broadcastToOps)
private void
c(xv arg0)
broadcastToAdmins(Component arg0)
method_9212(class_2561 arg0)
sendToOps(Text message)
public void
b(xv arg0)
sendFailure(Component arg0)
method_9213(class_2561 arg0)
sendError(Text message)
public CommandResultCallback
p()
callback()
method_54881()
getReturnValueConsumer()
public Collection<String>
q()
getOnlinePlayerNames()
method_9262()
getPlayerNames()
public Collection<String>
r()
getAllTeams()
method_9267()
getTeamNames()
public Stream<ResourceLocation>
s()
getAvailableSounds()
method_9254()
getSoundIds()
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.context.CommandContext<?> arg0)
customSuggestion(com.mojang.brigadier.context.CommandContext<?> arg0)
method_9261(com.mojang.brigadier.context.CommandContext<?> arg0)
getCompletions(com.mojang.brigadier.context.CommandContext<?> arg0)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(aly<? extends kd<?>> arg0, fb$a arg1, com.mojang.brigadier.suggestion.SuggestionsBuilder arg2, com.mojang.brigadier.context.CommandContext<?> arg3)
suggestRegistryElements(ResourceKey<? extends Registry<?>> arg0, SharedSuggestionProvider$ElementSuggestionType arg1, com.mojang.brigadier.suggestion.SuggestionsBuilder arg2, com.mojang.brigadier.context.CommandContext<?> arg3)
method_41213(class_5321<? extends class_2378<?>> arg0, class_2172$class_7078 arg1, com.mojang.brigadier.suggestion.SuggestionsBuilder arg2, com.mojang.brigadier.context.CommandContext<?> arg3)
listIdSuggestions(RegistryKey<? extends Registry<?>> arg0, CommandSource$SuggestedIdType arg1, com.mojang.brigadier.suggestion.SuggestionsBuilder arg2, com.mojang.brigadier.context.CommandContext<?> arg3)
public Set<ResourceKey<Level>>
t()
levels()
method_29310()
getWorldKeys()
public RegistryAccess
u()
registryAccess()
method_30497()
getRegistryManager()
public FeatureFlagSet
v()
enabledFeatures()
method_45549()
getEnabledFeatures()
public com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
w()
dispatcher()
method_54310()
getDispatcher()
public void
a(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, hz arg3)
handleError(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, TraceCallbacks arg3)
method_54491(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, class_6346 arg3)
handleException(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, Tracer arg3)
public boolean
x()
isSilent()
method_54882()
isSilent()