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/EntityEffectPredicateintermediary net/minecraft/class_2102official dinamed effectsintermediary comp_1811official b
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EntityEffectPredicate> private final Map<RegistryEntry<StatusEffect>, EntityEffectPredicate.EffectData> The field for theeffectsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aEntityEffectPredicaterecord class. -
Method Summary
Modifier 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
-
effects
The field for theeffectsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/EntityEffectPredicate;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45764Lnet/minecraft/class_2102;field_45764:Lcom/mojang/serialization/Codec;official aLdi;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EntityEffectPredicate
public EntityEffectPredicate(Map<RegistryEntry<StatusEffect>, EntityEffectPredicate.EffectData> effects) Creates an instance of aEntityEffectPredicaterecord class.- Parameters:
effects- the value for theeffectsrecord component
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntityEffectPredicate;test(Lnet/minecraft/entity/Entity;)Zintermediary method_9062Lnet/minecraft/class_2102;method_9062(Lnet/minecraft/class_1297;)Zofficial aLdi;a(Lbsr;)Z
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntityEffectPredicate;test(Lnet/minecraft/entity/LivingEntity;)Zintermediary method_9067Lnet/minecraft/class_2102;method_9067(Lnet/minecraft/class_1309;)Zofficial aLdi;a(Lbtn;)Z
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/EntityEffectPredicate;test(Ljava/util/Map;)Zintermediary method_9063Lnet/minecraft/class_2102;method_9063(Ljava/util/Map;)Zofficial aLdi;a(Ljava/util/Map;)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). -
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-