Class CommandTests.ErrorCatchingStack

java.lang.Object
net.minecraft.commands.CommandSourceStack
net.neoforged.neoforge.debug.chat.CommandTests.ErrorCatchingStack
All Implemented Interfaces:
net.minecraft.commands.ExecutionCommandSource<net.minecraft.commands.CommandSourceStack>, net.minecraft.commands.SharedSuggestionProvider, ICommandSourceStackExtension
Enclosing class:
CommandTests

public static final class CommandTests.ErrorCatchingStack extends net.minecraft.commands.CommandSourceStack
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.commands.SharedSuggestionProvider

    net.minecraft.commands.SharedSuggestionProvider.ElementSuggestionType, net.minecraft.commands.SharedSuggestionProvider.TextCoordinates
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final List<net.minecraft.network.chat.Component>
     

    Fields inherited from class net.minecraft.commands.CommandSourceStack

    ERROR_NOT_ENTITY, ERROR_NOT_PLAYER, source

    Fields inherited from interface net.minecraft.commands.SharedSuggestionProvider

    MATCH_SPLITTER
  • Constructor Summary

    Constructors
    Constructor
    Description
    ErrorCatchingStack(net.minecraft.commands.CommandSource p_81302_, net.minecraft.world.phys.Vec3 p_81303_, net.minecraft.world.phys.Vec2 p_81304_, net.minecraft.server.level.ServerLevel p_81305_, int p_81306_, String p_81307_, net.minecraft.network.chat.Component p_81308_, net.minecraft.server.MinecraftServer p_81309_, @Nullable net.minecraft.world.entity.Entity p_81310_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createCommandSourceStack(net.minecraft.world.entity.player.Player player, int perm)
     
    void
    sendFailure(net.minecraft.network.chat.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, 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, getScoreboard, getUnsidedLevel

    Methods inherited from interface net.minecraft.commands.SharedSuggestionProvider

    getAbsoluteCoordinates, getCustomTabSugggestions, getRelevantCoordinates, getSelectedEntities, suggestRegistryElements
  • Field Details

    • errors

      final List<net.minecraft.network.chat.Component> errors
  • Constructor Details

    • ErrorCatchingStack

      public ErrorCatchingStack(net.minecraft.commands.CommandSource p_81302_, net.minecraft.world.phys.Vec3 p_81303_, net.minecraft.world.phys.Vec2 p_81304_, net.minecraft.server.level.ServerLevel p_81305_, int p_81306_, String p_81307_, net.minecraft.network.chat.Component p_81308_, net.minecraft.server.MinecraftServer p_81309_, @Nullable @Nullable net.minecraft.world.entity.Entity p_81310_)
  • Method Details

    • createCommandSourceStack

      public static CommandTests.ErrorCatchingStack createCommandSourceStack(net.minecraft.world.entity.player.Player player, int perm)
    • sendFailure

      public void sendFailure(net.minecraft.network.chat.Component failure)
      Overrides:
      sendFailure in class net.minecraft.commands.CommandSourceStack