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$Entry
intermediary net/minecraft/class_4925$class_10797
official fsq$b
named properties
intermediary comp_3715
official a
named variant
intermediary comp_3716
official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PropertiesMap
The field for theproperties
record component.private final WeightedVariant
The field for thevariant
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(BlockStateVariantMap<ModelVariantOperator> operatorMap) apply
(ModelVariantOperator operator) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theproperties
record component.final String
toString()
Returns a string representation of this record class.variant()
Returns the value of thevariant
record component.
-
Field Details
-
properties
The field for theproperties
record component. -
variant
The field for thevariant
record 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 apply
Lnet/minecraft/client/data/VariantsBlockModelDefinitionCreator$Entry;apply(Lnet/minecraft/client/data/BlockStateVariantMap;)Ljava/util/stream/Stream;
intermediary method_67861
Lnet/minecraft/class_4925$class_10797;method_67861(Lnet/minecraft/class_4926;)Ljava/util/stream/Stream;
official a
Lfsq$b;a(Lfsr;)Ljava/util/stream/Stream;
-
apply
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/client/data/VariantsBlockModelDefinitionCreator$Entry;apply(Lnet/minecraft/client/render/model/json/ModelVariantOperator;)Ljava/util/stream/Stream;
intermediary method_67862
Lnet/minecraft/class_4925$class_10797;method_67862(Lnet/minecraft/class_10804;)Ljava/util/stream/Stream;
official a
Lfsq$b;a(Lgtk;)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 theproperties
record component.- Returns:
- the value of the
properties
record component
-
variant
Returns the value of thevariant
record component.- Returns:
- the value of the
variant
record component
-