Record Class MobVariants.TextureReplacementTypes.ReplaceTexture
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.MobVariants.TextureReplacementTypes.ReplaceTexture
- All Implemented Interfaces:
MobVariants.TextureReplacementTypes
- Enclosing interface:
MobVariants.TextureReplacementTypes
public static record MobVariants.TextureReplacementTypes.ReplaceTexture(net.minecraft.resources.Identifier original)
extends Record
implements MobVariants.TextureReplacementTypes
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MobVariants.TextureReplacementTypes.ReplaceTexture> -
Constructor Summary
ConstructorsConstructorDescriptionReplaceTexture(net.minecraft.resources.Identifier original) Creates an instance of aReplaceTexturerecord 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.Identifieroriginal()Returns the value of theoriginalrecord component.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
CODEC
public static final com.mojang.serialization.MapCodec<MobVariants.TextureReplacementTypes.ReplaceTexture> CODEC
-
-
Constructor Details
-
ReplaceTexture
public ReplaceTexture(net.minecraft.resources.Identifier original) Creates an instance of aReplaceTexturerecord class.- Parameters:
original- the value for theoriginalrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceMobVariants.TextureReplacementTypes
-
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
public net.minecraft.resources.Identifier original()Returns the value of theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-