Enum MasterProcessCommand

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MasterProcessCommand>

    public enum MasterProcessCommand
    extends java.lang.Enum<MasterProcessCommand>
    Commands which are sent from plugin to the forked jvm.
    Since:
    2.19
    • Field Detail

      • opcode

        private final java.lang.String opcode
      • opcodeBinary

        private final byte[] opcodeBinary
      • dataType

        private final java.lang.Class<?> dataType
    • Constructor Detail

      • MasterProcessCommand

        private MasterProcessCommand​(java.lang.String opcode,
                                     java.lang.Class<?> dataType)
    • Method Detail

      • values

        public static MasterProcessCommand[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MasterProcessCommand c : MasterProcessCommand.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MasterProcessCommand valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getOpcodeBinary

        public byte[] getOpcodeBinary()
      • getOpcodeLength

        public int getOpcodeLength()
      • getDataType

        public java.lang.Class<?> getDataType()
      • hasDataType

        public boolean hasDataType()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<MasterProcessCommand>