Class CommandTests.ErrorCatchingStack
java.lang.Object
net.minecraft.commands.CommandSourceStack
net.neoforged.neoforge.debug.chat.CommandTests.ErrorCatchingStack
- All Implemented Interfaces:
ExecutionCommandSource<CommandSourceStack>
,SharedSuggestionProvider
,ICommandSourceStackExtension
- Enclosing class:
CommandTests
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.commands.SharedSuggestionProvider
SharedSuggestionProvider.ElementSuggestionType, SharedSuggestionProvider.TextCoordinates
-
Field Summary
Fields inherited from class net.minecraft.commands.CommandSourceStack
ERROR_NOT_ENTITY, ERROR_NOT_PLAYER, source
-
Constructor Summary
ConstructorDescriptionErrorCatchingStack
(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, @Nullable Entity p_81310_) -
Method Summary
Modifier and TypeMethodDescriptioncreateCommandSourceStack
(Player player, int perm) void
sendFailure
(Component failure) Methods inherited from class net.minecraft.commands.CommandSourceStack
callback, customSuggestion, dispatcher, enabledFeatures, facing, facing, getAllTeams, getAnchor, getAvailableSounds, getChatMessageChainer, getDisplayName, getEntity, getEntityOrException, getLevel, getOnlinePlayerNames, getPlayer, getPlayerOrException, getPosition, getRecipeNames, getRotation, getServer, getSigningContext, getTextName, handleError, hasPermission, isPlayer, isSilent, levels, registryAccess, sendChatMessage, sendSuccess, sendSystemMessage, shouldFilterMessageTo, suggestRegistryElements, withAnchor, withCallback, withCallback, withEntity, withLevel, withMaximumPermission, withPermission, withPosition, withRotation, withSigningContext, withSource, withSuppressedOutput
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.commands.ExecutionCommandSource
clearCallbacks, handleError
Methods inherited from interface net.neoforged.neoforge.common.extensions.ICommandSourceStackExtension
getAdvancement, getRecipeManager, getScoreboard, getUnsidedLevel
Methods inherited from interface net.minecraft.commands.SharedSuggestionProvider
getAbsoluteCoordinates, getCustomTabSugggestions, getRelevantCoordinates, getSelectedEntities, suggestRegistryElements
-
Field Details
-
errors
-
-
Constructor Details
-
ErrorCatchingStack
public ErrorCatchingStack(CommandSource p_81302_, Vec3 p_81303_, Vec2 p_81304_, ServerLevel p_81305_, int p_81306_, String p_81307_, Component p_81308_, MinecraftServer p_81309_, @Nullable @Nullable Entity p_81310_)
-
-
Method Details
-
createCommandSourceStack
-
sendFailure
- Overrides:
sendFailure
in classCommandSourceStack
-