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 named net/minecraft/entity/Entity$MoveEffectintermediary net/minecraft/class_1297$class_5799official bsr$b
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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 named NONELnet/minecraft/entity/Entity$MoveEffect;NONE:Lnet/minecraft/entity/Entity$MoveEffect;intermediary field_28630Lnet/minecraft/class_1297$class_5799;field_28630:Lnet/minecraft/class_1297$class_5799;official aLbsr$b;a:Lbsr$b;
-
SOUNDS
- Mappings:
Namespace Name Mixin selector named SOUNDSLnet/minecraft/entity/Entity$MoveEffect;SOUNDS:Lnet/minecraft/entity/Entity$MoveEffect;intermediary field_28631Lnet/minecraft/class_1297$class_5799;field_28631:Lnet/minecraft/class_1297$class_5799;official bLbsr$b;b:Lbsr$b;
-
EVENTS
- Mappings:
Namespace Name Mixin selector named EVENTSLnet/minecraft/entity/Entity$MoveEffect;EVENTS:Lnet/minecraft/entity/Entity$MoveEffect;intermediary field_28632Lnet/minecraft/class_1297$class_5799;field_28632:Lnet/minecraft/class_1297$class_5799;official cLbsr$b;c:Lbsr$b;
-
ALL
- Mappings:
Namespace Name Mixin selector named ALLLnet/minecraft/entity/Entity$MoveEffect;ALL:Lnet/minecraft/entity/Entity$MoveEffect;intermediary field_28633Lnet/minecraft/class_1297$class_5799;field_28633:Lnet/minecraft/class_1297$class_5799;official dLbsr$b;d:Lbsr$b;
-
-
Field Details
-
sounds
final boolean sounds- Mappings:
Namespace Name Mixin selector named soundsLnet/minecraft/entity/Entity$MoveEffect;sounds:Zintermediary field_28634Lnet/minecraft/class_1297$class_5799;field_28634:Zofficial eLbsr$b;e:Z
-
events
final boolean events- Mappings:
Namespace Name Mixin selector named eventsLnet/minecraft/entity/Entity$MoveEffect;events:Zintermediary field_28635Lnet/minecraft/class_1297$class_5799;field_28635:Zofficial fLbsr$b;f:Z
-
-
Constructor Details
-
MoveEffect
private MoveEffect(boolean sounds, boolean events) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity$MoveEffect;<init>(Ljava/lang/String;IZZ)Vintermediary <init>Lnet/minecraft/class_1297$class_5799;<init>(Ljava/lang/String;IZZ)Vofficial <init>Lbsr$b;<init>(Ljava/lang/String;IZZ)V
-
-
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
-
hasAny
public boolean hasAny()Returns whether this means an entity may emit game events or play sounds as it moves.- Mappings:
Namespace Name Mixin selector named hasAnyLnet/minecraft/entity/Entity$MoveEffect;hasAny()Zintermediary method_33576Lnet/minecraft/class_1297$class_5799;method_33576()Zofficial aLbsr$b;a()Z
-
emitsGameEvents
public boolean emitsGameEvents()Returns whether this means an entity may emit game events as it moves.- Mappings:
Namespace Name Mixin selector named emitsGameEventsLnet/minecraft/entity/Entity$MoveEffect;emitsGameEvents()Zintermediary method_33577Lnet/minecraft/class_1297$class_5799;method_33577()Zofficial bLbsr$b;b()Z
-
playsSounds
public boolean playsSounds()Returns whether this means an entity may play sounds as it moves.- Mappings:
Namespace Name Mixin selector named playsSoundsLnet/minecraft/entity/Entity$MoveEffect;playsSounds()Zintermediary method_33578Lnet/minecraft/class_1297$class_5799;method_33578()Zofficial cLbsr$b;c()Z
-