Record Class LightningStrikeCriterion.Conditions
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.LightningStrikeCriterion.Conditions
- Record Components:
player-lightning-bystander-
- All Implemented Interfaces:
AbstractCriterion.Conditions,CriterionConditions
- Enclosing class:
LightningStrikeCriterion
public static record LightningStrikeCriterion.Conditions(Optional<LootContextPredicate> player, Optional<LootContextPredicate> lightning, Optional<LootContextPredicate> bystander)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name named net/minecraft/advancement/criterion/LightningStrikeCriterion$Conditionsintermediary net/minecraft/class_6405$class_6406official de$anamed playerintermediary comp_2029official bnamed lightningintermediary comp_2072official cnamed bystanderintermediary comp_2073official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<LootContextPredicate> The field for thebystanderrecord component.static final com.mojang.serialization.Codec<LightningStrikeCriterion.Conditions> private final Optional<LootContextPredicate> The field for thelightningrecord component.private final Optional<LootContextPredicate> The field for theplayerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> lightning, Optional<LootContextPredicate> bystander) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebystanderrecord component.create(Optional<EntityPredicate> lightning, Optional<EntityPredicate> bystander) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelightningrecord component.player()Returns the value of theplayerrecord component.booleantest(LootContext lightning, List<LootContext> bystanders) final StringtoString()Returns a string representation of this record class.voidvalidate(LootContextPredicateValidator validator)
-
Field Details
-
player
The field for theplayerrecord component. -
lightning
The field for thelightningrecord component. -
bystander
The field for thebystanderrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;intermediary field_47306Lnet/minecraft/class_6405$class_6406;field_47306:Lcom/mojang/serialization/Codec;official aLde$a;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<LootContextPredicate> lightning, Optional<LootContextPredicate> bystander) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_6405$class_6406;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Vofficial <init>Lde$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
create
public static AdvancementCriterion<LightningStrikeCriterion.Conditions> create(Optional<EntityPredicate> lightning, Optional<EntityPredicate> bystander) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;intermediary method_37243Lnet/minecraft/class_6405$class_6406;method_37243(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;official aLde$a;a(Ljava/util/Optional;Ljava/util/Optional;)Lao;
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/advancement/criterion/LightningStrikeCriterion$Conditions;test(Lnet/minecraft/loot/context/LootContext;Ljava/util/List;)Zintermediary method_37244Lnet/minecraft/class_6405$class_6406;method_37244(Lnet/minecraft/class_47;Ljava/util/List;)Zofficial aLde$a;a(Lerr;Ljava/util/List;)Z
-
validate
- Specified by:
validatein interfaceAbstractCriterion.Conditions- Specified by:
validatein interfaceCriterionConditions- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/advancement/criterion/CriterionConditions;validate(Lnet/minecraft/predicate/entity/LootContextPredicateValidator;)Vintermediary method_54938Lnet/minecraft/class_184;method_54938(Lnet/minecraft/class_8944;)Vofficial aLar;a(Lbh;)V
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
player
Returns the value of theplayerrecord component.- Specified by:
playerin interfaceAbstractCriterion.Conditions- Returns:
- the value of the
playerrecord component
-
lightning
Returns the value of thelightningrecord component.- Returns:
- the value of the
lightningrecord component
-
bystander
Returns the value of thebystanderrecord component.- Returns:
- the value of the
bystanderrecord component
-