net.minecraft.commands

public class CommandSourceStack

implements ExecutionCommandSource<CommandSourceStack>, SharedSuggestionProvider

et
net.minecraft.commands.CommandSourceStack
net.minecraft.class_2168
net.minecraft.unmapped.C_pennblrk
net.minecraft.server.command.ServerCommandSource
net.minecraft.server.command.ServerCommandSource
net.minecraft.src.C_2969_
net.minecraft.commands.CommandListenerWrapper

Field summary

Modifier and TypeField
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
ERROR_NOT_PLAYER
field_9824
f_eqbsiliu
REQUIRES_PLAYER_EXCEPTION
REQUIRES_PLAYER_EXCEPTION
f_81286_
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
b
ERROR_NOT_ENTITY
field_9827
f_gsmjatmo
REQUIRES_ENTITY_EXCEPTION
REQUIRES_ENTITY_EXCEPTION
f_81287_
private final CommandSource
c
source
field_9819
f_jgksdyeo
output
output
f_81288_
private final Vec3
d
worldPosition
field_9817
f_clxqynja
position
position
f_81289_
private final ServerLevel
e
level
field_9828
f_unafdtef
world
world
f_81290_
private final int
f
permissionLevel
field_9815
f_iqamtfww
level
level
f_81291_
private final String
g
textName
field_9826
f_lsvbdloo
name
name
f_81292_
private final Component
h
displayName
field_9825
f_ubuztbnb
displayName
displayName
f_81293_
private final MinecraftServer
i
server
field_9818
f_gjlllyce
server
server
f_81294_
private final boolean
j
silent
field_9823
f_vpispgtf
silent
silent
f_81295_
private final Entity
k
entity
field_9820
f_oyhtmgnq
entity
entity
f_81296_
private final CommandResultCallback
l
resultCallback
field_47159
f_pvmyrbmo
returnValueConsumer
resultCallback
f_302754_
private final EntityAnchorArgument$Anchor
m
anchor
field_9816
f_emcmwdsj
entityAnchor
entityAnchor
f_81298_
private final Vec2
n
rotation
field_9822
f_pzptpvma
rotation
rotation
f_81299_
private final CommandSigningContext
o
signingContext
field_39183
f_afcawcvq
signedArguments
f_230878_
private final TaskChainer
p
chatMessageChainer
field_39834
f_flcykxcn
messageChainTaskQueue
f_241659_

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(es arg0)
withSource(CommandSource arg0)
method_36321(class_2165 arg0)
m_fnufpobp(C_ngpvhugm arg0)
withOutput(CommandOutput output)
withOutput(CommandOutput output)
m_165484_(C_2890_ arg0)
public CommandSourceStack
a(bsr arg0)
withEntity(Entity arg0)
method_9232(class_1297 arg0)
m_tzczuvds(C_astfners arg0)
withEntity(Entity entity)
withEntity(Entity entity)
m_81329_(C_507_ arg0)
public CommandSourceStack
a(exc arg0)
withPosition(Vec3 arg0)
method_9208(class_243 arg0)
m_snsmkbjm(C_vgpupfxx arg0)
withPosition(Vec3d position)
withPosition(Vec3d position)
m_81348_(C_3046_ arg0)
public CommandSourceStack
a(exb arg0)
withRotation(Vec2 arg0)
method_9216(class_241 arg0)
m_lxxpdexm(C_krlwdsom arg0)
withRotation(Vec2f rotation)
withRotation(Vec2f rotation)
m_81346_(C_3045_ arg0)
public CommandSourceStack
a(eq arg0)
withCallback(CommandResultCallback arg0)
method_9231(class_8935 arg0)
m_hdkhqxfi(C_aelvdefh arg0)
withReturnValueConsumer(ReturnValueConsumer arg0)
withResultCallback(CommandResultCallback arg0)
m_81334_(C_302039_ arg0)
public CommandSourceStack
a(eq arg0, BinaryOperator<eq> arg1)
withCallback(CommandResultCallback arg0, BinaryOperator<CommandResultCallback> arg1)
method_9209(class_8935 arg0, BinaryOperator<class_8935> arg1)
m_epwgklnj(C_aelvdefh arg0, BinaryOperator<C_aelvdefh> arg1)
mergeReturnValueConsumers(ReturnValueConsumer returnValueConsumer, BinaryOperator<ReturnValueConsumer> merger)
withChainedResultCallback(CommandResultCallback resultCallback, BinaryOperator<CommandResultCallback> chainingFunction)
m_81336_(C_302039_ p_81338_, BinaryOperator<C_302039_> arg1)
public CommandSourceStack
a()
withSuppressedOutput()
method_9217()
m_jwydasrx()
withSilent()
withSilent()
m_81324_()
public CommandSourceStack
a(int arg0)
withPermission(int arg0)
method_9206(int arg0)
m_ezimijzj(int arg0)
withLevel(int level)
withLevel(int level)
m_81325_(int arg0)
public CommandSourceStack
b(int arg0)
withMaximumPermission(int arg0)
method_9230(int arg0)
m_mjeflcil(int arg0)
withMaxLevel(int level)
withMaxLevel(int level)
m_81358_(int arg0)
public CommandSourceStack
a(ff$a arg0)
withAnchor(EntityAnchorArgument$Anchor arg0)
method_9218(class_2183$class_2184 arg0)
m_zsrnilsj(C_xzznbkxo$C_vqytrhtw arg0)
withEntityAnchor(EntityAnchorArgumentType$EntityAnchor anchor)
withEntityAnchor(EntityAnchorArgumentType$EntityAnchor anchor)
m_81350_(C_3361_$C_3362_ arg0)
public CommandSourceStack
a(aqu arg0)
withLevel(ServerLevel arg0)
method_9227(class_3218 arg0)
m_ivnmlzet(C_bdwnwhiu arg0)
withWorld(ServerWorld world)
withWorld(ServerWorld world)
m_81327_(C_12_ arg0)
public CommandSourceStack
a(bsr arg0, ff$a arg1)
facing(Entity arg0, EntityAnchorArgument$Anchor arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
m_rxllehvf(C_astfners arg0, C_xzznbkxo$C_vqytrhtw arg1)
withLookingAt(Entity entity, EntityAnchorArgumentType$EntityAnchor anchor)
withLookingAt(Entity entity, EntityAnchorArgumentType$EntityAnchor anchor)
m_81331_(C_507_ p_81333_, C_3361_$C_3362_ arg1)
public CommandSourceStack
b(exc arg0)
facing(Vec3 arg0)
method_9221(class_243 arg0)
m_qutkdoff(C_vgpupfxx arg0)
withLookingAt(Vec3d position)
withLookingAt(Vec3d position)
m_81364_(C_3046_ arg0)
public CommandSourceStack
a(er arg0, azm arg1)
withSigningContext(CommandSigningContext arg0, TaskChainer arg1)
method_43735(class_7448 arg0, class_7620 arg1)
m_omucjrge(C_gbgdqure arg0, C_omvuxixf arg1)
withSignedArguments(SignedCommandArguments signedArguments, FutureQueue messageChainTaskQueue)
m_230893_(C_213308_ p_301144_, C_241579_ arg1)
public Component
b()
getDisplayName()
method_9223()
m_cafzqgph()
getDisplayName()
getDisplayName()
m_81357_()
public String
c()
getTextName()
method_9214()
m_vuuhcdeb()
getName()
getName()
m_81368_()
public boolean
c(int arg0)
hasPermission(int arg0)
method_9259(int arg0)
m_upznzolz(int arg0)
hasPermissionLevel(int arg0)
hasPermission(int arg0)
m_6761_(int arg0)
public Vec3
d()
getPosition()
method_9222()
m_zdiolfqs()
getPosition()
getPosition()
m_81371_()
public ServerLevel
e()
getLevel()
method_9225()
m_qcqaxvij()
getWorld()
getWorld()
m_81372_()
public Entity
f()
getEntity()
method_9228()
m_sfkqmmbn()
getEntity()
getEntity()
m_81373_()
public Entity
g()
getEntityOrException()
method_9229()
m_djocmkpt()
getEntityOrThrow()
getEntityOrThrow()
m_81374_()
public ServerPlayer
h()
getPlayerOrException()
method_9207()
m_ytnipjhs()
getPlayerOrThrow()
getPlayerOrThrow()
m_81375_()
public ServerPlayer
i()
getPlayer()
method_44023()
m_ozupobtn()
getPlayer()
getPlayer()
m_230896_()
public boolean
j()
isPlayer()
method_43737()
m_bjpnvosg()
isExecutedByPlayer()
isPlayer()
m_230897_()
public Vec2
k()
getRotation()
method_9210()
m_iokujiqe()
getRotation()
getRotation()
m_81376_()
public MinecraftServer
l()
getServer()
method_9211()
m_zsmnixwg()
getServer()
getServer()
m_81377_()
public EntityAnchorArgument$Anchor
m()
getAnchor()
method_9219()
m_epyayyjl()
getEntityAnchor()
getEntityAnchor()
m_81378_()
public CommandSigningContext
n()
getSigningContext()
method_43738()
m_xaojdvlt()
getSignedArguments()
m_230898_()
public TaskChainer
o()
getChatMessageChainer()
method_44909()
m_fhzbouul()
getMessageChainTaskQueue()
m_241923_()
public boolean
a(aqv arg0)
shouldFilterMessageTo(ServerPlayer arg0)
method_45067(class_3222 arg0)
m_fcdgmgjp(C_mxrobsgg arg0)
shouldFilterText(ServerPlayerEntity recipient)
getFilterText(ServerPlayerEntity player)
m_243061_(C_13_ arg0)
public void
a(xo arg0, boolean arg1, wv$a arg2)
sendChatMessage(OutgoingChatMessage arg0, boolean arg1, ChatType$Bound arg2)
method_44749(class_7604 arg0, boolean arg1, class_2556$class_7602 arg2)
m_xbyhnovt(C_glgnifxw arg0, boolean arg1, C_hasnsypd$C_iocvgdxe arg2)
sendChatMessage(SentMessage message, boolean filterMaskEnabled, MessageType$Parameters params)
sendMessage(OutgoingMessage message, boolean filterMaskEnabled, MessageType$Parameters parameters)
m_246719_(C_243559_ p_252146_, boolean p_250406_, C_4992_$C_240838_ arg2)
public void
a(wz arg0)
sendSystemMessage(Component arg0)
method_45068(class_2561 arg0)
m_dvpisqob(C_rdaqiwdt arg0)
sendMessage(Text message)
sendSystemMessage(Text message)
m_243053_(C_4996_ arg0)
public void
a(Supplier<wz> arg0, boolean arg1)
sendSuccess(Supplier<Component> arg0, boolean arg1)
method_9226(Supplier<class_2561> arg0, boolean arg1)
m_eacbkqvv(Supplier<C_rdaqiwdt> arg0, boolean arg1)
sendFeedback(Supplier<Text> feedbackSupplier, boolean broadcastToOps)
sendFeedback(Supplier<Text> feedbackSupplier, boolean broadcastToOps)
m_288197_(Supplier<C_4996_> p_289007_, boolean arg1)
private void
c(wz arg0)
broadcastToAdmins(Component arg0)
method_9212(class_2561 arg0)
m_kwmorxvb(C_rdaqiwdt arg0)
sendToOps(Text message)
sendToOps(Text message)
m_81366_(C_4996_ arg0)
public void
b(wz arg0)
sendFailure(Component arg0)
method_9213(class_2561 arg0)
m_tyzxzhqs(C_rdaqiwdt arg0)
sendError(Text message)
sendError(Text message)
m_81352_(C_4996_ arg0)
public CommandResultCallback
p()
callback()
method_54881()
m_wcsbwttp()
getReturnValueConsumer()
getResultCallback()
m_304794_()
public Collection<String>
q()
getOnlinePlayerNames()
method_9262()
m_sdmegyog()
getPlayerNames()
getPlayerNames()
m_5982_()
public Collection<String>
r()
getAllTeams()
method_9267()
m_zslipvel()
getTeamNames()
getTeamNames()
m_5983_()
public Stream<ResourceLocation>
s()
getAvailableSounds()
method_9254()
m_lrvfyszo()
getSoundIds()
getSoundIds()
m_5984_()
public Stream<ResourceLocation>
t()
getRecipeNames()
method_9273()
m_sibutfci()
getRecipeIds()
getRecipeIds()
m_6860_()
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)
m_ucxbakal(com.mojang.brigadier.context.CommandContext<?> arg0)
getCompletions(com.mojang.brigadier.context.CommandContext<?> arg0)
getCompletions(com.mojang.brigadier.context.CommandContext<?> arg0)
m_212155_(com.mojang.brigadier.context.CommandContext<?> arg0)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(akq<? extends jz<?>> arg0, ey$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)
m_uzuaopkd(C_xhhleach<? extends C_tqxyjqsk<?>> arg0, C_sasfholk$C_yjlyniph 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)
suggestRegistryElements(RegistryKey<? extends Registry<?>> arg0, CommandSource$ElementSuggestionType arg1, com.mojang.brigadier.suggestion.SuggestionsBuilder arg2, com.mojang.brigadier.context.CommandContext<?> arg3)
m_212095_(C_5264_<? extends C_4705_<?>> p_212331_, C_3063_$C_211817_ p_212332_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212333_, com.mojang.brigadier.context.CommandContext<?> arg3)
public Set<ResourceKey<Level>>
u()
levels()
method_29310()
m_kduuyfdv()
getWorldKeys()
getWorldKeys()
m_6553_()
public RegistryAccess
v()
registryAccess()
method_30497()
m_kvcssxlr()
getRegistryManager()
getRegistryManager()
m_5894_()
public FeatureFlagSet
w()
enabledFeatures()
method_45549()
m_fjnhrcro()
getEnabledFeatures()
getEnabledFlags()
m_245239_()
public com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
x()
dispatcher()
method_54310()
m_jsdktzpf()
getDispatcher()
getDispatcher()
m_305649_()
public void
a(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, hv 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)
m_pemjnugl(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, C_aqemmrby arg3)
handleException(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, Tracer arg3)
handleException(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, hv arg3)
m_305988_(com.mojang.brigadier.exceptions.CommandExceptionType p_311914_, com.mojang.brigadier.Message p_312997_, boolean p_310681_, C_301925_ arg3)
public boolean
y()
isSilent()
method_54882()
m_nfenpokw()
isSilent()
isSilent()
m_306225_()