Package com.li64.tide.network.messages
Class ShowToastMsg
java.lang.Object
com.li64.tide.network.messages.ShowToastMsg
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.network.chat.Componentfinal net.minecraft.world.item.ItemStackstatic final net.minecraft.resources.ResourceLocationfinal net.minecraft.network.chat.Component -
Constructor Summary
ConstructorsConstructorDescriptionShowToastMsg(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 TypeMethodDescriptionstatic voidencode(ShowToastMsg message, net.minecraft.network.FriendlyByteBuf buf) static voidhandle(ShowToastMsg message, net.minecraft.world.entity.player.Player player)
-
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
-
handle
-