Package net.mcreator.workspace.resources
Record Class TexturedModel.TextureMapping
java.lang.Object
java.lang.Record
net.mcreator.workspace.resources.TexturedModel.TextureMapping
- Record Components:
map- key: texture id, value: texture resource location
- Enclosing class:
TexturedModel
public static record TexturedModel.TextureMapping(String name, Map<String,TextureHolder> map)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextureMapping(String name, Map<String, TextureHolder> map) Creates an instance of aTextureMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.map()Returns the value of themaprecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextureMapping
Creates an instance of aTextureMappingrecord class.- Parameters:
name- the value for thenamerecord componentmap- the value for themaprecord component
-
-
Method Details
-
getTextureMap
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-