Package net.minecraft.predicate.entity
Record Class PlayerPredicate.StatMatcher<T>
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.PlayerPredicate.StatMatcher<T>
- Record Components:
type-value-range-stat-
- Enclosing class:
PlayerPredicate
private static record PlayerPredicate.StatMatcher<T>(StatType<T> type, RegistryEntry<T> value, NumberRange.IntRange range, Supplier<Stat<T>> stat)
extends Record
- Mappings:
Namespace Name named net/minecraft/predicate/entity/PlayerPredicate$StatMatcherintermediary net/minecraft/class_4553$class_8749official dp$enamed typeintermediary comp_1825official bnamed valueintermediary comp_1826official cnamed rangeintermediary comp_1827official dnamed statintermediary comp_1828official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerPredicate.StatMatcher<?>> private final NumberRange.IntRangeThe field for therangerecord component.The field for thestatrecord component.The field for thetyperecord component.private final RegistryEntry<T> The field for thevaluerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionStatMatcher(StatType<T> type, RegistryEntry<T> value, NumberRange.IntRange range) privateStatMatcher(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange, Supplier<Stat<T>> supplier) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.serialization.MapCodec<PlayerPredicate.StatMatcher<T>> createCodec(StatType<T> type) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.range()Returns the value of therangerecord component.stat()Returns the value of thestatrecord component.booleantest(StatHandler statHandler) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
type
The field for thetyperecord component. -
value
The field for thevaluerecord component. -
range
The field for therangerecord component. -
stat
The field for thestatrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45774Lnet/minecraft/class_4553$class_8749;field_45774:Lcom/mojang/serialization/Codec;official aLdp$e;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
StatMatcher
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;<init>(Lnet/minecraft/stat/StatType;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/predicate/NumberRange$IntRange;)Vintermediary <init>Lnet/minecraft/class_4553$class_8749;<init>(Lnet/minecraft/class_3448;Lnet/minecraft/class_6880;Lnet/minecraft/class_2096$class_2100;)Vofficial <init>Ldp$e;<init>(Lavy;Ljm;Ldh$d;)V
-
StatMatcher
private StatMatcher(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange, Supplier<Stat<T>> supplier)
-
-
Method Details
-
createCodec
private static <T> com.mojang.serialization.MapCodec<PlayerPredicate.StatMatcher<T>> createCodec(StatType<T> type) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;createCodec(Lnet/minecraft/stat/StatType;)Lcom/mojang/serialization/MapCodec;intermediary method_53224Lnet/minecraft/class_4553$class_8749;method_53224(Lnet/minecraft/class_3448;)Lcom/mojang/serialization/MapCodec;official aLdp$e;a(Lavy;)Lcom/mojang/serialization/MapCodec;
-
test
- Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;test(Lnet/minecraft/stat/StatHandler;)Zintermediary method_53228Lnet/minecraft/class_4553$class_8749;method_53228(Lnet/minecraft/class_3469;)Zofficial aLdp$e;a(Lawa;)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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
stat
Returns the value of thestatrecord component.- Returns:
- the value of the
statrecord component
-