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$StatMatcher
intermediary net/minecraft/class_4553$class_8749
official dp$e
named type
intermediary comp_1825
official b
named value
intermediary comp_1826
official c
named range
intermediary comp_1827
official d
named stat
intermediary comp_1828
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<PlayerPredicate.StatMatcher<?>> private final NumberRange.IntRange
The field for therange
record component.The field for thestat
record component.The field for thetype
record component.private final RegistryEntry
<T> The field for thevalue
record component. -
Constructor Summary
ModifierConstructorDescriptionStatMatcher
(StatType<T> type, RegistryEntry<T> value, NumberRange.IntRange range) private
StatMatcher
(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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.range()
Returns the value of therange
record component.stat()
Returns the value of thestat
record component.boolean
test
(StatHandler statHandler) final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.value()
Returns the value of thevalue
record component.
-
Field Details
-
type
The field for thetype
record component. -
value
The field for thevalue
record component. -
range
The field for therange
record component. -
stat
The field for thestat
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45774
Lnet/minecraft/class_4553$class_8749;field_45774:Lcom/mojang/serialization/Codec;
official a
Ldp$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;)V
intermediary <init>
Lnet/minecraft/class_4553$class_8749;<init>(Lnet/minecraft/class_3448;Lnet/minecraft/class_6880;Lnet/minecraft/class_2096$class_2100;)V
official <init>
Ldp$e;<init>(Lavx;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 createCodec
Lnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;createCodec(Lnet/minecraft/stat/StatType;)Lcom/mojang/serialization/MapCodec;
intermediary method_53224
Lnet/minecraft/class_4553$class_8749;method_53224(Lnet/minecraft/class_3448;)Lcom/mojang/serialization/MapCodec;
official a
Ldp$e;a(Lavx;)Lcom/mojang/serialization/MapCodec;
-
test
- Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/entity/PlayerPredicate$StatMatcher;test(Lnet/minecraft/stat/StatHandler;)Z
intermediary method_53228
Lnet/minecraft/class_4553$class_8749;method_53228(Lnet/minecraft/class_3469;)Z
official a
Ldp$e;a(Lavz;)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 thetype
record component.- Returns:
- the value of the
type
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
range
Returns the value of therange
record component.- Returns:
- the value of the
range
record component
-
stat
Returns the value of thestat
record component.- Returns:
- the value of the
stat
record component
-