Record Class MobEffectsPredicate
java.lang.Object
java.lang.Record
net.minecraft.advancements.critereon.MobEffectsPredicate
public record MobEffectsPredicate(Map<Holder<MobEffect>,MobEffectsPredicate.MobEffectInstancePredicate> effectMap)
extends Record 
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobEffectsPredicate>private final Map<Holder<MobEffect>,MobEffectsPredicate.MobEffectInstancePredicate> The field for theeffectMaprecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionMobEffectsPredicate(Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> effectMap) Creates an instance of aMobEffectsPredicaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theeffectMaprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatches(Map<MobEffect, MobEffectInstance> p_56562_) booleanbooleanmatches(LivingEntity p_56558_) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
effectMapThe field for theeffectMaprecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
MobEffectsPredicatepublic MobEffectsPredicate(Map<Holder<MobEffect>, MobEffectsPredicate.MobEffectInstancePredicate> effectMap) Creates an instance of aMobEffectsPredicaterecord class.- Parameters:
- effectMap- the value for the- effectMaprecord component
 
 
- 
- 
Method Details- 
matches
- 
matches
- 
matches
- 
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).
- 
effectMapReturns the value of theeffectMaprecord component.- Returns:
- the value of the effectMaprecord component
 
 
-