Package net.minecraft.entity
Enum Class Entity.MoveEffect
- All Implemented Interfaces:
- Serializable,- Comparable<Entity.MoveEffect>,- Constable
- Enclosing class:
- Entity
The move effect represents possible effects of an entity moving, such as
 playing sounds, emitting game events, none, or both.
- See Also:
- Mappings:
- Namespace - Name - official - bfj$b- intermediary - net/minecraft/class_1297$class_5799- named - net/minecraft/entity/Entity$MoveEffect
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns whether this means an entity may emit game events as it moves.booleanhasAny()Returns whether this means an entity may emit game events or play sounds as it moves.booleanReturns whether this means an entity may play sounds as it moves.static Entity.MoveEffectReturns the enum constant of this class with the specified name.static Entity.MoveEffect[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
NONE- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj$b;a:Lbfj$b;- intermediary - field_28630- Lnet/minecraft/class_1297$class_5799;field_28630:Lnet/minecraft/class_1297$class_5799;- named - NONE- Lnet/minecraft/entity/Entity$MoveEffect;NONE:Lnet/minecraft/entity/Entity$MoveEffect;
 
- 
SOUNDS- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj$b;b:Lbfj$b;- intermediary - field_28631- Lnet/minecraft/class_1297$class_5799;field_28631:Lnet/minecraft/class_1297$class_5799;- named - SOUNDS- Lnet/minecraft/entity/Entity$MoveEffect;SOUNDS:Lnet/minecraft/entity/Entity$MoveEffect;
 
- 
EVENTS- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbfj$b;c:Lbfj$b;- intermediary - field_28632- Lnet/minecraft/class_1297$class_5799;field_28632:Lnet/minecraft/class_1297$class_5799;- named - EVENTS- Lnet/minecraft/entity/Entity$MoveEffect;EVENTS:Lnet/minecraft/entity/Entity$MoveEffect;
 
- 
ALL- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbfj$b;d:Lbfj$b;- intermediary - field_28633- Lnet/minecraft/class_1297$class_5799;field_28633:Lnet/minecraft/class_1297$class_5799;- named - ALL- Lnet/minecraft/entity/Entity$MoveEffect;ALL:Lnet/minecraft/entity/Entity$MoveEffect;
 
 
- 
- 
Field Details- 
soundsfinal boolean sounds- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbfj$b;e:Z- intermediary - field_28634- Lnet/minecraft/class_1297$class_5799;field_28634:Z- named - sounds- Lnet/minecraft/entity/Entity$MoveEffect;sounds:Z
 
- 
eventsfinal boolean events- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbfj$b;f:Z- intermediary - field_28635- Lnet/minecraft/class_1297$class_5799;field_28635:Z- named - events- Lnet/minecraft/entity/Entity$MoveEffect;events:Z
 
 
- 
- 
Constructor Details- 
MoveEffectprivate MoveEffect(boolean sounds, boolean events) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbfj$b;<init>(Ljava/lang/String;IZZ)V- intermediary - <init>- Lnet/minecraft/class_1297$class_5799;<init>(Ljava/lang/String;IZZ)V- named - <init>- Lnet/minecraft/entity/Entity$MoveEffect;<init>(Ljava/lang/String;IZZ)V
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
hasAnypublic boolean hasAny()Returns whether this means an entity may emit game events or play sounds as it moves.- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj$b;a()Z- intermediary - method_33576- Lnet/minecraft/class_1297$class_5799;method_33576()Z- named - hasAny- Lnet/minecraft/entity/Entity$MoveEffect;hasAny()Z
 
- 
emitsGameEventspublic boolean emitsGameEvents()Returns whether this means an entity may emit game events as it moves.- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj$b;b()Z- intermediary - method_33577- Lnet/minecraft/class_1297$class_5799;method_33577()Z- named - emitsGameEvents- Lnet/minecraft/entity/Entity$MoveEffect;emitsGameEvents()Z
 
- 
playsSoundspublic boolean playsSounds()Returns whether this means an entity may play sounds as it moves.- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbfj$b;c()Z- intermediary - method_33578- Lnet/minecraft/class_1297$class_5799;method_33578()Z- named - playsSounds- Lnet/minecraft/entity/Entity$MoveEffect;playsSounds()Z
 
 
-