Class WishGrantedToast

java.lang.Object
com.petrolpark.core.wish.WishGrantedToast
All Implemented Interfaces:
net.minecraft.client.gui.components.toasts.Toast

public class WishGrantedToast extends Object implements net.minecraft.client.gui.components.toasts.Toast
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.client.gui.components.toasts.Toast

    net.minecraft.client.gui.components.toasts.Toast.Visibility
  • Field Summary

    Fields inherited from interface net.minecraft.client.gui.components.toasts.Toast

    NO_TOKEN, SLOT_HEIGHT
  • Constructor Summary

    Constructors
    Constructor
    Description
    WishGrantedToast(IAdvancedIngredient<? super net.minecraft.world.item.ItemStack> wish, net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addItem(net.minecraft.world.item.ItemStack stack)
     
    static void
    addOrUpdate(net.minecraft.client.gui.components.toasts.ToastComponent toastComponent, IAdvancedIngredient<? super net.minecraft.world.item.ItemStack> wish, net.minecraft.world.item.ItemStack stack)
     
    IAdvancedIngredient<? super net.minecraft.world.item.ItemStack>
     
    net.minecraft.client.gui.components.toasts.Toast.Visibility
    render(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.components.toasts.ToastComponent toastComponent, long timeSinceLastVisible)
     

    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.gui.components.toasts.Toast

    height, slotCount, width
  • Constructor Details

    • WishGrantedToast

      public WishGrantedToast(IAdvancedIngredient<? super net.minecraft.world.item.ItemStack> wish, net.minecraft.world.item.ItemStack stack)
  • Method Details

    • getToken

      public IAdvancedIngredient<? super net.minecraft.world.item.ItemStack> getToken()
      Specified by:
      getToken in interface net.minecraft.client.gui.components.toasts.Toast
    • render

      public net.minecraft.client.gui.components.toasts.Toast.Visibility render(@Nonnull net.minecraft.client.gui.GuiGraphics guiGraphics, @Nonnull net.minecraft.client.gui.components.toasts.ToastComponent toastComponent, long timeSinceLastVisible)
      Specified by:
      render in interface net.minecraft.client.gui.components.toasts.Toast
    • addItem

      public void addItem(net.minecraft.world.item.ItemStack stack)
    • addOrUpdate

      public static void addOrUpdate(net.minecraft.client.gui.components.toasts.ToastComponent toastComponent, IAdvancedIngredient<? super net.minecraft.world.item.ItemStack> wish, net.minecraft.world.item.ItemStack stack)