Record Class SpecialModelWrapper.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.SpecialModelWrapper.Unbaked
- All Implemented Interfaces:
ItemModel.Unbaked, ResolvableModel
- Enclosing class:
SpecialModelWrapper<T>
public static record SpecialModelWrapper.Unbaked(Identifier base, Optional<Transformation> transformation, SpecialModelRenderer.Unbaked<?> specialModel)
extends Record
implements ItemModel.Unbaked
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResolvableModel
ResolvableModel.Resolver -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thebaserecord component.static final MapCodec<SpecialModelWrapper.Unbaked> private final SpecialModelRenderer.Unbaked<?> The field for thespecialModelrecord component.private final Optional<Transformation> The field for thetransformationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(Identifier base, Optional<Transformation> transformation, SpecialModelRenderer.Unbaked<?> specialModel) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(ItemModel.BakingContext context, org.joml.Matrix4fc transformation) base()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.private ModelRenderPropertiesgetProperties(ItemModel.BakingContext context) final inthashCode()Returns a hash code value for this object.voidresolveDependencies(ResolvableModel.Resolver resolver) Returns the value of thespecialModelrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationrecord component.type()
-
Field Details
-
base
The field for thebaserecord component. -
transformation
The field for thetransformationrecord component. -
specialModel
The field for thespecialModelrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(Identifier base, Optional<Transformation> transformation, SpecialModelRenderer.Unbaked<?> specialModel) Creates an instance of aUnbakedrecord class.- Parameters:
base- the value for thebaserecord componenttransformation- the value for thetransformationrecord componentspecialModel- the value for thespecialModelrecord component
-
-
Method Details
-
resolveDependencies
- Specified by:
resolveDependenciesin interfaceResolvableModel
-
bake
- Specified by:
bakein interfaceItemModel.Unbaked
-
getProperties
-
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). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
transformation
Returns the value of thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-
specialModel
Returns the value of thespecialModelrecord component.- Returns:
- the value of the
specialModelrecord component
-