Record Class BlockEntityRendererProvider.Context
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider.Context
- Enclosing interface:
BlockEntityRendererProvider<T extends BlockEntity, S extends BlockEntityRenderState>
public static record BlockEntityRendererProvider.Context(BlockEntityRenderDispatcher blockEntityRenderDispatcher, BlockRenderDispatcher blockRenderDispatcher, ItemModelResolver itemModelResolver, ItemRenderer itemRenderer, EntityRenderDispatcher entityRenderer, EntityModelSet entityModelSet, Font font, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockEntityRenderDispatcherThe field for theblockEntityRenderDispatcherrecord component.private final BlockRenderDispatcherThe field for theblockRenderDispatcherrecord component.private final EntityModelSetThe field for theentityModelSetrecord component.private final EntityRenderDispatcherThe field for theentityRendererrecord component.private final FontThe field for thefontrecord component.private final ItemModelResolverThe field for theitemModelResolverrecord component.private final ItemRendererThe field for theitemRendererrecord component.private final PlayerSkinRenderCacheThe field for theplayerSkinRenderCacherecord component.private final SpriteGetterThe field for thespritesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContext(BlockEntityRenderDispatcher blockEntityRenderDispatcher, BlockRenderDispatcher blockRenderDispatcher, ItemModelResolver itemModelResolver, ItemRenderer itemRenderer, EntityRenderDispatcher entityRenderer, EntityModelSet entityModelSet, Font font, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockEntityRenderDispatcherrecord component.Returns the value of theblockRenderDispatcherrecord component.Returns the value of theentityModelSetrecord component.Returns the value of theentityRendererrecord component.final booleanIndicates whether some other object is "equal to" this one.font()Returns the value of thefontrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theitemModelResolverrecord component.Returns the value of theitemRendererrecord 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
-
blockEntityRenderDispatcher
The field for theblockEntityRenderDispatcherrecord component. -
blockRenderDispatcher
The field for theblockRenderDispatcherrecord component. -
itemModelResolver
The field for theitemModelResolverrecord component. -
itemRenderer
The field for theitemRendererrecord component. -
entityRenderer
The field for theentityRendererrecord component. -
entityModelSet
The field for theentityModelSetrecord component. -
font
The field for thefontrecord component. -
sprites
The field for thespritesrecord component. -
playerSkinRenderCache
The field for theplayerSkinRenderCacherecord component.
-
-
Constructor Details
-
Context
public Context(BlockEntityRenderDispatcher blockEntityRenderDispatcher, BlockRenderDispatcher blockRenderDispatcher, ItemModelResolver itemModelResolver, ItemRenderer itemRenderer, EntityRenderDispatcher entityRenderer, EntityModelSet entityModelSet, Font font, SpriteGetter sprites, PlayerSkinRenderCache playerSkinRenderCache) Creates an instance of aContextrecord class.- Parameters:
blockEntityRenderDispatcher- the value for theblockEntityRenderDispatcherrecord componentblockRenderDispatcher- the value for theblockRenderDispatcherrecord componentitemModelResolver- the value for theitemModelResolverrecord componentitemRenderer- the value for theitemRendererrecord componententityRenderer- the value for theentityRendererrecord componententityModelSet- the value for theentityModelSetrecord componentfont- the value for thefontrecord componentsprites- the value for thespritesrecord componentplayerSkinRenderCache- the value for theplayerSkinRenderCacherecord component
-
-
Method Details
-
bakeLayer
-
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). -
blockEntityRenderDispatcher
Returns the value of theblockEntityRenderDispatcherrecord component.- Returns:
- the value of the
blockEntityRenderDispatcherrecord component
-
blockRenderDispatcher
Returns the value of theblockRenderDispatcherrecord component.- Returns:
- the value of the
blockRenderDispatcherrecord component
-
itemModelResolver
Returns the value of theitemModelResolverrecord component.- Returns:
- the value of the
itemModelResolverrecord component
-
itemRenderer
Returns the value of theitemRendererrecord component.- Returns:
- the value of the
itemRendererrecord component
-
entityRenderer
Returns the value of theentityRendererrecord component.- Returns:
- the value of the
entityRendererrecord component
-
entityModelSet
Returns the value of theentityModelSetrecord component.- Returns:
- the value of the
entityModelSetrecord component
-
font
Returns the value of thefontrecord component.- Returns:
- the value of the
fontrecord component
-
sprites
Returns the value of thespritesrecord component.- Returns:
- the value of the
spritesrecord component
-
playerSkinRenderCache
Returns the value of theplayerSkinRenderCacherecord component.- Returns:
- the value of the
playerSkinRenderCacherecord component
-