Enum Class 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-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArmor slots in player inventory.Display-only slots (lectern book display, some special UIs).Player hotbar slots.Regular interactive slots that can accept most items.Output-only slots (crafting result, furnace output). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intArmor slots in player inventory.static final intDisplay-only slots (lectern book display, some special UIs).static final intPlayer hotbar slots.static final intRegular interactive slots that can accept most items.static final intOutput-only slots (crafting result, furnace output). -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotRegionTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SlotRegionType> static SlotRegionTypevalueOf(int value) Deprecated.static SlotRegionTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static SlotRegionTypeReturns the enum constant of this class with the specified name.static SlotRegionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLOT_REGION_NORMAL
Regular interactive slots that can accept most items.
SLOT_REGION_NORMAL = 0; -
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
Display-only slots (lectern book display, some special UIs). May not allow any direct interaction.
SLOT_REGION_DISPLAY = 2; -
SLOT_REGION_HOTBAR
Player hotbar slots. Should show selection indicator for the currently selected slot.
SLOT_REGION_HOTBAR = 3; -
SLOT_REGION_ARMOR
Armor slots in player inventory. May display placeholder armor icons when empty.
SLOT_REGION_ARMOR = 4; -
UNRECOGNIZED
-
-
Field Details
-
SLOT_REGION_NORMAL_VALUE
public static final int SLOT_REGION_NORMAL_VALUERegular interactive slots that can accept most items.
SLOT_REGION_NORMAL = 0;- See Also:
-
SLOT_REGION_OUTPUT_VALUE
public static final int SLOT_REGION_OUTPUT_VALUEOutput-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_VALUEDisplay-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_VALUEPlayer 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_VALUEArmor slots in player inventory. May display placeholder armor icons when empty.
SLOT_REGION_ARMOR = 4;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-