Package net.minecraft.predicate.entity
Record Class PlayerPredicate.AdvancementCriteriaPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.PlayerPredicate.AdvancementCriteriaPredicate
- Record Components:
- criteria-
- All Implemented Interfaces:
- Predicate<AdvancementProgress>,- PlayerPredicate.AdvancementPredicate
- Enclosing class:
- PlayerPredicate
private static record PlayerPredicate.AdvancementCriteriaPredicate(Object2BooleanMap<String> criteria)
extends Record
implements PlayerPredicate.AdvancementPredicate
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/entity/PlayerPredicate$AdvancementCriteriaPredicate- intermediary - net/minecraft/class_4553$class_4554- official - ds$a- named - criteria- intermediary - comp_1823- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerPredicate.AdvancementCriteriaPredicate> private final Object2BooleanMap<String> The field for thecriteriarecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionAdvancementCriteriaPredicate(Object2BooleanMap<String> criteria) Creates an instance of aAdvancementCriteriaPredicaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptioncriteria()Returns the value of thecriteriarecord 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- 
criteriaThe field for thecriteriarecord component.
- 
CODECpublic static final com.mojang.serialization.Codec<PlayerPredicate.AdvancementCriteriaPredicate> CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/entity/PlayerPredicate$AdvancementCriteriaPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45771- Lnet/minecraft/class_4553$class_4554;field_45771:Lcom/mojang/serialization/Codec;- official - a- Lds$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
AdvancementCriteriaPredicateAdvancementCriteriaPredicate(Object2BooleanMap<String> criteria) Creates an instance of aAdvancementCriteriaPredicaterecord class.- Parameters:
- criteria- the value for the- criteriarecord component
 
 
- 
- 
Method Details- 
test- Specified by:
- testin interface- Predicate<AdvancementProgress>
- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/PlayerPredicate$AdvancementCriteriaPredicate;test(Lnet/minecraft/advancement/AdvancementProgress;)Z- intermediary - method_22504- Lnet/minecraft/class_4553$class_4554;method_22504(Lnet/minecraft/class_167;)Z- official - a- Lds$a;a(Lak;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
criteriaReturns the value of thecriteriarecord component.- Returns:
- the value of the criteriarecord component
 
 
-