Class ShowToastMsg

java.lang.Object
com.li64.tide.network.messages.ShowToastMsg

public class ShowToastMsg extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.network.chat.Component
     
    final net.minecraft.world.item.ItemStack
     
    static final net.minecraft.resources.ResourceLocation
     
    final net.minecraft.network.chat.Component
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShowToastMsg(net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component description, net.minecraft.world.item.ItemStack display)
     
    ShowToastMsg(net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    encode(ShowToastMsg message, net.minecraft.network.FriendlyByteBuf buf)
     
    static void
    handle(ShowToastMsg message, net.minecraft.world.entity.player.Player player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
    • title

      public final net.minecraft.network.chat.Component title
    • description

      public final net.minecraft.network.chat.Component description
    • display

      public final net.minecraft.world.item.ItemStack display
  • Constructor Details

    • ShowToastMsg

      public ShowToastMsg(net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component description, net.minecraft.world.item.ItemStack display)
    • ShowToastMsg

      public ShowToastMsg(net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • encode

      public static void encode(ShowToastMsg message, net.minecraft.network.FriendlyByteBuf buf)
    • handle

      public static void handle(ShowToastMsg message, net.minecraft.world.entity.player.Player player)