Package guideme.scene

Class LytItemImage

All Implemented Interfaces:
guideme.internal.siteexport.ExportableResourceProvider, Styleable

public class LytItemImage extends LytBlock implements guideme.internal.siteexport.ExportableResourceProvider
  • Constructor Details

    • LytItemImage

      public LytItemImage()
  • Method Details

    • getItem

      public net.minecraft.world.item.ItemStack getItem()
    • setItem

      public void setItem(net.minecraft.world.item.ItemStack item)
    • getScale

      public float getScale()
    • setScale

      public void setScale(float scale)
    • computeLayout

      protected LytRect computeLayout(LayoutContext context, int x, int y, int availableWidth)
      Specified by:
      computeLayout in class LytBlock
    • onLayoutMoved

      protected void onLayoutMoved(int deltaX, int deltaY)
      Description copied from class: LytBlock
      Implement to react to layout previously computed by LytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int) being moved.
      Specified by:
      onLayoutMoved in class LytBlock
    • renderBatch

      public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers)
      Specified by:
      renderBatch in class LytBlock
    • render

      public void render(RenderContext context)
      Specified by:
      render in class LytBlock
    • exportResources

      public void exportResources(guideme.internal.siteexport.ResourceExporter exporter)
      Specified by:
      exportResources in interface guideme.internal.siteexport.ExportableResourceProvider