Class MailEvent.EditMail.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
MailEvent.EditMail

public static class MailEvent.EditMail.Pre extends MailEvent.EditMail
Fired just before the item is updated with the new text Cancelling this will mean the text is not updated
  • Constructor Details

    • Pre

      public Pre(@Nonnull net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack mailItem, String beforeText, String afterText)
  • Method Details

    • setMailItem

      public void setMailItem(net.minecraft.world.item.ItemStack mailItem)
    • setAfterText

      public void setAfterText(String afterText)