枚举 LootContext.EntityTarget

    • 枚举常量详细资料

      • THIS

        public static final LootContext.EntityTarget THIS
        Mappings:
        Namespace Name Mixin selector
        official a Ldhp$c;a:Ldhp$c;
        intermediary field_935 Lnet/minecraft/class_47$class_50;field_935:Lnet/minecraft/class_47$class_50;
        named THIS Lnet/minecraft/loot/context/LootContext$EntityTarget;THIS:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      • KILLER

        public static final LootContext.EntityTarget KILLER
        Mappings:
        Namespace Name Mixin selector
        official b Ldhp$c;b:Ldhp$c;
        intermediary field_936 Lnet/minecraft/class_47$class_50;field_936:Lnet/minecraft/class_47$class_50;
        named KILLER Lnet/minecraft/loot/context/LootContext$EntityTarget;KILLER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      • DIRECT_KILLER

        public static final LootContext.EntityTarget DIRECT_KILLER
        Mappings:
        Namespace Name Mixin selector
        official c Ldhp$c;c:Ldhp$c;
        intermediary field_939 Lnet/minecraft/class_47$class_50;field_939:Lnet/minecraft/class_47$class_50;
        named DIRECT_KILLER Lnet/minecraft/loot/context/LootContext$EntityTarget;DIRECT_KILLER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
      • KILLER_PLAYER

        public static final LootContext.EntityTarget KILLER_PLAYER
        Mappings:
        Namespace Name Mixin selector
        official d Ldhp$c;d:Ldhp$c;
        intermediary field_937 Lnet/minecraft/class_47$class_50;field_937:Lnet/minecraft/class_47$class_50;
        named KILLER_PLAYER Lnet/minecraft/loot/context/LootContext$EntityTarget;KILLER_PLAYER:Lnet/minecraft/loot/context/LootContext$EntityTarget;
    • 字段详细资料

      • type

        private final String type
        Mappings:
        Namespace Name Mixin selector
        official e Ldhp$c;e:Ljava/lang/String;
        intermediary field_941 Lnet/minecraft/class_47$class_50;field_941:Ljava/lang/String;
        named type Lnet/minecraft/loot/context/LootContext$EntityTarget;type:Ljava/lang/String;
      • parameter

        private final LootContextParameter<? extends Entity> parameter
        Mappings:
        Namespace Name Mixin selector
        official f Ldhp$c;f:Ldjs;
        intermediary field_938 Lnet/minecraft/class_47$class_50;field_938:Lnet/minecraft/class_169;
        named parameter Lnet/minecraft/loot/context/LootContext$EntityTarget;parameter:Lnet/minecraft/loot/context/LootContextParameter;
    • 构造器详细资料

      • EntityTarget

        private EntityTarget​(String type,
                             LootContextParameter<? extends Entity> parameter)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldhp$c;<init>(Ljava/lang/String;ILjava/lang/String;Ldjs;)V
        intermediary <init> Lnet/minecraft/class_47$class_50;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_169;)V
        named <init> Lnet/minecraft/loot/context/LootContext$EntityTarget;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/loot/context/LootContextParameter;)V
    • 方法详细资料

      • values

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

        public static LootContext.EntityTarget valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • getParameter

        public LootContextParameter<? extends Entity> getParameter()
        Mappings:
        Namespace Name Mixin selector
        official a Ldhp$c;a()Ldjs;
        intermediary method_315 Lnet/minecraft/class_47$class_50;method_315()Lnet/minecraft/class_169;
        named getParameter Lnet/minecraft/loot/context/LootContext$EntityTarget;getParameter()Lnet/minecraft/loot/context/LootContextParameter;
      • fromString

        public static LootContext.EntityTarget fromString​(String type)
        Mappings:
        Namespace Name Mixin selector
        official a Ldhp$c;a(Ljava/lang/String;)Ldhp$c;
        intermediary method_314 Lnet/minecraft/class_47$class_50;method_314(Ljava/lang/String;)Lnet/minecraft/class_47$class_50;
        named fromString Lnet/minecraft/loot/context/LootContext$EntityTarget;fromString(Ljava/lang/String;)Lnet/minecraft/loot/context/LootContext$EntityTarget;