Class RealmsSelectWorldTemplateScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class RealmsSelectWorldTemplateScreen extends RealmsScreen
  • Field Details

  • Constructor Details

  • Method Details

    • setWarning

      public void setWarning(Component... p_89683_)
    • mouseClicked

      public boolean mouseClicked(double p_89629_, double p_89630_, int p_89631_)
    • init

      public void init()
      Overrides:
      init in class Screen
    • getNarrationMessage

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • updateButtonStates

      void updateButtonStates()
    • shouldSelectButtonBeActive

      private boolean shouldSelectButtonBeActive()
    • shouldPublisherBeVisible

      private boolean shouldPublisherBeVisible()
    • getSelectedTemplate

      private WorldTemplate getSelectedTemplate()
    • shouldTrailerBeVisible

      private boolean shouldTrailerBeVisible()
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • selectTemplate

      void selectTemplate()
    • hasValidTemplate

      private boolean hasValidTemplate()
    • onTrailer

      private void onTrailer()
    • onPublish

      private void onPublish()
    • fetchTemplatesAsync

      private void fetchTemplatesAsync(WorldTemplatePaginatedList p_89654_)
    • fetchTemplates

      com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,​String> fetchTemplates(WorldTemplatePaginatedList p_89656_, RealmsClient p_89657_)
    • render

      public void render(PoseStack p_89639_, int p_89640_, int p_89641_, float p_89642_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • renderMultilineMessage

      private void renderMultilineMessage(PoseStack p_89644_, int p_89645_, int p_89646_, List<TextRenderingUtils.Line> p_89647_)
    • renderMousehoverTooltip

      protected void renderMousehoverTooltip(PoseStack p_89649_, @Nullable Component p_89650_, int p_89651_, int p_89652_)