net.minecraft.server.command

public class ServerCommandSource

implements CommandSource

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

Field summary

Modifier and TypeField
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
a
ERROR_NOT_PLAYER
field_9824
REQUIRES_PLAYER_EXCEPTION
f_eqbsiliu
f_81286_
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
b
ERROR_NOT_ENTITY
field_9827
REQUIRES_ENTITY_EXCEPTION
f_gsmjatmo
f_81287_
private final CommandOutput
c
source
field_9819
output
f_jgksdyeo
f_81288_
private final Vec3d
d
worldPosition
field_9817
position
f_clxqynja
f_81289_
private final ServerWorld
e
level
field_9828
world
f_unafdtef
f_81290_
private final int
f
permissionLevel
field_9815
level
f_iqamtfww
f_81291_
private final String
g
textName
field_9826
name
f_lsvbdloo
f_81292_
private final Text
h
displayName
field_9825
displayName
f_ubuztbnb
f_81293_
private final MinecraftServer
i
server
field_9818
server
f_gjlllyce
f_81294_
private final boolean
j
silent
field_9823
silent
f_vpispgtf
f_81295_
private final Entity
k
entity
field_9820
entity
f_oyhtmgnq
f_81296_
private final com.mojang.brigadier.ResultConsumer<ServerCommandSource>
l
consumer
field_9821
resultConsumer
f_fpjuuwbd
f_81297_
private final EntityAnchorArgumentType$EntityAnchor
m
anchor
field_9816
entityAnchor
f_emcmwdsj
f_81298_
private final Vec2f
n
rotation
field_9822
rotation
f_pzptpvma
f_81299_

Constructor summary

ModifierConstructor
public (CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, Entity entity)
protected (CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, Entity entity, boolean silent, com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType$EntityAnchor entityAnchor)

Method summary

Modifier and TypeMethod
public ServerCommandSource
a(dl arg0)
withSource(CommandSource arg0)
method_36321(class_2165 arg0)
withOutput(CommandOutput output)
m_fnufpobp(C_ngpvhugm arg0)
m_165484_(C_2890_ arg0)
public ServerCommandSource
a(awt arg0)
withEntity(Entity arg0)
method_9232(class_1297 arg0)
withEntity(Entity entity)
m_tzczuvds(C_astfners arg0)
m_81329_(C_507_ arg0)
public ServerCommandSource
a(dom arg0)
withPosition(Vec3 arg0)
method_9208(class_243 arg0)
withPosition(Vec3d position)
m_snsmkbjm(C_vgpupfxx arg0)
m_81348_(C_3046_ arg0)
public ServerCommandSource
a(dol arg0)
withRotation(Vec2 arg0)
method_9216(class_241 arg0)
withRotation(Vec2f rotation)
m_lxxpdexm(C_krlwdsom arg0)
m_81346_(C_3045_ arg0)
public ServerCommandSource
a(com.mojang.brigadier.ResultConsumer<dm> arg0)
withCallback(com.mojang.brigadier.ResultConsumer<CommandSourceStack> arg0)
method_9231(com.mojang.brigadier.ResultConsumer<class_2168> arg0)
withConsumer(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer)
m_mfybggux(com.mojang.brigadier.ResultConsumer<C_pennblrk> arg0)
m_81334_(com.mojang.brigadier.ResultConsumer<C_2969_> arg0)
public ServerCommandSource
a(com.mojang.brigadier.ResultConsumer<dm> o, BinaryOperator<com.mojang.brigadier.ResultConsumer<dm>> arg1)
withCallback(com.mojang.brigadier.ResultConsumer<CommandSourceStack> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSourceStack>> arg1)
method_9209(com.mojang.brigadier.ResultConsumer<class_2168> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<class_2168>> arg1)
mergeConsumers(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> merger)
m_kccuxtbb(com.mojang.brigadier.ResultConsumer<C_pennblrk> arg0, BinaryOperator<com.mojang.brigadier.ResultConsumer<C_pennblrk>> arg1)
m_81336_(com.mojang.brigadier.ResultConsumer<C_2969_> p_81338_, BinaryOperator<com.mojang.brigadier.ResultConsumer<C_2969_>> arg1)
public ServerCommandSource
a()
withSuppressedOutput()
method_9217()
withSilent()
m_jwydasrx()
m_81324_()
public ServerCommandSource
a(int arg0)
withPermission(int arg0)
method_9206(int arg0)
withLevel(int level)
m_ezimijzj(int arg0)
m_81325_(int arg0)
public ServerCommandSource
b(int arg0)
withMaximumPermission(int arg0)
method_9230(int arg0)
withMaxLevel(int level)
m_mjeflcil(int arg0)
m_81358_(int arg0)
public ServerCommandSource
a(dv$a arg0)
withAnchor(EntityAnchorArgument$Anchor arg0)
method_9218(class_2183$class_2184 arg0)
withEntityAnchor(EntityAnchorArgumentType$EntityAnchor anchor)
m_zsrnilsj(C_xzznbkxo$C_vqytrhtw arg0)
m_81350_(C_3361_$C_3362_ arg0)
public ServerCommandSource
a(adi arg0)
withLevel(ServerLevel arg0)
method_9227(class_3218 arg0)
withWorld(ServerWorld world)
m_ivnmlzet(C_bdwnwhiu arg0)
m_81327_(C_12_ arg0)
public ServerCommandSource
a(awt o, dv$a arg1)
facing(Entity arg0, EntityAnchorArgument$Anchor arg1)
method_9220(class_1297 arg0, class_2183$class_2184 arg1)
withLookingAt(Entity entity, EntityAnchorArgumentType$EntityAnchor anchor)
m_rxllehvf(C_astfners arg0, C_xzznbkxo$C_vqytrhtw arg1)
m_81331_(C_507_ p_81333_, C_3361_$C_3362_ arg1)
public ServerCommandSource
b(dom arg0)
facing(Vec3 arg0)
method_9221(class_243 arg0)
withLookingAt(Vec3d position)
m_qutkdoff(C_vgpupfxx arg0)
m_81364_(C_3046_ arg0)
public Text
b()
getDisplayName()
method_9223()
getDisplayName()
m_cafzqgph()
m_81357_()
public String
c()
getTextName()
method_9214()
getName()
m_vuuhcdeb()
m_81368_()
public boolean
c(int arg0)
hasPermission(int arg0)
method_9259(int arg0)
hasPermissionLevel(int arg0)
m_aqenybbl(int arg0)
m_6761_(int arg0)
public Vec3d
d()
getPosition()
method_9222()
getPosition()
m_zdiolfqs()
m_81371_()
public ServerWorld
e()
getLevel()
method_9225()
getWorld()
m_qcqaxvij()
m_81372_()
public Entity
f()
getEntity()
method_9228()
getEntity()
m_sfkqmmbn()
m_81373_()
public Entity
g()
getEntityOrException()
method_9229()
getEntityOrThrow()
m_djocmkpt()
m_81374_()
public ServerPlayerEntity
h()
getPlayerOrException()
method_9207()
getPlayer()
m_ytnipjhs()
m_81375_()
public Vec2f
i()
getRotation()
method_9210()
getRotation()
m_iokujiqe()
m_81376_()
public MinecraftServer
j()
getServer()
method_9211()
getServer()
m_zsmnixwg()
m_81377_()
public EntityAnchorArgumentType$EntityAnchor
k()
getAnchor()
method_9219()
getEntityAnchor()
m_epyayyjl()
m_81378_()
public void
a(pz o, boolean arg1)
sendSuccess(Component arg0, boolean arg1)
method_9226(class_2561 arg0, boolean arg1)
sendFeedback(Text message, boolean broadcastToOps)
m_eacbkqvv(C_rdaqiwdt arg0, boolean arg1)
m_81354_(C_4996_ p_81356_, boolean arg1)
private void
b(pz arg0)
broadcastToAdmins(Component arg0)
method_9212(class_2561 arg0)
sendToOps(Text message)
m_kwmorxvb(C_rdaqiwdt arg0)
m_81366_(C_4996_ arg0)
public void
a(pz arg0)
sendFailure(Component arg0)
method_9213(class_2561 arg0)
sendError(Text message)
m_tyzxzhqs(C_rdaqiwdt arg0)
m_81352_(C_4996_ arg0)
public void
a(com.mojang.brigadier.context.CommandContext<dm> o, boolean o, int arg2)
onCommandComplete(com.mojang.brigadier.context.CommandContext<CommandSourceStack> 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> context, boolean success, int result)
m_tknxizei(com.mojang.brigadier.context.CommandContext<C_pennblrk> arg0, boolean arg1, int arg2)
m_81342_(com.mojang.brigadier.context.CommandContext<C_2969_> p_81344_, boolean p_81345_, int arg2)
public Collection<String>
l()
getOnlinePlayerNames()
method_9262()
getPlayerNames()
m_sdmegyog()
m_5982_()
public Collection<String>
m()
getAllTeams()
method_9267()
getTeamNames()
m_zslipvel()
m_5983_()
public Collection<Identifier>
n()
getAvailableSoundEvents()
method_9254()
getSoundIds()
m_wpagzjoc()
m_5984_()
public Stream<Identifier>
o()
getRecipeNames()
method_9273()
getRecipeIds()
m_sibutfci()
m_6860_()
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
a(com.mojang.brigadier.context.CommandContext<dp> o, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
customSuggestion(com.mojang.brigadier.context.CommandContext<SharedSuggestionProvider> 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)
m_ucxbakal(com.mojang.brigadier.context.CommandContext<C_sasfholk> arg0, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
m_5497_(com.mojang.brigadier.context.CommandContext<C_3063_> p_81341_, com.mojang.brigadier.suggestion.SuggestionsBuilder arg1)
public Set<RegistryKey<World>>
p()
levels()
method_29310()
getWorldKeys()
m_kduuyfdv()
m_6553_()
public DynamicRegistryManager
q()
registryAccess()
method_30497()
getRegistryManager()
m_kvcssxlr()
m_5894_()