Package net.minecraft.predicate
Record Class StatePredicate.ExactValueCondition
java.lang.Object
java.lang.Record
net.minecraft.predicate.StatePredicate.ExactValueCondition
- Record Components:
value
-
- All Implemented Interfaces:
StatePredicate.class_8750
- Enclosing class:
StatePredicate
private static record StatePredicate.ExactValueCondition(String value)
extends Record
implements StatePredicate.class_8750
- Mappings:
Namespace Name official cy$b
intermediary net/minecraft/class_4559$class_4561
named net/minecraft/predicate/StatePredicate$ExactValueCondition
official c
intermediary comp_1831
named value
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StatePredicate.ExactValueCondition>
private final String
The field for thevalue
record component.Fields inherited from interface net.minecraft.predicate.StatePredicate.class_8750
field_45781
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.<T extends Comparable<T>>
booleanfinal String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component. -
field_45779
- Mappings:
Namespace Name Mixin selector official a
Lcy$b;a:Lcom/mojang/serialization/Codec;
intermediary field_45779
Lnet/minecraft/class_4559$class_4561;field_45779:Lcom/mojang/serialization/Codec;
named field_45779
Lnet/minecraft/predicate/StatePredicate$ExactValueCondition;field_45779:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
ExactValueCondition
ExactValueCondition(String key) - Mappings:
Namespace Name Mixin selector official <init>
Lcy$b;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_4559$class_4561;<init>(Ljava/lang/String;)V
named <init>
Lnet/minecraft/predicate/StatePredicate$ExactValueCondition;<init>(Ljava/lang/String;)V
-
-
Method Details
-
test
- Specified by:
test
in interfaceStatePredicate.class_8750
- Mappings:
Namespace Name Mixin selector official a
Lcy$e;a(Ldfc;Ldgd;)Z
intermediary method_22532
Lnet/minecraft/class_4559$class_8750;method_22532(Lnet/minecraft/class_2688;Lnet/minecraft/class_2769;)Z
named test
Lnet/minecraft/predicate/StatePredicate$class_8750;test(Lnet/minecraft/state/State;Lnet/minecraft/state/property/Property;)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)
. -
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-