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 theentries
record component.private static final com.google.common.base.Joiner
private static final com.mojang.serialization.Codec
<String> private static final char
private static final com.google.common.base.Splitter
-
Constructor Summary
ConstructorsConstructorDescriptionTerms
(List<KeyValueCondition.Term> entries) Creates an instance of aTerms
record class. -
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.private <T extends Comparable<T>>
TgetValueOrThrow
(Object p_405650_, Property<T> p_405129_, String p_405218_) final int
hashCode()
Returns a hash code value for this object.private <T extends Comparable<T>>
Predicate<T> instantiate
(Object p_405656_, Property<T> p_405057_, KeyValueCondition.Term p_405563_) <O,
S extends StateHolder<O, S>, T extends Comparable<T>>
Predicate<S> instantiate
(O p_404984_, Property<T> p_405617_) static com.mojang.serialization.DataResult
<KeyValueCondition.Terms> toString()
Returns a string representation of this record class.
-
Field Details
-
entries
The field for theentries
record component. -
SEPARATOR
private static final char SEPARATOR- See Also:
-
JOINER
private static final com.google.common.base.Joiner JOINER -
SPLITTER
private static final com.google.common.base.Splitter SPLITTER -
LEGACY_REPRESENTATION_CODEC
-
CODEC
-
-
Constructor Details
-
Terms
Creates an instance of aTerms
record class.- Parameters:
entries
- the value for theentries
record component
-
-
Method Details
-
parse
-
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. -
instantiate
public <O,S extends StateHolder<O, Predicate<S> instantiateS>, T extends Comparable<T>> (O p_404984_, Property<T> p_405617_) -
getValueOrThrow
private <T extends Comparable<T>> T getValueOrThrow(Object p_405650_, Property<T> p_405129_, String p_405218_) -
instantiate
private <T extends Comparable<T>> Predicate<T> instantiate(Object p_405656_, Property<T> p_405057_, KeyValueCondition.Term p_405563_) -
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)
. -
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-