net.minecraft.commands

public class CommandSourceStack

implements ExecutionCommandSource<CommandSourceStack>, SharedSuggestionProvider

ek
net.minecraft.commands.CommandSourceStack
net.minecraft.class_2168

Field summary

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

Constructor summary

ModifierConstructor
public (CommandSource arg0, Vec3 arg1, Vec2 arg2, ServerLevel arg3, int arg4, String arg5, Component arg6, MinecraftServer arg7, Entity arg8)
protected (CommandSource arg0, Vec3 arg1, Vec2 arg2, ServerLevel arg3, int arg4, String arg5, Component arg6, MinecraftServer arg7, Entity arg8, boolean arg9, CommandResultCallback arg10, EntityAnchorArgument$Anchor arg11, CommandSigningContext arg12, TaskChainer arg13)

Method summary

Modifier and TypeMethod
public CommandSourceStack
a(ej arg0)
withSource(CommandSource arg0)
method_36321(class_2165 arg0)
public CommandSourceStack
a(bxs arg0)
withEntity(Entity arg0)
method_9232(class_1297 arg0)
public CommandSourceStack
a(fgx arg0)
withPosition(Vec3 arg0)
method_9208(class_243 arg0)
public CommandSourceStack
a(fgw arg0)
withRotation(Vec2 arg0)
method_9216(class_241 arg0)
public CommandSourceStack
a(eh arg0)
withCallback(CommandResultCallback arg0)
method_9231(class_8935 arg0)
public CommandSourceStack
a(eh arg0, BinaryOperator<eh> arg1)
withCallback(CommandResultCallback arg0, BinaryOperator<CommandResultCallback> arg1)
method_9209(class_8935 arg0, BinaryOperator<class_8935> arg1)
public CommandSourceStack
a()
withSuppressedOutput()
method_9217()
public CommandSourceStack
a(int arg0)
withPermission(int arg0)
method_9206(int arg0)
public CommandSourceStack
b(int arg0)
withMaximumPermission(int arg0)
method_9230(int arg0)
public CommandSourceStack
a(ew$a arg0)
withAnchor(EntityAnchorArgument$Anchor arg0)
method_9218(class_2183$class_2184 arg0)
public CommandSourceStack
a(asi arg0)
withLevel(ServerLevel arg0)
method_9227(class_3218 arg0)
public CommandSourceStack
a(bxs arg0, ew$a arg1)
facing(Entity arg0, EntityAnchorArgument$Anchor arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
public CommandSourceStack
b(fgx arg0)
facing(Vec3 arg0)
method_9221(class_243 arg0)
public CommandSourceStack
a(ei arg0, bbi arg1)
withSigningContext(CommandSigningContext arg0, TaskChainer arg1)
method_43735(class_7448 arg0, class_7620 arg1)
public Component
b()
getDisplayName()
method_9223()
public String
c()
getTextName()
method_9214()
public boolean
c(int arg0)
hasPermission(int arg0)
method_9259(int arg0)
public Vec3
d()
getPosition()
method_9222()
public ServerLevel
e()
getLevel()
method_9225()
public Entity
f()
getEntity()
method_9228()
public Entity
g()
getEntityOrException()
method_9229()
public ServerPlayer
h()
getPlayerOrException()
method_9207()
public ServerPlayer
i()
getPlayer()
method_44023()
public boolean
j()
isPlayer()
method_43737()
public Vec2
k()
getRotation()
method_9210()
public MinecraftServer
l()
getServer()
method_9211()
public EntityAnchorArgument$Anchor
m()
getAnchor()
method_9219()
public CommandSigningContext
n()
getSigningContext()
method_43738()
public TaskChainer
o()
getChatMessageChainer()
method_44909()
public boolean
a(asj arg0)
shouldFilterMessageTo(ServerPlayer arg0)
method_45067(class_3222 arg0)
public void
a(xz arg0, boolean arg1, xg$a arg2)
sendChatMessage(OutgoingChatMessage arg0, boolean arg1, ChatType$Bound arg2)
method_44749(class_7604 arg0, boolean arg1, class_2556$class_7602 arg2)
public void
a(xk arg0)
sendSystemMessage(Component arg0)
method_45068(class_2561 arg0)
public void
a(Supplier<xk> arg0, boolean arg1)
sendSuccess(Supplier<Component> arg0, boolean arg1)
method_9226(Supplier<class_2561> arg0, boolean arg1)
private void
c(xk arg0)
broadcastToAdmins(Component arg0)
method_9212(class_2561 arg0)
public void
b(xk arg0)
sendFailure(Component arg0)
method_9213(class_2561 arg0)
public CommandResultCallback
p()
callback()
method_54881()
public Collection<String>
q()
getOnlinePlayerNames()
method_9262()
public Collection<String>
r()
getAllTeams()
method_9267()
public Stream<ResourceLocation>
s()
getAvailableSounds()
method_9254()
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)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(alv<? extends jv<?>> arg0, ep$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)
public Set<ResourceKey<Level>>
t()
levels()
method_29310()
public RegistryAccess
u()
registryAccess()
method_30497()
public FeatureFlagSet
v()
enabledFeatures()
method_45549()
public com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
w()
dispatcher()
method_54310()
public void
a(com.mojang.brigadier.exceptions.CommandExceptionType arg0, com.mojang.brigadier.Message arg1, boolean arg2, hq 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)
public boolean
x()
isSilent()
method_54882()