Class LightningStrikeCriterion.Conditions

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

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

    • lightning

      private final Optional<LootContextPredicate> lightning
      Mappings:
      Namespace Name Mixin selector
      official a Lci$a;a:Ljava/util/Optional;
      intermediary field_33926 Lnet/minecraft/class_6405$class_6406;field_33926:Ljava/util/Optional;
      named lightning Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;lightning:Ljava/util/Optional;
    • bystander

      private final Optional<LootContextPredicate> bystander
      Mappings:
      Namespace Name Mixin selector
      official b Lci$a;b:Ljava/util/Optional;
      intermediary field_33927 Lnet/minecraft/class_6405$class_6406;field_33927:Ljava/util/Optional;
      named bystander Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;bystander:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> lightning, Optional<LootContextPredicate> bystander)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lci$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_6405$class_6406;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lci$a;a(Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_37243 Lnet/minecraft/class_6405$class_6406;method_37243(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • test

      public boolean test(LootContext lightning, List<LootContext> bystanders)
      Mappings:
      Namespace Name Mixin selector
      official a Lci$a;a(Lecq;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 com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;