Package net.minecraft.predicate.entity
Record Class PlayerPredicate.CompletedAdvancementPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.PlayerPredicate.CompletedAdvancementPredicate
- Record Components:
done-
- All Implemented Interfaces:
Predicate<AdvancementProgress>,PlayerPredicate.AdvancementPredicate
- Enclosing class:
PlayerPredicate
private static record PlayerPredicate.CompletedAdvancementPredicate(boolean done)
extends Record
implements PlayerPredicate.AdvancementPredicate
- Mappings:
Namespace Name named net/minecraft/predicate/entity/PlayerPredicate$CompletedAdvancementPredicateintermediary net/minecraft/class_4553$class_4555official dp$bnamed doneintermediary comp_1824official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerPredicate.CompletedAdvancementPredicate> private final booleanThe field for thedonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCompletedAdvancementPredicate(boolean done) Creates an instance of aCompletedAdvancementPredicaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandone()Returns the value of thedonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(AdvancementProgress advancementProgress) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
done
private final boolean doneThe field for thedonerecord component. -
CODEC
public static final com.mojang.serialization.Codec<PlayerPredicate.CompletedAdvancementPredicate> CODEC- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/PlayerPredicate$CompletedAdvancementPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45772Lnet/minecraft/class_4553$class_4555;field_45772:Lcom/mojang/serialization/Codec;official aLdp$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
CompletedAdvancementPredicate
CompletedAdvancementPredicate(boolean done) Creates an instance of aCompletedAdvancementPredicaterecord class.- Parameters:
done- the value for thedonerecord component
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<AdvancementProgress>- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/PlayerPredicate$CompletedAdvancementPredicate;test(Lnet/minecraft/advancement/AdvancementProgress;)Zintermediary method_22505Lnet/minecraft/class_4553$class_4555;method_22505(Lnet/minecraft/class_167;)Zofficial aLdp$b;a(Lai;)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 with '=='. -
done
public boolean done()Returns the value of thedonerecord component.- Returns:
- the value of the
donerecord component
-