Interface AEKeyRenderer<T,S>


public interface AEKeyRenderer<T,S>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    drawInGui(net.minecraft.client.Minecraft minecraft, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int x, int y, T stack)
    Draw the stack, for example the item or the fluid sprite, but not the amount.
    void
    extract(S state, T what, @Nullable net.minecraft.world.level.Level level, int seed)
    Draw the representation of a key in-world on the face of a block.
    List<net.minecraft.network.chat.Component>
    getTooltip(T stack)
    Return the full tooltip, with the name of the stack and any additional lines.
     
    void
    submit(com.mojang.blaze3d.vertex.PoseStack poseStack, S state, net.minecraft.client.renderer.SubmitNodeCollector nodes, int lightCoords)
    Draw the representation of a key in-world on the face of a block.
  • Method Details

    • drawInGui

      void drawInGui(net.minecraft.client.Minecraft minecraft, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int x, int y, T stack)
      Draw the stack, for example the item or the fluid sprite, but not the amount.
    • stateClass

      Class<S> stateClass()
    • createState

      S createState()
      Returns:
      Create state used for storing this handlers render state.
    • extract

      void extract(S state, T what, @Nullable @Nullable net.minecraft.world.level.Level level, int seed)
      Draw the representation of a key in-world on the face of a block. Used for displaying it on screens and monitors.
    • submit

      void submit(com.mojang.blaze3d.vertex.PoseStack poseStack, S state, net.minecraft.client.renderer.SubmitNodeCollector nodes, int lightCoords)
      Draw the representation of a key in-world on the face of a block. Used for displaying it on screens and monitors.
    • getTooltip

      List<net.minecraft.network.chat.Component> getTooltip(T stack)
      Return the full tooltip, with the name of the stack and any additional lines.