Record Class BlockStatesLoader.ModelDefinition
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.BlockStatesLoader.ModelDefinition
- Record Components:
components-values-
- Enclosing class:
BlockStatesLoader
@Environment(CLIENT)
private static record BlockStatesLoader.ModelDefinition(List<UnbakedModel> components, List<Object> values)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/BlockStatesLoader$ModelDefinitionintermediary net/minecraft/class_9824$class_4455official gso$dnamed componentsintermediary comp_2873official anamed valuesintermediary comp_2874official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<UnbakedModel> The field for thecomponentsrecord component.The field for thevaluesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelDefinition(List<UnbakedModel> components, List<Object> values) Creates an instance of aModelDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.create(BlockState state, MultipartUnbakedModel rawModel, Collection<Property<?>> properties) create(BlockState state, UnbakedModel rawModel, Collection<Property<?>> properties) final booleanIndicates whether some other object is "equal to" this one.getStateValues(BlockState state, Collection<Property<?>> properties) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
components
The field for thecomponentsrecord component. -
values
The field for thevaluesrecord component.
-
-
Constructor Details
-
ModelDefinition
ModelDefinition(List<UnbakedModel> components, List<Object> values) Creates an instance of aModelDefinitionrecord class.- Parameters:
components- the value for thecomponentsrecord componentvalues- the value for thevaluesrecord component
-
-
Method Details
-
create
public static BlockStatesLoader.ModelDefinition create(BlockState state, MultipartUnbakedModel rawModel, Collection<Property<?>> properties) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;create(Lnet/minecraft/block/BlockState;Lnet/minecraft/client/render/model/MultipartUnbakedModel;Ljava/util/Collection;)Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;intermediary method_21607Lnet/minecraft/class_9824$class_4455;method_21607(Lnet/minecraft/class_2680;Lnet/minecraft/class_816;Ljava/util/Collection;)Lnet/minecraft/class_9824$class_4455;official aLgso$d;a(Ldtc;Lggo;Ljava/util/Collection;)Lgso$d;
-
create
public static BlockStatesLoader.ModelDefinition create(BlockState state, UnbakedModel rawModel, Collection<Property<?>> properties) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;create(Lnet/minecraft/block/BlockState;Lnet/minecraft/client/render/model/UnbakedModel;Ljava/util/Collection;)Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;intermediary method_21608Lnet/minecraft/class_9824$class_4455;method_21608(Lnet/minecraft/class_2680;Lnet/minecraft/class_1100;Ljava/util/Collection;)Lnet/minecraft/class_9824$class_4455;official aLgso$d;a(Ldtc;Lgsy;Ljava/util/Collection;)Lgso$d;
-
getStateValues
- Mappings:
Namespace Name Mixin selector named getStateValuesLnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;getStateValues(Lnet/minecraft/block/BlockState;Ljava/util/Collection;)Ljava/util/List;intermediary method_21609Lnet/minecraft/class_9824$class_4455;method_21609(Lnet/minecraft/class_2680;Ljava/util/Collection;)Ljava/util/List;official aLgso$d;a(Ldtc;Ljava/util/Collection;)Ljava/util/List;
-
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). -
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-