Record Class SpecialModelRenderer.BakingContext.Simple
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext.Simple
- All Implemented Interfaces:
SpecialModelRenderer.BakingContext
- Enclosing interface:
SpecialModelRenderer.BakingContext
public static record SpecialModelRenderer.BakingContext.Simple(EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache, AnimationLoader.PendingAnimations pendingAnimations)
extends Record
implements SpecialModelRenderer.BakingContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext
SpecialModelRenderer.BakingContext.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityModelSetThe field for theentityModelSetrecord component.private final MaterialSetThe field for thematerialsrecord component.private final AnimationLoader.PendingAnimationsThe field for thependingAnimationsrecord component.private final PlayerSkinRenderCacheThe field for theplayerSkinRenderCacherecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSimple(EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache) Deprecated.Simple(EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache, AnimationLoader.PendingAnimations pendingAnimations) Creates an instance of aSimplerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityModelSetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thematerialsrecord component.Returns the value of thependingAnimationsrecord component.Returns the value of theplayerSkinRenderCacherecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entityModelSet
The field for theentityModelSetrecord component. -
materials
The field for thematerialsrecord component. -
playerSkinRenderCache
The field for theplayerSkinRenderCacherecord component. -
pendingAnimations
The field for thependingAnimationsrecord component.
-
-
Constructor Details
-
Simple
@Deprecated public Simple(EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache) -
Simple
public Simple(EntityModelSet entityModelSet, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache, AnimationLoader.PendingAnimations pendingAnimations) Creates an instance of aSimplerecord class.- Parameters:
entityModelSet- the value for theentityModelSetrecord componentmaterials- the value for thematerialsrecord componentplayerSkinRenderCache- the value for theplayerSkinRenderCacherecord componentpendingAnimations- the value for thependingAnimationsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
entityModelSet
Returns the value of theentityModelSetrecord component.- Specified by:
entityModelSetin interfaceSpecialModelRenderer.BakingContext- Returns:
- the value of the
entityModelSetrecord component
-
materials
Returns the value of thematerialsrecord component.- Specified by:
materialsin interfaceSpecialModelRenderer.BakingContext- Returns:
- the value of the
materialsrecord component
-
playerSkinRenderCache
Returns the value of theplayerSkinRenderCacherecord component.- Specified by:
playerSkinRenderCachein interfaceSpecialModelRenderer.BakingContext- Returns:
- the value of the
playerSkinRenderCacherecord component
-
pendingAnimations
Returns the value of thependingAnimationsrecord component.- Specified by:
pendingAnimationsin interfaceSpecialModelRenderer.BakingContext- Returns:
- the value of the
pendingAnimationsrecord component
-
Simple(EntityModelSet, MaterialSet, PlayerSkinRenderCache, net.neoforged.neoforge.client.entity.animation.json.AnimationLoader.PendingAnimations)instead