Package net.minecraft.predicate.entity
Record Class EntityEffectPredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.EntityEffectPredicate
- Record Components:
- effects-
public record EntityEffectPredicate(Map<RegistryEntry<StatusEffect>,EntityEffectPredicate.EffectData> effects)
extends Record 
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/entity/EntityEffectPredicate- intermediary - net/minecraft/class_2102- official - dl- named - effects- intermediary - comp_1811- official - b
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityEffectPredicate> private final Map<RegistryEntry<StatusEffect>, EntityEffectPredicate.EffectData> The field for theeffectsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an instance of aEntityEffectPredicaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptioneffects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(Map<RegistryEntry<StatusEffect>, StatusEffectInstance> effects) booleanbooleantest(LivingEntity livingEntity) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
effectsThe field for theeffectsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/entity/EntityEffectPredicate;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45764- Lnet/minecraft/class_2102;field_45764:Lcom/mojang/serialization/Codec;- official - a- Ldl;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
EntityEffectPredicatepublic EntityEffectPredicate(Map<RegistryEntry<StatusEffect>, EntityEffectPredicate.EffectData> effects) Creates an instance of aEntityEffectPredicaterecord class.- Parameters:
- effects- the value for the- effectsrecord component
 
 
- 
- 
Method Details- 
test- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/EntityEffectPredicate;test(Lnet/minecraft/entity/Entity;)Z- intermediary - method_9062- Lnet/minecraft/class_2102;method_9062(Lnet/minecraft/class_1297;)Z- official - a- Ldl;a(Lbum;)Z
 
- 
test- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/EntityEffectPredicate;test(Lnet/minecraft/entity/LivingEntity;)Z- intermediary - method_9067- Lnet/minecraft/class_2102;method_9067(Lnet/minecraft/class_1309;)Z- official - a- Ldl;a(Lbvi;)Z
 
- 
test- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/EntityEffectPredicate;test(Ljava/util/Map;)Z- intermediary - method_9063- Lnet/minecraft/class_2102;method_9063(Ljava/util/Map;)Z- official - a- Ldl;a(Ljava/util/Map;)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).
- 
effectsReturns the value of theeffectsrecord component.- Returns:
- the value of the effectsrecord component
 
 
-