Record Class TrimmedArmorModel.Unbaked
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.item.TrimmedArmorModel.Unbaked
- All Implemented Interfaces:
ItemModel.Unbaked, ResolvableModel
- Enclosing class:
TrimmedArmorModel
public static record TrimmedArmorModel.Unbaked(ItemModel.Unbaked baseModel, Identifier baseTrimTexture)
extends Record
implements ItemModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemModel.UnbakedThe field for thebaseModelrecord component.private final IdentifierThe field for thebaseTrimTexturerecord component.static final com.mojang.serialization.MapCodec<TrimmedArmorModel.Unbaked> -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(ItemModel.Unbaked baseModel, Identifier baseTrimTexture) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakingContext context, Matrix4fc transformation) Returns the value of thebaseModelrecord component.Returns the value of thebaseTrimTexturerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidresolveDependencies(ResolvableModel.Resolver resolver) final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<? extends ItemModel.Unbaked> type()
-
Field Details
-
baseModel
The field for thebaseModelrecord component. -
baseTrimTexture
The field for thebaseTrimTexturerecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
baseModel- the value for thebaseModelrecord componentbaseTrimTexture- the value for thebaseTrimTexturerecord component
-
-
Method Details
-
bake
- Specified by:
bakein interfaceItemModel.Unbaked
-
resolveDependencies
- Specified by:
resolveDependenciesin interfaceResolvableModel
-
type
- Specified by:
typein interfaceItemModel.Unbaked
-
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). -
baseModel
Returns the value of thebaseModelrecord component.- Returns:
- the value of the
baseModelrecord component
-
baseTrimTexture
Returns the value of thebaseTrimTexturerecord component.- Returns:
- the value of the
baseTrimTexturerecord component
-