Enum Class SlotRegionType

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

@Generated public enum SlotRegionType extends Enum<SlotRegionType> implements com.google.protobuf.ProtocolMessageEnum
Describes how a region of slots should be rendered in the UI.
Different region types have different visual treatments.
Protobuf enum soulfire.v1.SlotRegionType
  • Enum Constant Details

    • SLOT_REGION_NORMAL

      public static final SlotRegionType SLOT_REGION_NORMAL
      Regular interactive slots that can accept most items.
      
      SLOT_REGION_NORMAL = 0;
    • SLOT_REGION_OUTPUT

      public static final SlotRegionType SLOT_REGION_OUTPUT
      Output-only slots (crafting result, furnace output).
      Items can only be taken out, not placed in.
      
      SLOT_REGION_OUTPUT = 1;
    • SLOT_REGION_DISPLAY

      public static final SlotRegionType SLOT_REGION_DISPLAY
      Display-only slots (lectern book display, some special UIs).
      May not allow any direct interaction.
      
      SLOT_REGION_DISPLAY = 2;
    • SLOT_REGION_HOTBAR

      public static final SlotRegionType SLOT_REGION_HOTBAR
      Player hotbar slots.
      Should show selection indicator for the currently selected slot.
      
      SLOT_REGION_HOTBAR = 3;
    • SLOT_REGION_ARMOR

      public static final SlotRegionType SLOT_REGION_ARMOR
      Armor slots in player inventory.
      May display placeholder armor icons when empty.
      
      SLOT_REGION_ARMOR = 4;
    • UNRECOGNIZED

      public static final SlotRegionType UNRECOGNIZED
  • Field Details

    • SLOT_REGION_NORMAL_VALUE

      public static final int SLOT_REGION_NORMAL_VALUE
      Regular interactive slots that can accept most items.
      
      SLOT_REGION_NORMAL = 0;
      See Also:
    • SLOT_REGION_OUTPUT_VALUE

      public static final int SLOT_REGION_OUTPUT_VALUE
      Output-only slots (crafting result, furnace output).
      Items can only be taken out, not placed in.
      
      SLOT_REGION_OUTPUT = 1;
      See Also:
    • SLOT_REGION_DISPLAY_VALUE

      public static final int SLOT_REGION_DISPLAY_VALUE
      Display-only slots (lectern book display, some special UIs).
      May not allow any direct interaction.
      
      SLOT_REGION_DISPLAY = 2;
      See Also:
    • SLOT_REGION_HOTBAR_VALUE

      public static final int SLOT_REGION_HOTBAR_VALUE
      Player hotbar slots.
      Should show selection indicator for the currently selected slot.
      
      SLOT_REGION_HOTBAR = 3;
      See Also:
    • SLOT_REGION_ARMOR_VALUE

      public static final int SLOT_REGION_ARMOR_VALUE
      Armor slots in player inventory.
      May display placeholder armor icons when empty.
      
      SLOT_REGION_ARMOR = 4;
      See Also:
  • Method Details

    • values

      public static SlotRegionType[] 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 SlotRegionType 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 SlotRegionType 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 SlotRegionType 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<SlotRegionType> 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 SlotRegionType 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