net.minecraft.server.command

public class ServerCommandSource

implements CommandSource

cd
net.minecraft.class_2168
net.minecraft.server.command.ServerCommandSource
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
REQUIRES_PLAYER_EXCEPTION
NOT_PLAYER_EXCEPTION
field_197039_a
REQUIRES_PLAYER_EXCEPTION_TYPE
public static final SimpleCommandExceptionType
b
field_9827
REQUIRES_ENTITY_EXCEPTION
NOT_ENTITY_EXCEPTION
field_197040_b
REQUIRES_ENTITY_EXCEPTION_TYPE
private final CommandOutput
c
field_9819
output
source
field_197041_c
source
private final Vec3d
d
field_9817
position
pos
field_197042_d
pos
private final ServerWorld
e
field_9828
world
world
field_197043_e
world
private final int
f
field_9815
level
permissions
field_197044_f
permissionLevel
private final String
g
field_9826
simpleName
name
field_197045_g
name
private final Text
h
field_9825
name
displayName
field_197046_h
displayName
private final MinecraftServer
i
field_9818
minecraftServer
server
field_197047_i
server
private final boolean
j
field_9823
silent
silent
field_197048_j
feedbackDisabled
private final Entity
k
field_9820
entity
entity
field_197049_k
entity
private final ResultConsumer<ServerCommandSource>
l
field_9821
resultConsumer
callback
field_197050_l
resultConsumer
private final EntityAnchorArgumentType$EntityAnchor
m
field_9816
entityAnchor
anchor
field_201011_m
entityAnchorType
private final Vec2f
n
field_9822
rotation
rotation
field_201012_n
rotation

Constructor summary

ModifierConstructor
public (CommandOutput source, Vec3d pos, Vec2f rotation, ServerWorld world, int permissions, String name, Text displayName, MinecraftServer server, Entity entity)
protected (CommandOutput source, Vec3d pos, Vec2f rotation, ServerWorld world, int permissions, String name, Text displayName, MinecraftServer server, Entity entity, boolean silent, ResultConsumer<ServerCommandSource> callback, EntityAnchorArgumentType$EntityAnchor anchor)

Method summary

Modifier and TypeMethod
public ServerCommandSource
a(ail arg0)
method_9232(class_1297 arg0)
withEntity(Entity arg0)
withEntity(Entity entity)
func_197024_a(Entity arg0)
withEntity(Entity entityIn)
public ServerCommandSource
a(csb arg0)
method_9208(class_243 arg0)
withPosition(Vec3d arg0)
withPos(Vec3d pos)
func_201009_a(Vec3d arg0)
withPos(Vec3d posIn)
public ServerCommandSource
a(csa arg0)
method_9216(class_241 arg0)
withRotation(Vec2f arg0)
withRotation(Vec2f rotation)
func_201007_a(Vec2f arg0)
withRotation(Vec2f pitchYawIn)
public ServerCommandSource
a(ResultConsumer<cd> arg0)
method_9231(com.mojang.brigadier.ResultConsumer<class_2168> arg0)
withConsumer(com.mojang.brigadier.ResultConsumer<ServerCommandSource> 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 ServerCommandSource
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)
mergeConsumers(com.mojang.brigadier.ResultConsumer<ServerCommandSource> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> 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 ServerCommandSource
a()
method_9217()
withSilent()
silent()
func_197031_a()
withFeedbackDisabled()
public ServerCommandSource
a(int arg0)
method_9206(int arg0)
withLevel(int arg0)
withPermissions(int permissions)
func_197033_a(int arg0)
withPermissionLevel(int arg0)
public ServerCommandSource
b(int arg0)
method_9230(int arg0)
withMaxLevel(int arg0)
withMaxPermissions(int maxPermissions)
func_197026_b(int arg0)
withMinPermissionLevel(int arg0)
public ServerCommandSource
a(ck$a arg0)
method_9218(class_2183$class_2184 arg0)
withEntityAnchor(EntityAnchorArgumentType$EntityAnchor arg0)
withAnchor(AnchorArgument$Anchor anchor)
func_201010_a(EntityAnchorArgument$Type arg0)
withEntityAnchorType(EntityAnchorArgument$Type entityAnchorTypeIn)
public ServerCommandSource
a(vi arg0)
method_9227(class_3218 arg0)
withWorld(ServerWorld arg0)
withWorld(ServerWorld world)
func_201003_a(ServerWorld arg0)
withWorld(ServerWorld worldIn)
public ServerCommandSource
a(ail arg0, ck$a arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
withLookingAt(Entity arg0, EntityAnchorArgumentType$EntityAnchor arg1)
withFacing(Entity entity, AnchorArgument$Anchor anchor)
func_201006_a(Entity arg0, EntityAnchorArgument$Type arg1)
withRotation(Entity entityIn, EntityAnchorArgument$Type anchorType)
public ServerCommandSource
b(csb arg0)
method_9221(class_243 arg0)
withLookingAt(Vec3d arg0)
withFacing(Vec3d rotation)
func_201005_b(Vec3d arg0)
withRotation(Vec3d lookPos)
public Text
b()
method_9223()
getDisplayName()
getDisplayName()
func_197019_b()
getDisplayName()
public String
c()
method_9214()
getName()
getName()
func_197037_c()
getName()
public boolean
c(int arg0)
method_9259(int arg0)
hasPermissionLevel(int arg0)
hasPermissions(int arg0)
func_197034_c(int arg0)
hasPermissionLevel(int arg0)
public Vec3d
d()
method_9222()
getPosition()
getPos()
func_197036_d()
getPos()
public ServerWorld
e()
method_9225()
getWorld()
getWorld()
func_197023_e()
getWorld()
public Entity
f()
method_9228()
getEntity()
getEntity()
func_197022_f()
getEntity()
public Entity
g()
method_9229()
getEntityOrThrow()
getEntityOrThrow()
func_197027_g()
assertIsEntity()
public ServerPlayerEntity
h()
method_9207()
getPlayer()
getPlayerOrThrow()
func_197035_h()
asPlayer()
public Vec2f
i()
method_9210()
getRotation()
getRotation()
func_201004_i()
getRotation()
public MinecraftServer
j()
method_9211()
getMinecraftServer()
getServer()
func_197028_i()
getServer()
public EntityAnchorArgumentType$EntityAnchor
k()
method_9219()
getEntityAnchor()
getAnchor()
func_201008_k()
getEntityAnchorType()
public void
a(jn arg0, boolean arg1)
method_9226(class_2561 arg0, boolean arg1)
sendFeedback(Text arg0, boolean arg1)
sendSuccess(Text message, boolean broadcastToOps)
func_197030_a(ITextComponent arg0, boolean arg1)
sendFeedback(ITextComponent message, boolean allowLogging)
private void
b(jn arg0)
method_9212(class_2561 arg0)
sendToOps(Text arg0)
broadcastToOps(Text message)
func_197020_b(ITextComponent arg0)
logFeedback(ITextComponent message)
public void
a(jn arg0)
method_9213(class_2561 arg0)
sendError(Text 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<ServerCommandSource> 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()
getPlayerNames()
func_197011_j()
getPlayerNames()
public Collection<String>
m()
method_9267()
getTeamNames()
getTeams()
func_197012_k()
getTeamNames()
public Collection<Identifier>
n()
method_9254()
getSoundIds()
getAvailableSounds()
func_197010_l()
getSoundResourceLocations()
public Stream<Identifier>
o()
method_9273()
getRecipeIds()
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)
getCompletions(com.mojang.brigadier.context.CommandContext<CommandSource> 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)