Enum Class ClickType

java.lang.Object
java.lang.Enum<ClickType>
com.soulfiremc.grpc.generated.ClickType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ClickType>, Constable

@Generated public enum ClickType extends Enum<ClickType> implements com.google.protobuf.ProtocolMessageEnum
Types of inventory click actions available in Minecraft.
Protobuf enum soulfire.v1.ClickType
  • Enum Constant Details

    • CLICK_TYPE_UNSPECIFIED

      public static final ClickType CLICK_TYPE_UNSPECIFIED
      Invalid/unspecified click type. Will result in an error.
      
      CLICK_TYPE_UNSPECIFIED = 0;
    • LEFT_CLICK

      public static final ClickType LEFT_CLICK
      Left mouse click on a slot.
      - Empty cursor + item in slot: Pick up entire stack to cursor
      - Item on cursor + empty slot: Place entire stack in slot
      - Item on cursor + same item in slot: Combine stacks (up to max stack size)
      - Item on cursor + different item in slot: Swap cursor and slot items
      
      LEFT_CLICK = 1;
    • RIGHT_CLICK

      public static final ClickType RIGHT_CLICK
      Right mouse click on a slot.
      - Empty cursor + item in slot: Pick up half the stack (rounded up)
      - Item on cursor + empty slot: Place one item from cursor
      - Item on cursor + same item in slot: Place one item from cursor
      - Item on cursor + different item in slot: Swap cursor and slot items
      
      RIGHT_CLICK = 2;
    • SHIFT_LEFT_CLICK

      public static final ClickType SHIFT_LEFT_CLICK
      Shift + left click on a slot.
      Quick-moves the item stack to the opposite inventory section.
      - From player inventory to container (chest, furnace, etc.)
      - From container to player inventory
      - Between hotbar and main inventory
      
      SHIFT_LEFT_CLICK = 3;
    • DROP_ONE

      public static final ClickType DROP_ONE
      Drop one item from the slot (Q key while hovering over slot).
      Drops a single item from the stack, leaving the rest.
      
      DROP_ONE = 4;
    • DROP_ALL

      public static final ClickType DROP_ALL
      Drop entire stack from the slot (Ctrl+Q while hovering over slot).
      Drops all items from the stack at once.
      
      DROP_ALL = 5;
    • SWAP_HOTBAR

      public static final ClickType SWAP_HOTBAR
      Swap slot contents with a hotbar slot (number keys 1-9).
      Requires hotbar_slot field to specify which hotbar slot (0-8).
      Works regardless of what's in the cursor.
      
      SWAP_HOTBAR = 6;
    • MIDDLE_CLICK

      public static final ClickType MIDDLE_CLICK
      Middle mouse click (creative mode clone).
      In creative mode, clones the item to cursor without affecting the slot.
      No effect in survival mode.
      
      MIDDLE_CLICK = 7;
    • UNRECOGNIZED

      public static final ClickType UNRECOGNIZED
  • Field Details

    • CLICK_TYPE_UNSPECIFIED_VALUE

      public static final int CLICK_TYPE_UNSPECIFIED_VALUE
      Invalid/unspecified click type. Will result in an error.
      
      CLICK_TYPE_UNSPECIFIED = 0;
      See Also:
    • LEFT_CLICK_VALUE

      public static final int LEFT_CLICK_VALUE
      Left mouse click on a slot.
      - Empty cursor + item in slot: Pick up entire stack to cursor
      - Item on cursor + empty slot: Place entire stack in slot
      - Item on cursor + same item in slot: Combine stacks (up to max stack size)
      - Item on cursor + different item in slot: Swap cursor and slot items
      
      LEFT_CLICK = 1;
      See Also:
    • RIGHT_CLICK_VALUE

      public static final int RIGHT_CLICK_VALUE
      Right mouse click on a slot.
      - Empty cursor + item in slot: Pick up half the stack (rounded up)
      - Item on cursor + empty slot: Place one item from cursor
      - Item on cursor + same item in slot: Place one item from cursor
      - Item on cursor + different item in slot: Swap cursor and slot items
      
      RIGHT_CLICK = 2;
      See Also:
    • SHIFT_LEFT_CLICK_VALUE

      public static final int SHIFT_LEFT_CLICK_VALUE
      Shift + left click on a slot.
      Quick-moves the item stack to the opposite inventory section.
      - From player inventory to container (chest, furnace, etc.)
      - From container to player inventory
      - Between hotbar and main inventory
      
      SHIFT_LEFT_CLICK = 3;
      See Also:
    • DROP_ONE_VALUE

      public static final int DROP_ONE_VALUE
      Drop one item from the slot (Q key while hovering over slot).
      Drops a single item from the stack, leaving the rest.
      
      DROP_ONE = 4;
      See Also:
    • DROP_ALL_VALUE

      public static final int DROP_ALL_VALUE
      Drop entire stack from the slot (Ctrl+Q while hovering over slot).
      Drops all items from the stack at once.
      
      DROP_ALL = 5;
      See Also:
    • SWAP_HOTBAR_VALUE

      public static final int SWAP_HOTBAR_VALUE
      Swap slot contents with a hotbar slot (number keys 1-9).
      Requires hotbar_slot field to specify which hotbar slot (0-8).
      Works regardless of what's in the cursor.
      
      SWAP_HOTBAR = 6;
      See Also:
    • MIDDLE_CLICK_VALUE

      public static final int MIDDLE_CLICK_VALUE
      Middle mouse click (creative mode clone).
      In creative mode, clones the item to cursor without affecting the slot.
      No effect in survival mode.
      
      MIDDLE_CLICK = 7;
      See Also:
  • Method Details

    • values

      public static ClickType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ClickType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ClickType valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ClickType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ClickType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ClickType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null