Package net.minecraft.predicate.entity
Record Class PlayerPredicate.class_8749<T>
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.PlayerPredicate.class_8749<T>
- Record Components:
type-value-range-stat-
- Enclosing class:
PlayerPredicate
private static record PlayerPredicate.class_8749<T>(StatType<T> type, RegistryEntry<T> value, NumberRange.IntRange range, Supplier<Stat<T>> stat)
extends Record
- Mappings:
Namespace Name official cp$eintermediary net/minecraft/class_4553$class_8749named net/minecraft/predicate/entity/PlayerPredicate$class_8749official bintermediary comp_1825named typeofficial cintermediary comp_1826named valueofficial dintermediary comp_1827named rangeofficial eintermediary comp_1828named stat
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<PlayerPredicate.class_8749<?>>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
ConstructorsModifierConstructorDescriptionclass_8749(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange) privateclass_8749(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange, Supplier<Stat<T>> supplier) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private static <T> com.mojang.serialization.Codec<PlayerPredicate.class_8749<T>>method_53224(StatType<T> statType) booleanmethod_53228(StatHandler statHandler) range()Returns the value of therangerecord component.stat()Returns the value of thestatrecord component.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. -
field_45774
- Mappings:
Namespace Name Mixin selector official aLcp$e;a:Lcom/mojang/serialization/Codec;intermediary field_45774Lnet/minecraft/class_4553$class_8749;field_45774:Lcom/mojang/serialization/Codec;named field_45774Lnet/minecraft/predicate/entity/PlayerPredicate$class_8749;field_45774:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8749
public class_8749(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange) -
class_8749
private class_8749(StatType<T> statType, RegistryEntry<T> registryEntry, NumberRange.IntRange intRange, Supplier<Stat<T>> supplier)
-
-
Method Details
-
method_53224
private static <T> com.mojang.serialization.Codec<PlayerPredicate.class_8749<T>> method_53224(StatType<T> statType) - Mappings:
Namespace Name Mixin selector official aLcp$e;a(Lapf;)Lcom/mojang/serialization/Codec;intermediary method_53224Lnet/minecraft/class_4553$class_8749;method_53224(Lnet/minecraft/class_3448;)Lcom/mojang/serialization/Codec;named method_53224Lnet/minecraft/predicate/entity/PlayerPredicate$class_8749;method_53224(Lnet/minecraft/stat/StatType;)Lcom/mojang/serialization/Codec;
-
method_53228
- Mappings:
Namespace Name Mixin selector official aLcp$e;a(Laph;)Zintermediary method_53228Lnet/minecraft/class_4553$class_8749;method_53228(Lnet/minecraft/class_3469;)Znamed method_53228Lnet/minecraft/predicate/entity/PlayerPredicate$class_8749;method_53228(Lnet/minecraft/stat/StatHandler;)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
-