Record Class ConstructBeaconCriterion.Conditions
java.lang.Object
java.lang.Record
net.minecraft.advancement.criterion.ConstructBeaconCriterion.Conditions
- Record Components:
player-level-
- All Implemented Interfaces:
AbstractCriterion.Conditions,CriterionConditions
- Enclosing class:
ConstructBeaconCriterion
public static record ConstructBeaconCriterion.Conditions(Optional<LootContextPredicate> player, NumberRange.IntRange level)
extends Record
implements AbstractCriterion.Conditions
- Mappings:
Namespace Name official az$aintermediary net/minecraft/class_2006$class_2008named net/minecraft/advancement/criterion/ConstructBeaconCriterion$Conditionsofficial bintermediary comp_2029named playerofficial cintermediary comp_2040named level
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConstructBeaconCriterion.Conditions>private final NumberRange.IntRangeThe field for thelevelrecord component.private final Optional<LootContextPredicate>The field for theplayerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConditions(Optional<LootContextPredicate> playerPredicate, NumberRange.IntRange level) -
Method Summary
Modifier and TypeMethodDescriptioncreate()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.level(NumberRange.IntRange level) booleanmatches(int level) player()final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.advancement.criterion.AbstractCriterion.Conditions
validate
-
Field Details
-
player
The field for theplayerrecord component. -
level
The field for thelevelrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector official aLaz$a;a:Lcom/mojang/serialization/Codec;intermediary field_47232Lnet/minecraft/class_2006$class_2008;field_47232:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/advancement/criterion/ConstructBeaconCriterion$Conditions;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Conditions
- Mappings:
Namespace Name Mixin selector official <init>Laz$a;<init>(Ljava/util/Optional;Lck$d;)Vintermediary <init>Lnet/minecraft/class_2006$class_2008;<init>(Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;)Vnamed <init>Lnet/minecraft/advancement/criterion/ConstructBeaconCriterion$Conditions;<init>(Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official bLaz$a;b()Lan;intermediary method_35110Lnet/minecraft/class_2006$class_2008;method_35110()Lnet/minecraft/class_175;named createLnet/minecraft/advancement/criterion/ConstructBeaconCriterion$Conditions;create()Lnet/minecraft/advancement/AdvancementCriterion;
-
level
public static AdvancementCriterion<ConstructBeaconCriterion.Conditions> level(NumberRange.IntRange level) - Mappings:
Namespace Name Mixin selector official aLaz$a;a(Lck$d;)Lan;intermediary method_8818Lnet/minecraft/class_2006$class_2008;method_8818(Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_175;named levelLnet/minecraft/advancement/criterion/ConstructBeaconCriterion$Conditions;level(Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
public boolean matches(int level) - Mappings:
Namespace Name Mixin selector official aLaz$a;a(I)Zintermediary method_8817Lnet/minecraft/class_2006$class_2008;method_8817(I)Znamed matchesLnet/minecraft/advancement/criterion/ConstructBeaconCriterion$Conditions;matches(I)Z
-
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
- Specified by:
playerin interfaceAbstractCriterion.Conditions- Mappings:
Namespace Name Mixin selector official aLcv$a;a()Ljava/util/Optional;intermediary comp_2029Lnet/minecraft/class_4558$class_8788;comp_2029()Ljava/util/Optional;named playerLnet/minecraft/advancement/criterion/AbstractCriterion$Conditions;player()Ljava/util/Optional;
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-