net.minecraft.server.command

public class ServerCommandSource

implements CommandSource

cd
net.minecraft.class_2168
net.minecraft.server.command.ServerCommandSource
net.minecraft.command.CommandSource

Field summary

Modifier and TypeField
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
field_9824
REQUIRES_PLAYER_EXCEPTION
field_197039_a
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
b
field_9827
REQUIRES_ENTITY_EXCEPTION
field_197040_b
private final CommandOutput
c
field_9819
output
field_197041_c
private final Vec3d
d
field_9817
position
field_197042_d
private final ServerWorld
e
field_9828
world
field_197043_e
private final int
f
field_9815
level
field_197044_f
private final String
g
field_9826
simpleName
field_197045_g
private final Text
h
field_9825
name
field_197046_h
private final MinecraftServer
i
field_9818
minecraftServer
field_197047_i
private final boolean
j
field_9823
silent
field_197048_j
private final Entity
k
field_9820
entity
field_197049_k
private final com.mojang.brigadier.ResultConsumer<ServerCommandSource>
l
field_9821
resultConsumer
field_197050_l
private final EntityAnchorArgumentType$EntityAnchor
m
field_9816
entityAnchor
field_201011_m
private final Vec2f
n
field_9822
rotation
field_201012_n

Constructor summary

ModifierConstructor
public (CommandOutput arg0, Vec3d arg1, Vec2f arg2, ServerWorld arg3, int arg4, String arg5, Text arg6, MinecraftServer arg7, Entity arg8)
protected (CommandOutput arg0, Vec3d arg1, Vec2f arg2, ServerWorld arg3, int arg4, String arg5, Text arg6, MinecraftServer arg7, Entity arg8, boolean arg9, com.mojang.brigadier.ResultConsumer<ServerCommandSource> arg10, EntityAnchorArgumentType$EntityAnchor arg11)

Method summary

Modifier and TypeMethod
public ServerCommandSource
a(ail arg0)
method_9232(class_1297 arg0)
withEntity(Entity arg0)
func_197024_a(Entity arg0)
public ServerCommandSource
a(csb arg0)
method_9208(class_243 arg0)
withPosition(Vec3d arg0)
func_201009_a(Vec3d arg0)
public ServerCommandSource
a(csa arg0)
method_9216(class_241 arg0)
withRotation(Vec2f arg0)
func_201007_a(Vec2f arg0)
public ServerCommandSource
a(com.mojang.brigadier.ResultConsumer<cd> arg0)
method_9231(com.mojang.brigadier.ResultConsumer<class_2168> arg0)
withConsumer(com.mojang.brigadier.ResultConsumer<ServerCommandSource> arg0)
func_197029_a(com.mojang.brigadier.ResultConsumer<CommandSource> arg0)
public ServerCommandSource
a(com.mojang.brigadier.ResultConsumer<cd> arg0, BinaryOperator<com.mojang.brigadier.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)
func_209550_a(com.mojang.brigadier.ResultConsumer<CommandSource> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> arg1)
public ServerCommandSource
a()
method_9217()
withSilent()
func_197031_a()
public ServerCommandSource
a(int arg0)
method_9206(int arg0)
withLevel(int arg0)
func_197033_a(int arg0)
public ServerCommandSource
b(int arg0)
method_9230(int arg0)
withMaxLevel(int arg0)
func_197026_b(int arg0)
public ServerCommandSource
a(ck$a arg0)
method_9218(class_2183$class_2184 arg0)
withEntityAnchor(EntityAnchorArgumentType$EntityAnchor arg0)
func_201010_a(EntityAnchorArgument$Type arg0)
public ServerCommandSource
a(vi arg0)
method_9227(class_3218 arg0)
withWorld(ServerWorld arg0)
func_201003_a(ServerWorld arg0)
public ServerCommandSource
a(ail arg0, ck$a arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
withLookingAt(Entity arg0, EntityAnchorArgumentType$EntityAnchor arg1)
func_201006_a(Entity arg0, EntityAnchorArgument$Type arg1)
public ServerCommandSource
b(csb arg0)
method_9221(class_243 arg0)
withLookingAt(Vec3d arg0)
func_201005_b(Vec3d arg0)
public Text
b()
method_9223()
getDisplayName()
func_197019_b()
public String
c()
method_9214()
getName()
func_197037_c()
public boolean
c(int arg0)
method_9259(int arg0)
hasPermissionLevel(int arg0)
func_197034_c(int arg0)
public Vec3d
d()
method_9222()
getPosition()
func_197036_d()
public ServerWorld
e()
method_9225()
getWorld()
func_197023_e()
public Entity
f()
method_9228()
getEntity()
func_197022_f()
public Entity
g()
method_9229()
getEntityOrThrow()
func_197027_g()
public ServerPlayerEntity
h()
method_9207()
getPlayer()
func_197035_h()
public Vec2f
i()
method_9210()
getRotation()
func_201004_i()
public MinecraftServer
j()
method_9211()
getMinecraftServer()
func_197028_i()
public EntityAnchorArgumentType$EntityAnchor
k()
method_9219()
getEntityAnchor()
func_201008_k()
public void
a(jn arg0, boolean arg1)
method_9226(class_2561 arg0, boolean arg1)
sendFeedback(Text arg0, boolean arg1)
func_197030_a(ITextComponent arg0, boolean arg1)
private void
b(jn arg0)
method_9212(class_2561 arg0)
sendToOps(Text arg0)
func_197020_b(ITextComponent arg0)
public void
a(jn arg0)
method_9213(class_2561 arg0)
sendError(Text arg0)
func_197021_a(ITextComponent arg0)
public void
a(com.mojang.brigadier.context.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)
func_197038_a(com.mojang.brigadier.context.CommandContext<CommandSource> arg0, boolean arg1, int arg2)
public Collection<String>
l()
method_9262()
getPlayerNames()
func_197011_j()
public Collection<String>
m()
method_9267()
getTeamNames()
func_197012_k()
public Collection<Identifier>
n()
method_9254()
getSoundIds()
func_197010_l()
public Stream<Identifier>
o()
method_9273()
getRecipeIds()
func_199612_m()
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.context.CommandContext<cf> arg0, com.mojang.brigadier.suggestion.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)
func_197009_a(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)