Class MeteorToast

java.lang.Object
meteordevelopment.meteorclient.utils.render.MeteorToast
All Implemented Interfaces:
net.minecraft.client.toast.Toast

public class MeteorToast extends Object implements net.minecraft.client.toast.Toast
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.toast.Toast

    net.minecraft.client.toast.Toast.Visibility
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from interface net.minecraft.client.toast.Toast

    BASE_HEIGHT, BASE_WIDTH, TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    MeteorToast(@Nullable net.minecraft.item.Item item, @NotNull String title, @Nullable String text)
     
    MeteorToast(@Nullable net.minecraft.item.Item item, @NotNull String title, @Nullable String text, long duration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(net.minecraft.client.gui.DrawContext context, net.minecraft.client.font.TextRenderer textRenderer, long startTime)
     
    net.minecraft.client.sound.SoundInstance
     
    net.minecraft.client.toast.Toast.Visibility
     
    void
    setDuration(long duration)
     
    void
    setIcon(@Nullable net.minecraft.item.Item item)
     
    void
    setText(@Nullable String text)
     
    void
    setTitle(@NotNull String title)
     
    void
    update(net.minecraft.client.toast.ToastManager manager, long time)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.toast.Toast

    getHeight, getRequiredSpaceCount, getType, getWidth
  • Field Details

    • TITLE_COLOR

      public static final int TITLE_COLOR
    • TEXT_COLOR

      public static final int TEXT_COLOR
  • Constructor Details

    • MeteorToast

      public MeteorToast(@Nullable @Nullable net.minecraft.item.Item item, @NotNull @NotNull String title, @Nullable @Nullable String text, long duration)
    • MeteorToast

      public MeteorToast(@Nullable @Nullable net.minecraft.item.Item item, @NotNull @NotNull String title, @Nullable @Nullable String text)
  • Method Details

    • getVisibility

      public net.minecraft.client.toast.Toast.Visibility getVisibility()
      Specified by:
      getVisibility in interface net.minecraft.client.toast.Toast
    • update

      public void update(net.minecraft.client.toast.ToastManager manager, long time)
      Specified by:
      update in interface net.minecraft.client.toast.Toast
    • draw

      public void draw(net.minecraft.client.gui.DrawContext context, net.minecraft.client.font.TextRenderer textRenderer, long startTime)
      Specified by:
      draw in interface net.minecraft.client.toast.Toast
    • setIcon

      public void setIcon(@Nullable @Nullable net.minecraft.item.Item item)
    • setTitle

      public void setTitle(@NotNull @NotNull String title)
    • setText

      public void setText(@Nullable @Nullable String text)
    • setDuration

      public void setDuration(long duration)
    • getSound

      public net.minecraft.client.sound.SoundInstance getSound()