Class CommandHistory

java.lang.Object
net.minecraft.client.CommandHistory

public class CommandHistory extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • MAX_PERSISTED_COMMAND_HISTORY

      private static final int MAX_PERSISTED_COMMAND_HISTORY
      See Also:
    • PERSISTED_COMMANDS_FILE_NAME

      private static final String PERSISTED_COMMANDS_FILE_NAME
      See Also:
    • commandsPath

      private final Path commandsPath
    • lastCommands

      private final ArrayListDeque<String> lastCommands
  • Constructor Details

    • CommandHistory

      public CommandHistory(Path p_298502_)
  • Method Details

    • addCommand

      public void addCommand(String p_298813_)
    • save

      private void save()
    • history

      public Collection<String> history()