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, MaterialSet materials, 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 MaterialSetThe field for thematerialsrecord component.private final PlayerSkinRenderCacheThe field for theplayerSkinRenderCacherecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContext(BlockEntityRenderDispatcher blockEntityRenderDispatcher, BlockRenderDispatcher blockRenderDispatcher, ItemModelResolver itemModelResolver, ItemRenderer itemRenderer, EntityRenderDispatcher entityRenderer, EntityModelSet entityModelSet, Font font, MaterialSet materials, PlayerSkinRenderCache playerSkinRenderCache) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbakeLayer(ModelLayerLocation pLayerLocation) Returns 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 thematerialsrecord component.Returns the value of theplayerSkinRenderCacherecord 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. -
materials
The field for thematerialsrecord 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, MaterialSet materials, 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 componentmaterials- the value for thematerialsrecord componentplayerSkinRenderCache- the value for theplayerSkinRenderCacherecord component
-
-
Method Details
-
bakeLayer
-
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). -
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
-
materials
Returns the value of thematerialsrecord component.- Returns:
- the value of the
materialsrecord component
-
playerSkinRenderCache
Returns the value of theplayerSkinRenderCacherecord component.- Returns:
- the value of the
playerSkinRenderCacherecord component
-