Record Class MobVariants.TextureReplacement
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.MobVariants.TextureReplacement
- Enclosing class:
MobVariants
public static record MobVariants.TextureReplacement(MobVariants.TextureReplacementTypes textureReplacementTypes, net.minecraft.resources.Identifier replacement)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextureReplacement(MobVariants.TextureReplacementTypes textureReplacementTypes, net.minecraft.resources.Identifier replacement) Creates an instance of aTextureReplacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.IdentifierReturns the value of thereplacementrecord component.Returns the value of thetextureReplacementTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextureReplacement
public TextureReplacement(MobVariants.TextureReplacementTypes textureReplacementTypes, net.minecraft.resources.Identifier replacement) Creates an instance of aTextureReplacementrecord class.- Parameters:
textureReplacementTypes- the value for thetextureReplacementTypesrecord componentreplacement- the value for thereplacementrecord component
-
-
Method Details
-
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). -
textureReplacementTypes
Returns the value of thetextureReplacementTypesrecord component.- Returns:
- the value of the
textureReplacementTypesrecord component
-
replacement
public net.minecraft.resources.Identifier replacement()Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-