Interface Toast

All Known Implementing Classes:
AdvancementToast, NowPlayingToast, RecipeToast, SystemToast, TutorialToast

@Environment(CLIENT) public interface Toast
Mappings:
Namespace Name
named net/minecraft/client/toast/Toast
intermediary net/minecraft/class_368
official gab
  • Field Details

    • TYPE

      static final Object TYPE
      Mappings:
      Namespace Name Mixin selector
      named TYPE Lnet/minecraft/client/toast/Toast;TYPE:Ljava/lang/Object;
      intermediary field_2208 Lnet/minecraft/class_368;field_2208:Ljava/lang/Object;
      official b Lgab;b:Ljava/lang/Object;
    • BASE_WIDTH

      static final int BASE_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_WIDTH Lnet/minecraft/client/toast/Toast;BASE_WIDTH:I
      intermediary field_52785 Lnet/minecraft/class_368;field_52785:I
      official c Lgab;c:I
    • BASE_HEIGHT

      static final int BASE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_HEIGHT Lnet/minecraft/client/toast/Toast;BASE_HEIGHT:I
      intermediary field_39928 Lnet/minecraft/class_368;field_39928:I
      official d Lgab;d:I
  • Method Details

    • getVisibility

      Toast.Visibility getVisibility()
      Mappings:
      Namespace Name Mixin selector
      named getVisibility Lnet/minecraft/client/toast/Toast;getVisibility()Lnet/minecraft/client/toast/Toast$Visibility;
      intermediary method_61988 Lnet/minecraft/class_368;method_61988()Lnet/minecraft/class_368$class_369;
      official a Lgab;a()Lgab$a;
    • update

      void update(ToastManager manager, long time)
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/client/toast/Toast;update(Lnet/minecraft/client/toast/ToastManager;J)V
      intermediary method_61989 Lnet/minecraft/class_368;method_61989(Lnet/minecraft/class_374;J)V
      official a Lgab;a(Lgac;J)V
    • getSoundEvent

      @Nullable default @Nullable SoundEvent getSoundEvent()
      Mappings:
      Namespace Name Mixin selector
      named getSoundEvent Lnet/minecraft/client/toast/Toast;getSoundEvent()Lnet/minecraft/sound/SoundEvent;
      intermediary method_66530 Lnet/minecraft/class_368;method_66530()Lnet/minecraft/class_3414;
      official b Lgab;b()Layy;
    • draw

      void draw(DrawContext context, TextRenderer textRenderer, long startTime)
      Mappings:
      Namespace Name Mixin selector
      named draw Lnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;J)V
      intermediary method_1986 Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_332;Lnet/minecraft/class_327;J)V
      official a Lgab;a(Lfxa;Lfwy;J)V
    • getType

      default Object getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/toast/Toast;getType()Ljava/lang/Object;
      intermediary method_1987 Lnet/minecraft/class_368;method_1987()Ljava/lang/Object;
      official h Lgab;h()Ljava/lang/Object;
    • getXPos

      default float getXPos(int scaledWindowWidth, float visibleWidthPortion)
      Mappings:
      Namespace Name Mixin selector
      named getXPos Lnet/minecraft/client/toast/Toast;getXPos(IF)F
      intermediary method_71809 Lnet/minecraft/class_368;method_71809(IF)F
      official a Lgab;a(IF)F
    • getYPos

      default float getYPos(int topIndex)
      Mappings:
      Namespace Name Mixin selector
      named getYPos Lnet/minecraft/client/toast/Toast;getYPos(I)F
      intermediary method_71808 Lnet/minecraft/class_368;method_71808(I)F
      official a Lgab;a(I)F
    • getWidth

      default int getWidth()
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/toast/Toast;getWidth()I
      intermediary method_29049 Lnet/minecraft/class_368;method_29049()I
      official e Lgab;e()I
    • getHeight

      default int getHeight()
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/toast/Toast;getHeight()I
      intermediary method_29050 Lnet/minecraft/class_368;method_29050()I
      official f Lgab;f()I
    • getRequiredSpaceCount

      default int getRequiredSpaceCount()
      Mappings:
      Namespace Name Mixin selector
      named getRequiredSpaceCount Lnet/minecraft/client/toast/Toast;getRequiredSpaceCount()I
      intermediary method_45072 Lnet/minecraft/class_368;method_45072()I
      official i Lgab;i()I
    • onFinishedRendering

      default void onFinishedRendering()
      Mappings:
      Namespace Name Mixin selector
      named onFinishedRendering Lnet/minecraft/client/toast/Toast;onFinishedRendering()V
      intermediary method_71995 Lnet/minecraft/class_368;method_71995()V
      official d Lgab;d()V