Class CommandNetworkDiagnostics

java.lang.Object
org.cyclops.integrateddynamics.command.CommandNetworkDiagnostics
All Implemented Interfaces:
com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>

public class CommandNetworkDiagnostics extends Object implements com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>
Command for opening the network diagnostics gui.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

    Fields inherited from interface com.mojang.brigadier.Command

    SINGLE_SUCCESS
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommandNetworkDiagnostics(boolean operationArg, boolean portArg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    hasPermission(net.minecraft.server.level.ServerPlayer player)
     
    static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack>
     
    int
    run(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CommandNetworkDiagnostics

      public CommandNetworkDiagnostics(boolean operationArg, boolean portArg)
  • Method Details

    • run

      public int run(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      run in interface com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • make

      public static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> make()
    • hasPermission

      public static boolean hasPermission(net.minecraft.server.level.ServerPlayer player)
      Parameters:
      player - A player.
      Returns:
      If the player may use network diagnostics.