Record Class KeyValueCondition.Terms
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.multipart.KeyValueCondition.Terms
- Enclosing class:
KeyValueCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<KeyValueCondition.Terms> private final List<KeyValueCondition.Term> The field for theentriesrecord component.private static final Joinerprivate static final com.mojang.serialization.Codec<String> private static final charprivate static final Splitter -
Constructor Summary
ConstructorsConstructorDescriptionTerms(List<KeyValueCondition.Term> entries) Creates an instance of aTermsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.private <T extends Comparable<T>>
TgetValueOrThrow(Object owner, Property<T> property, String input) final inthashCode()Returns a hash code value for this object.private <T extends Comparable<T>>
Predicate<T> instantiate(Object owner, Property<T> property, KeyValueCondition.Term term) <O, S extends StateHolder<O,S>, T extends Comparable<T>>
Predicate<S> instantiate(O owner, Property<T> property) static com.mojang.serialization.DataResult<KeyValueCondition.Terms> toString()Returns a string representation of this record class.
-
Field Details
-
entries
The field for theentriesrecord component. -
SEPARATOR
private static final char SEPARATOR- See Also:
-
JOINER
-
SPLITTER
-
LEGACY_REPRESENTATION_CODEC
-
CODEC
-
-
Constructor Details
-
Terms
Creates an instance of aTermsrecord class.- Parameters:
entries- the value for theentriesrecord component
-
-
Method Details
-
parse
-
toString
-
instantiate
public <O, S extends StateHolder<O,S>, T extends Comparable<T>> Predicate<S> instantiate(O owner, Property<T> property) -
getValueOrThrow
private <T extends Comparable<T>> T getValueOrThrow(Object owner, Property<T> property, String input) -
instantiate
private <T extends Comparable<T>> Predicate<T> instantiate(Object owner, Property<T> property, KeyValueCondition.Term term) -
hashCode
-
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-