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 Details

    • blockEntityRenderDispatcher

      private final BlockEntityRenderDispatcher blockEntityRenderDispatcher
      The field for the blockEntityRenderDispatcher record component.
    • blockRenderDispatcher

      private final BlockRenderDispatcher blockRenderDispatcher
      The field for the blockRenderDispatcher record component.
    • itemModelResolver

      private final ItemModelResolver itemModelResolver
      The field for the itemModelResolver record component.
    • itemRenderer

      private final ItemRenderer itemRenderer
      The field for the itemRenderer record component.
    • entityRenderer

      private final EntityRenderDispatcher entityRenderer
      The field for the entityRenderer record component.
    • entityModelSet

      private final EntityModelSet entityModelSet
      The field for the entityModelSet record component.
    • font

      private final Font font
      The field for the font record component.
    • materials

      private final MaterialSet materials
      The field for the materials record component.
    • playerSkinRenderCache

      private final PlayerSkinRenderCache playerSkinRenderCache
      The field for the playerSkinRenderCache record 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 a Context record class.
      Parameters:
      blockEntityRenderDispatcher - the value for the blockEntityRenderDispatcher record component
      blockRenderDispatcher - the value for the blockRenderDispatcher record component
      itemModelResolver - the value for the itemModelResolver record component
      itemRenderer - the value for the itemRenderer record component
      entityRenderer - the value for the entityRenderer record component
      entityModelSet - the value for the entityModelSet record component
      font - the value for the font record component
      materials - the value for the materials record component
      playerSkinRenderCache - the value for the playerSkinRenderCache record component
  • Method Details

    • bakeLayer

      public ModelPart bakeLayer(ModelLayerLocation pLayerLocation)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • blockEntityRenderDispatcher

      public BlockEntityRenderDispatcher blockEntityRenderDispatcher()
      Returns the value of the blockEntityRenderDispatcher record component.
      Returns:
      the value of the blockEntityRenderDispatcher record component
    • blockRenderDispatcher

      public BlockRenderDispatcher blockRenderDispatcher()
      Returns the value of the blockRenderDispatcher record component.
      Returns:
      the value of the blockRenderDispatcher record component
    • itemModelResolver

      public ItemModelResolver itemModelResolver()
      Returns the value of the itemModelResolver record component.
      Returns:
      the value of the itemModelResolver record component
    • itemRenderer

      public ItemRenderer itemRenderer()
      Returns the value of the itemRenderer record component.
      Returns:
      the value of the itemRenderer record component
    • entityRenderer

      public EntityRenderDispatcher entityRenderer()
      Returns the value of the entityRenderer record component.
      Returns:
      the value of the entityRenderer record component
    • entityModelSet

      public EntityModelSet entityModelSet()
      Returns the value of the entityModelSet record component.
      Returns:
      the value of the entityModelSet record component
    • font

      public Font font()
      Returns the value of the font record component.
      Returns:
      the value of the font record component
    • materials

      public MaterialSet materials()
      Returns the value of the materials record component.
      Returns:
      the value of the materials record component
    • playerSkinRenderCache

      public PlayerSkinRenderCache playerSkinRenderCache()
      Returns the value of the playerSkinRenderCache record component.
      Returns:
      the value of the playerSkinRenderCache record component