public class CommandSource extends java.lang.Object implements ISuggestionProvider
ISuggestionProvider.Coordinates
修飾子とタイプ | フィールドと説明 |
---|---|
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
REQUIRES_ENTITY_EXCEPTION_TYPE |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
REQUIRES_PLAYER_EXCEPTION_TYPE |
修飾子 | コンストラクタと説明 |
---|---|
|
CommandSource(ICommandSource p_i49552_1_,
Vec3d p_i49552_2_,
Vec2f p_i49552_3_,
ServerWorld p_i49552_4_,
int p_i49552_5_,
java.lang.String p_i49552_6_,
ITextComponent p_i49552_7_,
MinecraftServer p_i49552_8_,
Entity p_i49552_9_) |
protected |
CommandSource(ICommandSource p_i49553_1_,
Vec3d p_i49553_2_,
Vec2f p_i49553_3_,
ServerWorld p_i49553_4_,
int p_i49553_5_,
java.lang.String p_i49553_6_,
ITextComponent p_i49553_7_,
MinecraftServer p_i49553_8_,
Entity p_i49553_9_,
boolean p_i49553_10_,
com.mojang.brigadier.ResultConsumer<CommandSource> p_i49553_11_,
EntityAnchorArgument.Type p_i49553_12_) |
修飾子とタイプ | メソッドと説明 |
---|---|
ServerPlayerEntity |
asPlayer() |
Entity |
assertIsEntity() |
ITextComponent |
getDisplayName() |
Entity |
getEntity() |
EntityAnchorArgument.Type |
getEntityAnchorType() |
java.lang.String |
getName() |
java.util.Collection<java.lang.String> |
getPlayerNames() |
Vec3d |
getPos() |
java.util.stream.Stream<ResourceLocation> |
getRecipeResourceLocations() |
Vec2f |
getRotation() |
MinecraftServer |
getServer() |
java.util.Collection<ResourceLocation> |
getSoundResourceLocations() |
java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
getSuggestionsFromServer(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) |
java.util.Collection<java.lang.String> |
getTeamNames() |
ServerWorld |
getWorld() |
boolean |
hasPermissionLevel(int p_197034_1_) |
void |
onCommandComplete(com.mojang.brigadier.context.CommandContext<CommandSource> context,
boolean success,
int result) |
void |
sendErrorMessage(ITextComponent message) |
void |
sendFeedback(ITextComponent message,
boolean allowLogging) |
CommandSource |
withEntity(Entity entityIn) |
CommandSource |
withEntityAnchorType(EntityAnchorArgument.Type entityAnchorTypeIn) |
CommandSource |
withFeedbackDisabled() |
CommandSource |
withMinPermissionLevel(int p_197026_1_) |
CommandSource |
withPermissionLevel(int p_197033_1_) |
CommandSource |
withPos(Vec3d posIn) |
CommandSource |
withResultConsumer(com.mojang.brigadier.ResultConsumer<CommandSource> resultConsumerIn) |
CommandSource |
withResultConsumer(com.mojang.brigadier.ResultConsumer<CommandSource> resultConsumerIn,
java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> resultConsumerSelector) |
CommandSource |
withRotation(Entity entityIn,
EntityAnchorArgument.Type anchorType) |
CommandSource |
withRotation(Vec2f pitchYawIn) |
CommandSource |
withRotation(Vec3d lookPos) |
CommandSource |
withWorld(ServerWorld worldIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_201725_a, func_209000_a, func_210511_a, func_210512_a, func_210514_a, func_211269_a, func_212476_a, func_217293_r, func_217294_q, getTargetedEntity, suggest, suggest, suggest, suggestIterable, suggestIterable
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_PLAYER_EXCEPTION_TYPE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REQUIRES_ENTITY_EXCEPTION_TYPE
public CommandSource(ICommandSource p_i49552_1_, Vec3d p_i49552_2_, Vec2f p_i49552_3_, ServerWorld p_i49552_4_, int p_i49552_5_, java.lang.String p_i49552_6_, ITextComponent p_i49552_7_, MinecraftServer p_i49552_8_, @Nullable Entity p_i49552_9_)
protected CommandSource(ICommandSource p_i49553_1_, Vec3d p_i49553_2_, Vec2f p_i49553_3_, ServerWorld p_i49553_4_, int p_i49553_5_, java.lang.String p_i49553_6_, ITextComponent p_i49553_7_, MinecraftServer p_i49553_8_, @Nullable Entity p_i49553_9_, boolean p_i49553_10_, com.mojang.brigadier.ResultConsumer<CommandSource> p_i49553_11_, EntityAnchorArgument.Type p_i49553_12_)
public CommandSource withEntity(Entity entityIn)
public CommandSource withPos(Vec3d posIn)
public CommandSource withRotation(Vec2f pitchYawIn)
public CommandSource withResultConsumer(com.mojang.brigadier.ResultConsumer<CommandSource> resultConsumerIn)
public CommandSource withResultConsumer(com.mojang.brigadier.ResultConsumer<CommandSource> resultConsumerIn, java.util.function.BinaryOperator<com.mojang.brigadier.ResultConsumer<CommandSource>> resultConsumerSelector)
public CommandSource withFeedbackDisabled()
public CommandSource withPermissionLevel(int p_197033_1_)
public CommandSource withMinPermissionLevel(int p_197026_1_)
public CommandSource withEntityAnchorType(EntityAnchorArgument.Type entityAnchorTypeIn)
public CommandSource withWorld(ServerWorld worldIn)
public CommandSource withRotation(Entity entityIn, EntityAnchorArgument.Type anchorType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public CommandSource withRotation(Vec3d lookPos) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public ITextComponent getDisplayName()
public java.lang.String getName()
public boolean hasPermissionLevel(int p_197034_1_)
hasPermissionLevel
インタフェース内 ISuggestionProvider
public Vec3d getPos()
public ServerWorld getWorld()
@Nullable public Entity getEntity()
public Entity assertIsEntity() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public ServerPlayerEntity asPlayer() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public Vec2f getRotation()
public MinecraftServer getServer()
public EntityAnchorArgument.Type getEntityAnchorType()
public void sendFeedback(ITextComponent message, boolean allowLogging)
public void sendErrorMessage(ITextComponent message)
public void onCommandComplete(com.mojang.brigadier.context.CommandContext<CommandSource> context, boolean success, int result)
public java.util.Collection<java.lang.String> getPlayerNames()
getPlayerNames
インタフェース内 ISuggestionProvider
public java.util.Collection<java.lang.String> getTeamNames()
getTeamNames
インタフェース内 ISuggestionProvider
public java.util.Collection<ResourceLocation> getSoundResourceLocations()
getSoundResourceLocations
インタフェース内 ISuggestionProvider
public java.util.stream.Stream<ResourceLocation> getRecipeResourceLocations()
getRecipeResourceLocations
インタフェース内 ISuggestionProvider
public java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestionsFromServer(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> context, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)
getSuggestionsFromServer
インタフェース内 ISuggestionProvider