Record Class BedrockPlayerSkins.PreviewSurface
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockPlayerSkins.PreviewSurface
- Enclosing class:
BedrockPlayerSkins
public static record BedrockPlayerSkins.PreviewSurface(BedrockAnimatedModel animatedModel, net.minecraft.resources.Identifier texture)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreviewSurface(BedrockAnimatedModel animatedModel, net.minecraft.resources.Identifier texture) Creates an instance of aPreviewSurfacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimatedModelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.model.Model.Simplemodel()net.minecraft.resources.Identifiertexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreviewSurface
public PreviewSurface(BedrockAnimatedModel animatedModel, net.minecraft.resources.Identifier texture) Creates an instance of aPreviewSurfacerecord class.- Parameters:
animatedModel- the value for theanimatedModelrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
model
public net.minecraft.client.model.Model.Simple model() -
toString
-
hashCode
-
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). -
animatedModel
Returns the value of theanimatedModelrecord component.- Returns:
- the value of the
animatedModelrecord component
-
texture
public net.minecraft.resources.Identifier texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-