Enum Class EquipmentSlotGroup
- All Implemented Interfaces:
Serializable, Comparable<EquipmentSlotGroup>, Constable, Iterable<EquipmentSlot>, StringRepresentable
public enum EquipmentSlotGroup
extends Enum<EquipmentSlotGroup>
implements StringRepresentable, Iterable<EquipmentSlot>
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntFunction<EquipmentSlotGroup> static final com.mojang.serialization.Codec<EquipmentSlotGroup> private final intprivate final Stringprivate final Predicate<EquipmentSlot> private final List<EquipmentSlot> static final StreamCodec<io.netty.buffer.ByteBuf, EquipmentSlotGroup> Fields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEquipmentSlotGroup(int id, String key, Predicate<EquipmentSlot> predicate) privateEquipmentSlotGroup(int id, String key, EquipmentSlot slot) -
Method Summary
Modifier and TypeMethodDescriptionstatic EquipmentSlotGroupbySlot(EquipmentSlot slot) iterator()slots()booleantest(EquipmentSlot slot) static EquipmentSlotGroupReturns the enum constant of this class with the specified name.static EquipmentSlotGroup[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface Iterable
forEach, spliterator
-
Enum Constant Details
-
ANY
-
MAINHAND
-
OFFHAND
-
HAND
-
FEET
-
LEGS
-
CHEST
-
HEAD
-
ARMOR
-
BODY
-
SADDLE
-
-
Field Details
-
BY_ID
-
CODEC
-
STREAM_CODEC
-
id
private final int id -
key
-
predicate
-
slots
-
-
Constructor Details
-
EquipmentSlotGroup
-
EquipmentSlotGroup
-
-
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
-
bySlot
-
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-
test
-
slots
-
iterator
- Specified by:
iteratorin interfaceIterable<EquipmentSlot>
-