Class LightningStrikeCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.LightningStrikeCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
LightningStrikeCriterion

public static class LightningStrikeCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cg$a
intermediary net/minecraft/class_6405$class_6406
named net/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions
  • Field Details

    • lightning

      private final LootContextPredicate lightning
      Mappings:
      Namespace Name Mixin selector
      official a Lcg$a;a:Lba;
      intermediary field_33926 Lnet/minecraft/class_6405$class_6406;field_33926:Lnet/minecraft/class_5258;
      named lightning Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;lightning:Lnet/minecraft/predicate/entity/LootContextPredicate;
    • bystander

      private final LootContextPredicate bystander
      Mappings:
      Namespace Name Mixin selector
      official b Lcg$a;b:Lba;
      intermediary field_33927 Lnet/minecraft/class_6405$class_6406;field_33927:Lnet/minecraft/class_5258;
      named bystander Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;bystander:Lnet/minecraft/predicate/entity/LootContextPredicate;
  • Constructor Details

    • Conditions

      public Conditions(LootContextPredicate player, LootContextPredicate lightning, LootContextPredicate bystander)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcg$a;<init>(Lba;Lba;Lba;)V
      intermediary <init> Lnet/minecraft/class_6405$class_6406;<init>(Lnet/minecraft/class_5258;Lnet/minecraft/class_5258;Lnet/minecraft/class_5258;)V
      named <init> Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/predicate/entity/LootContextPredicate;)V
  • Method Details

    • create

      public static LightningStrikeCriterion.Conditions create(EntityPredicate lightning, EntityPredicate bystander)
      Mappings:
      Namespace Name Mixin selector
      official a Lcg$a;a(Lbo;Lbo;)Lcg$a;
      intermediary method_37243 Lnet/minecraft/class_6405$class_6406;method_37243(Lnet/minecraft/class_2048;Lnet/minecraft/class_2048;)Lnet/minecraft/class_6405$class_6406;
      named create Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate;Lnet/minecraft/predicate/entity/EntityPredicate;)Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;
    • test

      public boolean test(LootContext lightning, List<LootContext> bystanders)
      Mappings:
      Namespace Name Mixin selector
      official a Lcg$a;a(Ldzc;Ljava/util/List;)Z
      intermediary method_37244 Lnet/minecraft/class_6405$class_6406;method_37244(Lnet/minecraft/class_47;Ljava/util/List;)Z
      named test Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;test(Lnet/minecraft/loot/context/LootContext;Ljava/util/List;)Z
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a(Lct;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;