枚举 Entity.MoveEffect

  • 所有已实现的接口:
    Serializable, Comparable<Entity.MoveEffect>
    封闭类:
    Entity

    public static enum Entity.MoveEffect
    extends Enum<Entity.MoveEffect>
    The move effect represents possible effects of an entity moving, such as playing sounds, emitting game events, none, or both.
    另请参阅:
    Entity.getMoveEffect()
    Mappings:
    Namespace Name
    official asl$b
    intermediary net/minecraft/class_1297$class_5799
    named net/minecraft/entity/Entity$MoveEffect
    • 枚举常量详细资料

      • NONE

        public static final Entity.MoveEffect NONE
        Mappings:
        Namespace Name Mixin selector
        official a Lasl$b;a:Lasl$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

        public static final Entity.MoveEffect SOUNDS
        Mappings:
        Namespace Name Mixin selector
        official b Lasl$b;b:Lasl$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

        public static final Entity.MoveEffect EVENTS
        Mappings:
        Namespace Name Mixin selector
        official c Lasl$b;c:Lasl$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

        public static final Entity.MoveEffect ALL
        Mappings:
        Namespace Name Mixin selector
        official d Lasl$b;d:Lasl$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;
    • 字段详细资料

      • sounds

        final boolean sounds
        Mappings:
        Namespace Name Mixin selector
        official e Lasl$b;e:Z
        intermediary field_28634 Lnet/minecraft/class_1297$class_5799;field_28634:Z
        named sounds Lnet/minecraft/entity/Entity$MoveEffect;sounds:Z
      • events

        final boolean events
        Mappings:
        Namespace Name Mixin selector
        official f Lasl$b;f:Z
        intermediary field_28635 Lnet/minecraft/class_1297$class_5799;field_28635:Z
        named events Lnet/minecraft/entity/Entity$MoveEffect;events:Z
    • 构造器详细资料

      • MoveEffect

        private MoveEffect​(boolean sounds,
                           boolean events)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lasl$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
    • 方法详细资料

      • values

        public static Entity.MoveEffect[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (Entity.MoveEffect c : Entity.MoveEffect.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static Entity.MoveEffect valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • 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
        official a Lasl$b;a()Z
        intermediary method_33576 Lnet/minecraft/class_1297$class_5799;method_33576()Z
        named hasAny Lnet/minecraft/entity/Entity$MoveEffect;hasAny()Z
      • emitsGameEvents

        public boolean emitsGameEvents()
        Returns whether this means an entity may emit game events as it moves.
        Mappings:
        Namespace Name Mixin selector
        official b Lasl$b;b()Z
        intermediary method_33577 Lnet/minecraft/class_1297$class_5799;method_33577()Z
        named emitsGameEvents Lnet/minecraft/entity/Entity$MoveEffect;emitsGameEvents()Z
      • playsSounds

        public boolean playsSounds()
        Returns whether this means an entity may play sounds as it moves.
        Mappings:
        Namespace Name Mixin selector
        official c Lasl$b;c()Z
        intermediary method_33578 Lnet/minecraft/class_1297$class_5799;method_33578()Z
        named playsSounds Lnet/minecraft/entity/Entity$MoveEffect;playsSounds()Z