Class GuiDVD

All Implemented Interfaces:
ContentElement<GuiElement<?>>, ElementEvents, GuiParent<GuiDVD>, TooltipHandler<GuiDVD>

public class GuiDVD extends GuiElement<GuiDVD> implements ContentElement<GuiElement<?>>
Just for fun! Created by brandon3055 on 10/09/2023
  • Constructor Details

    • GuiDVD

      public GuiDVD(@NotNull @NotNull GuiParent<?> parent)
  • Method Details

    • getContentElement

      public GuiElement<?> getContentElement()
      Specified by:
      getContentElement in interface ContentElement<GuiElement<?>>
    • start

      public void start()
    • onBounce

      public void onBounce(Consumer<Integer> onBounce)
    • tick

      public void tick(double mouseX, double mouseY)
      Description copied from class: GuiElement
      Called every tick to update the element. Note this is called regardless of weather or not the element is actually enabled.
      Overrides:
      tick in class GuiElement<GuiDVD>
      Parameters:
      mouseX - Current mouse X position
      mouseY - Current mouse Y position
    • render

      public void render(GuiRender render, double mouseX, double mouseY, float partialTicks)
      Description copied from class: GuiElement
      This is the main render method that handles rendering this element and any child elements it may have. This method almost never needs to be overridden, instead when creating custom elements with custom rendering, your element should implement BackgroundRender and / or ForegroundRender in or order to implement its rendering.

      Note: After the render is complete, the poseStack's z pos will be offset by the total depth of this element and its children. This is intended behavior,

      Overrides:
      render in class GuiElement<GuiDVD>
      Parameters:
      render - Contains gui context information as well as essential render methods/utils including the PoseStack.
      mouseX - Current mouse X position
      mouseY - Current mouse Y position
      partialTicks - Partial render ticks