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, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache, AnimationLoader.PendingAnimations pendingAnimations)
extends Record
implements SpecialModelRenderer.BakingContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface SpecialModelRenderer.BakingContext
SpecialModelRenderer.BakingContext.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityModelSetThe field for theentityModelSetrecord component.private final AnimationLoader.PendingAnimationsThe field for thependingAnimationsrecord component.private final PlayerSkinRenderCacheThe field for theplayerSkinRenderCacherecord component.private final SpriteGetterThe field for thespritesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSimple(EntityModelSet entityModelSet, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache) Deprecated.Simple(EntityModelSet entityModelSet, SpriteGetter sprites, 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 thependingAnimationsrecord component.Returns the value of theplayerSkinRenderCacherecord component.sprites()Returns the value of thespritesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
entityModelSet
The field for theentityModelSetrecord component. -
sprites
The field for thespritesrecord component. -
playerSkinRenderCache
The field for theplayerSkinRenderCacherecord component. -
pendingAnimations
The field for thependingAnimationsrecord component.
-
-
Constructor Details
-
Simple
@Deprecated public Simple(EntityModelSet entityModelSet, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache) -
Simple
public Simple(EntityModelSet entityModelSet, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache, AnimationLoader.PendingAnimations pendingAnimations) Creates an instance of aSimplerecord class.- Parameters:
entityModelSet- the value for theentityModelSetrecord componentsprites- the value for thespritesrecord componentplayerSkinRenderCache- the value for theplayerSkinRenderCacherecord componentpendingAnimations- the value for thependingAnimationsrecord 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). -
entityModelSet
Returns the value of theentityModelSetrecord component.- Specified by:
entityModelSetin interfaceSpecialModelRenderer.BakingContext- Returns:
- the value of the
entityModelSetrecord component
-
sprites
Returns the value of thespritesrecord component.- Specified by:
spritesin interfaceSpecialModelRenderer.BakingContext- Returns:
- the value of the
spritesrecord 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, SpriteGetter, PlayerSkinRenderCache, net.neoforged.neoforge.client.entity.animation.json.AnimationLoader.PendingAnimations)instead