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 dk
named effects
intermediary comp_1811
official b
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EntityEffectPredicate> private final Map
<RegistryEntry<StatusEffect>, EntityEffectPredicate.EffectData> The field for theeffects
record component. -
Constructor Summary
ConstructorDescriptionCreates an instance of aEntityEffectPredicate
record class. -
Method Summary
Modifier and TypeMethodDescriptioneffects()
Returns the value of theeffects
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
test
(Map<RegistryEntry<StatusEffect>, StatusEffectInstance> effects) boolean
boolean
test
(LivingEntity livingEntity) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
effects
The field for theeffects
record 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
Ldk;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
EntityEffectPredicate
public EntityEffectPredicate(Map<RegistryEntry<StatusEffect>, EntityEffectPredicate.EffectData> effects) Creates an instance of aEntityEffectPredicate
record class.- Parameters:
effects
- the value for theeffects
record 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
Ldk;a(Lbvj;)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
Ldk;a(Lbwf;)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
Ldk;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 theeffects
record component.- Returns:
- the value of the
effects
record component
-