Record Class MobVariants.TextureReplacement
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.MobVariants.TextureReplacement
- Enclosing class:
MobVariants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobVariants.TextureReplacement> -
Constructor Summary
ConstructorsConstructorDescriptionTextureReplacement(Optional<net.minecraft.resources.Identifier> original, 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.Optional<net.minecraft.resources.Identifier> original()Returns the value of theoriginalrecord component.net.minecraft.resources.IdentifierReturns the value of thereplacementrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TextureReplacement
public TextureReplacement(Optional<net.minecraft.resources.Identifier> original, net.minecraft.resources.Identifier replacement) Creates an instance of aTextureReplacementrecord class.- Parameters:
original- the value for theoriginalrecord 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). -
original
Returns the value of theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-
replacement
public net.minecraft.resources.Identifier replacement()Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-