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, 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
    net.minecraft.client.toast.Toast.Visibility
    draw(net.minecraft.client.gui.DrawContext context, net.minecraft.client.toast.ToastManager toastManager, long currentTime)
     
    net.minecraft.client.sound.SoundInstance
     
    void
    setDuration(long duration)
     
    void
    setIcon(@Nullable net.minecraft.item.Item item)
     
    void
    setText(@Nullable String text)
     
    void
    setTitle(@NotNull String title)
     

    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

    • draw

      public net.minecraft.client.toast.Toast.Visibility draw(net.minecraft.client.gui.DrawContext context, net.minecraft.client.toast.ToastManager toastManager, long currentTime)
      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()