Package net.minecraft.client.data
Record Class VariantsBlockModelDefinitionCreator.Entry
java.lang.Object
java.lang.Record
net.minecraft.client.data.VariantsBlockModelDefinitionCreator.Entry
- Record Components:
properties-variant-
- Enclosing class:
VariantsBlockModelDefinitionCreator
@Environment(CLIENT)
private static record VariantsBlockModelDefinitionCreator.Entry(PropertiesMap properties, WeightedVariant variant)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/data/VariantsBlockModelDefinitionCreator$Entryintermediary net/minecraft/class_4925$class_10797official gce$bnamed propertiesintermediary comp_3715official anamed variantintermediary comp_3716official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PropertiesMapThe field for thepropertiesrecord component.private final WeightedVariantThe field for thevariantrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(BlockStateVariantMap<ModelVariantOperator> operatorMap) apply(ModelVariantOperator operator) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Field Details
-
properties
The field for thepropertiesrecord component. -
variant
The field for thevariantrecord component.
-
-
Constructor Details
-
Entry
Entry(PropertiesMap propertiesMap, WeightedVariant weightedVariant)
-
-
Method Details
-
apply
public Stream<VariantsBlockModelDefinitionCreator.Entry> apply(BlockStateVariantMap<ModelVariantOperator> operatorMap) - Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/data/VariantsBlockModelDefinitionCreator$Entry;apply(Lnet/minecraft/client/data/BlockStateVariantMap;)Ljava/util/stream/Stream;intermediary method_67861Lnet/minecraft/class_4925$class_10797;method_67861(Lnet/minecraft/class_4926;)Ljava/util/stream/Stream;official aLgce$b;a(Lgcf;)Ljava/util/stream/Stream;
-
apply
- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/data/VariantsBlockModelDefinitionCreator$Entry;apply(Lnet/minecraft/client/render/model/json/ModelVariantOperator;)Ljava/util/stream/Stream;intermediary method_67862Lnet/minecraft/class_4925$class_10797;method_67862(Lnet/minecraft/class_10804;)Ljava/util/stream/Stream;official aLgce$b;a(Lhib;)Ljava/util/stream/Stream;
-
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). -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-