Package net.jcm.vsch.api.resource
Record Class ModelTextures
java.lang.Object
java.lang.Record
net.jcm.vsch.api.resource.ModelTextures
public record ModelTextures(TextureLocation down, TextureLocation up, TextureLocation north, TextureLocation south, TextureLocation west, TextureLocation east)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionModelTextures(TextureLocation down, TextureLocation up, TextureLocation north, TextureLocation south, TextureLocation west, TextureLocation east) Creates an instance of aModelTexturesrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondown()Returns the value of thedownrecord component.east()Returns the value of theeastrecord component.final booleanIndicates whether some other object is "equal to" this one.getTexture(net.minecraft.core.Direction dir) final inthashCode()Returns a hash code value for this object.north()Returns the value of thenorthrecord component.south()Returns the value of thesouthrecord component.final StringtoString()Returns a string representation of this record class.up()Returns the value of theuprecord component.west()Returns the value of thewestrecord component.
-
Constructor Details
-
ModelTextures
public ModelTextures(TextureLocation down, TextureLocation up, TextureLocation north, TextureLocation south, TextureLocation west, TextureLocation east) Creates an instance of aModelTexturesrecord class.- Parameters:
down- the value for thedownrecord componentup- the value for theuprecord componentnorth- the value for thenorthrecord componentsouth- the value for thesouthrecord componentwest- the value for thewestrecord componenteast- the value for theeastrecord component
-
-
Method Details
-
getTexture
-
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). -
down
Returns the value of thedownrecord component.- Returns:
- the value of the
downrecord component
-
up
Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
north
Returns the value of thenorthrecord component.- Returns:
- the value of the
northrecord component
-
south
Returns the value of thesouthrecord component.- Returns:
- the value of the
southrecord component
-
west
Returns the value of thewestrecord component.- Returns:
- the value of the
westrecord component
-
east
Returns the value of theeastrecord component.- Returns:
- the value of the
eastrecord component
-