Package net.minecraft.predicate
Record Class StatePredicate.Condition
java.lang.Object
java.lang.Record
net.minecraft.predicate.StatePredicate.Condition
- Record Components:
- key-
- valueMatcher-
- Enclosing class:
- StatePredicate
private static record StatePredicate.Condition(String key, StatePredicate.ValueMatcher valueMatcher)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/StatePredicate$Condition- intermediary - net/minecraft/class_4559$class_4562- official - ef$c- named - key- intermediary - comp_1832- official - b- named - valueMatcher- intermediary - comp_1833- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for thekeyrecord component.static final PacketCodec<ByteBuf, StatePredicate.Condition> private final StatePredicate.ValueMatcherThe field for thevalueMatcherrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCondition(String key, StatePredicate.ValueMatcher valueMatcher) Creates an instance of aConditionrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.reportMissing(StateManager<?, ?> factory) <S extends State<?,S>> 
 booleantest(StateManager<?, S> stateManager, S state) final StringtoString()Returns a string representation of this record class.Returns the value of thevalueMatcherrecord component.
- 
Field Details- 
keyThe field for thekeyrecord component.
- 
valueMatcherThe field for thevalueMatcherrecord component.
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/predicate/StatePredicate$Condition;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_49398- Lnet/minecraft/class_4559$class_4562;field_49398:Lnet/minecraft/class_9139;- official - a- Lef$c;a:Lyn;
 
 
- 
- 
Constructor Details- 
ConditionCondition(String key, StatePredicate.ValueMatcher valueMatcher) Creates an instance of aConditionrecord class.- Parameters:
- key- the value for the- keyrecord component
- valueMatcher- the value for the- valueMatcherrecord component
 
 
- 
- 
Method Details- 
test- Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/StatePredicate$Condition;test(Lnet/minecraft/state/StateManager;Lnet/minecraft/state/State;)Z- intermediary - method_22530- Lnet/minecraft/class_4559$class_4562;method_22530(Lnet/minecraft/class_2689;Lnet/minecraft/class_2688;)Z- official - a- Lef$c;a(Ldwz;Ldxa;)Z
 
- 
reportMissing- Mappings:
- Namespace - Name - Mixin selector - named - reportMissing- Lnet/minecraft/predicate/StatePredicate$Condition;reportMissing(Lnet/minecraft/state/StateManager;)Ljava/util/Optional;- intermediary - method_22531- Lnet/minecraft/class_4559$class_4562;method_22531(Lnet/minecraft/class_2689;)Ljava/util/Optional;- official - a- Lef$c;a(Ldwz;)Ljava/util/Optional;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
valueMatcherReturns the value of thevalueMatcherrecord component.- Returns:
- the value of the valueMatcherrecord component
 
 
-