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$ModelDefinition
intermediary net/minecraft/class_9824$class_4455
official gso$d
named components
intermediary comp_2873
official a
named values
intermediary comp_2874
official b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<UnbakedModel> The field for thecomponents
record component.The field for thevalues
record component. -
Constructor Summary
ConstructorDescriptionModelDefinition
(List<UnbakedModel> components, List<Object> values) Creates an instance of aModelDefinition
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponents
record component.create
(BlockState state, MultipartUnbakedModel rawModel, Collection<Property<?>> properties) create
(BlockState state, UnbakedModel rawModel, Collection<Property<?>> properties) final boolean
Indicates whether some other object is "equal to" this one.getStateValues
(BlockState state, Collection<Property<?>> properties) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.values()
Returns the value of thevalues
record component.
-
Field Details
-
components
The field for thecomponents
record component. -
values
The field for thevalues
record component.
-
-
Constructor Details
-
ModelDefinition
ModelDefinition(List<UnbakedModel> components, List<Object> values) Creates an instance of aModelDefinition
record class.- Parameters:
components
- the value for thecomponents
record componentvalues
- the value for thevalues
record component
-
-
Method Details
-
create
public static BlockStatesLoader.ModelDefinition create(BlockState state, MultipartUnbakedModel rawModel, Collection<Property<?>> properties) - Mappings:
Namespace Name Mixin selector named create
Lnet/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_21607
Lnet/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 a
Lgso$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 create
Lnet/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_21608
Lnet/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 a
Lgso$d;a(Ldtc;Lgsy;Ljava/util/Collection;)Lgso$d;
-
getStateValues
- Mappings:
Namespace Name Mixin selector named getStateValues
Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;getStateValues(Lnet/minecraft/block/BlockState;Ljava/util/Collection;)Ljava/util/List;
intermediary method_21609
Lnet/minecraft/class_9824$class_4455;method_21609(Lnet/minecraft/class_2680;Ljava/util/Collection;)Ljava/util/List;
official a
Lgso$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 thecomponents
record component.- Returns:
- the value of the
components
record component
-
values
Returns the value of thevalues
record component.- Returns:
- the value of the
values
record component
-