net.minecraft.server.command.source

public class CommandSourceStack

implements SuggestionProvider

cd
net.minecraft.class_2168
net.minecraft.server.command.source.CommandSourceStack
net.minecraft.command.CommandSource
net.minecraft.command.CommandSource

Field summary

Modifier and TypeField
public static final SimpleCommandExceptionType
a
field_9824
NOT_PLAYER_EXCEPTION
field_197039_a
REQUIRES_PLAYER_EXCEPTION_TYPE
public static final SimpleCommandExceptionType
b
field_9827
NOT_ENTITY_EXCEPTION
field_197040_b
REQUIRES_ENTITY_EXCEPTION_TYPE
private final CommandSource
c
field_9819
source
field_197041_c
source
private final Vec3d
d
field_9817
pos
field_197042_d
pos
private final ServerWorld
e
field_9828
world
field_197043_e
world
private final int
f
field_9815
permissions
field_197044_f
permissionLevel
private final String
g
field_9826
name
field_197045_g
name
private final Text
h
field_9825
displayName
field_197046_h
displayName
private final MinecraftServer
i
field_9818
server
field_197047_i
server
private final boolean
j
field_9823
silent
field_197048_j
feedbackDisabled
private final Entity
k
field_9820
entity
field_197049_k
entity
private final ResultConsumer<CommandSourceStack>
l
field_9821
callback
field_197050_l
resultConsumer
private final AnchorArgument$Anchor
m
field_9816
anchor
field_201011_m
entityAnchorType
private final Vec2f
n
field_9822
rotation
field_201012_n
rotation

Constructor summary

ModifierConstructor
public (CommandSource source, Vec3d pos, Vec2f rotation, ServerWorld world, int permissions, String name, Text displayName, MinecraftServer server, Entity entity)
protected (CommandSource source, Vec3d pos, Vec2f rotation, ServerWorld world, int permissions, String name, Text displayName, MinecraftServer server, Entity entity, boolean silent, ResultConsumer<CommandSourceStack> callback, AnchorArgument$Anchor anchor)

Method summary

Modifier and TypeMethod
public CommandSourceStack
a(aii arg0)
method_9232(class_1297 arg0)
withEntity(Entity entity)
func_197024_a(Entity arg0)
withEntity(Entity entityIn)
public CommandSourceStack
a(crx arg0)
method_9208(class_243 arg0)
withPos(Vec3d pos)
func_201009_a(Vec3d arg0)
withPos(Vec3d posIn)
public CommandSourceStack
a(crw arg0)
method_9216(class_241 arg0)
withRotation(Vec2f rotation)
func_201007_a(Vec2f arg0)
withRotation(Vec2f pitchYawIn)
public CommandSourceStack
a(ResultConsumer<cd> arg0)
method_9231(com.mojang.brigadier.ResultConsumer<class_2168> arg0)
withCallback(com.mojang.brigadier.ResultConsumer<CommandSourceStack> callback)
func_197029_a(com.mojang.brigadier.ResultConsumer<CommandSource> arg0)
withResultConsumer(com.mojang.brigadier.ResultConsumer<CommandSource> resultConsumerIn)
public CommandSourceStack
a(ResultConsumer<cd> arg0, BinaryOperator<ResultConsumer<cd>> arg1)
method_9209(com.mojang.brigadier.ResultConsumer<class_2168> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<class_2168>> arg1)
withCallback(com.mojang.brigadier.ResultConsumer<CommandSourceStack> callback, BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>> chooser)
func_209550_a(com.mojang.brigadier.ResultConsumer<CommandSource> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> arg1)
withResultConsumer(com.mojang.brigadier.ResultConsumer<CommandSource> resultConsumerIn, BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> resultConsumerSelector)
public CommandSourceStack
a()
method_9217()
silent()
func_197031_a()
withFeedbackDisabled()
public CommandSourceStack
a(int arg0)
method_9206(int arg0)
withPermissions(int permissions)
func_197033_a(int arg0)
withPermissionLevel(int arg0)
public CommandSourceStack
b(int arg0)
method_9230(int arg0)
withMaxPermissions(int maxPermissions)
func_197026_b(int arg0)
withMinPermissionLevel(int arg0)
public CommandSourceStack
a(ck$a arg0)
method_9218(class_2183$class_2184 arg0)
withAnchor(AnchorArgument$Anchor anchor)
func_201010_a(EntityAnchorArgument$Type arg0)
withEntityAnchorType(EntityAnchorArgument$Type entityAnchorTypeIn)
public CommandSourceStack
a(vg arg0)
method_9227(class_3218 arg0)
withWorld(ServerWorld world)
func_201003_a(ServerWorld arg0)
withWorld(ServerWorld worldIn)
public CommandSourceStack
a(aii arg0, ck$a arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
withFacing(Entity entity, AnchorArgument$Anchor anchor)
func_201006_a(Entity arg0, EntityAnchorArgument$Type arg1)
withRotation(Entity entityIn, EntityAnchorArgument$Type anchorType)
public CommandSourceStack
b(crx arg0)
method_9221(class_243 arg0)
withFacing(Vec3d rotation)
func_201005_b(Vec3d arg0)
withRotation(Vec3d lookPos)
public Text
b()
method_9223()
getDisplayName()
func_197019_b()
getDisplayName()
public String
c()
method_9214()
getName()
func_197037_c()
getName()
public boolean
c(int arg0)
method_9259(int arg0)
hasPermissions(int arg0)
func_197034_c(int arg0)
hasPermissionLevel(int arg0)
public Vec3d
d()
method_9222()
getPos()
func_197036_d()
getPos()
public ServerWorld
e()
method_9225()
getWorld()
func_197023_e()
getWorld()
public Entity
f()
method_9228()
getEntity()
func_197022_f()
getEntity()
public Entity
g()
method_9229()
getEntityOrThrow()
func_197027_g()
assertIsEntity()
public ServerPlayerEntity
h()
method_9207()
getPlayerOrThrow()
func_197035_h()
asPlayer()
public Vec2f
i()
method_9210()
getRotation()
func_201004_i()
getRotation()
public MinecraftServer
j()
method_9211()
getServer()
func_197028_i()
getServer()
public AnchorArgument$Anchor
k()
method_9219()
getAnchor()
func_201008_k()
getEntityAnchorType()
public void
a(jm arg0, boolean arg1)
method_9226(class_2561 arg0, boolean arg1)
sendSuccess(Text message, boolean broadcastToOps)
func_197030_a(ITextComponent arg0, boolean arg1)
sendFeedback(ITextComponent message, boolean allowLogging)
private void
b(jm arg0)
method_9212(class_2561 arg0)
broadcastToOps(Text message)
func_197020_b(ITextComponent arg0)
logFeedback(ITextComponent message)
public void
a(jm arg0)
method_9213(class_2561 arg0)
sendFailure(Text message)
func_197021_a(ITextComponent arg0)
sendErrorMessage(ITextComponent message)
public void
a(CommandContext<cd> arg0, boolean arg1, int arg2)
method_9215(com.mojang.brigadier.context.CommandContext<class_2168> arg0, boolean arg1, int arg2)
onCommandComplete(com.mojang.brigadier.context.CommandContext<CommandSourceStack> ctx, boolean success, int result)
func_197038_a(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, boolean arg1, int arg2)
onCommandComplete(com.mojang.brigadier.context.CommandContext<CommandSource> context, boolean success, int result)
public Collection<String>
l()
method_9262()
getPlayerNames()
func_197011_j()
getPlayerNames()
public Collection<String>
m()
method_9267()
getTeams()
func_197012_k()
getTeamNames()
public Collection<Identifier>
n()
method_9254()
getAvailableSounds()
func_197010_l()
getSoundResourceLocations()
public Stream<Identifier>
o()
method_9273()
getAvailableRecipes()
func_199612_m()
getRecipeResourceLocations()
public CompletableFuture<Suggestions>
a(CommandContext<cf> arg0, SuggestionsBuilder arg1)
method_9261(com.mojang.brigadier.context.CommandContext<class_2172> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
suggest(com.mojang.brigadier.context.CommandContext<SuggestionProvider> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
func_197009_a(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
getSuggestionsFromServer(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)