Enum Class ConsumeEffectType
- All Implemented Interfaces:
Serializable,Comparable<ConsumeEffectType>,Constable,EnumMapDispatchHasher<ConsumeEffectType,org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect>
public enum ConsumeEffectType
extends Enum<ConsumeEffectType>
implements EnumMapDispatchHasher<ConsumeEffectType,org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MinecraftHasher<org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> -
Method Summary
Modifier and TypeMethodDescriptionReturns theEnumMapDispatchHasherof this implementation ofEnumMapDispatchHasher.MapBuilder<? extends org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> static ConsumeEffectTypeReturns the enum constant of this class with the specified name.static ConsumeEffectType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Class<? extends org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect>
-
Enum Constant Details
-
APPLY_EFFECTS
-
REMOVE_EFFECTS
-
CLEAR_ALL_EFFECTS
-
TELEPORT_RANDOMLY
-
PLAY_SOUND
-
-
Field Details
-
CONSUME_EFFECT_HASHER
public static final MinecraftHasher<org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> CONSUME_EFFECT_HASHER
-
-
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
-
distinction
Description copied from interface:EnumMapDispatchHasherReturns theEnumMapDispatchHasherof this implementation ofEnumMapDispatchHasher.Implementations must ensure that each
EnumMapDispatchHasheris unique and only for one implementation ofEnumMapDispatchHasher.- Specified by:
distinctionin interfaceEnumMapDispatchHasher<ConsumeEffectType,org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> - Returns:
- the
EnumMapDispatchHasherof this implementation ofEnumMapDispatchHasher
-
valueTypeClass
public Class<? extends org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> valueTypeClass()- Specified by:
valueTypeClassin interfaceEnumMapDispatchHasher<ConsumeEffectType,org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> - Returns:
- the
Classof this implementation ofEnumMapDispatchHasher
-
mapBuilder
public MapBuilder<? extends org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> mapBuilder()- Specified by:
mapBuilderin interfaceEnumMapDispatchHasher<ConsumeEffectType,org.geysermc.mcprotocollib.protocol.data.game.item.component.ConsumeEffect> - Returns:
- the
MapBuilderused to encode this implementation ofEnumMapDispatchHasher
-