Class MailEvent.SealMail.Pre

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

public static class MailEvent.SealMail.Pre extends MailEvent.SealMail
Fired just before the mail is sealed Cancelling this will prevent it from being sealed (but not stop it from being edited)
  • Constructor Details

    • Pre

      public Pre(@Nonnull net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack openItemStack, net.minecraft.world.item.ItemStack closedItemStack, String text, String author)
  • Method Details

    • setText

      public void setText(String text)
    • setAuthor

      public void setAuthor(String author)
    • setClosedItemStack

      public void setClosedItemStack(net.minecraft.world.item.ItemStack closedItemStack)
    • setOpenItemStack

      public void setOpenItemStack(net.minecraft.world.item.ItemStack openItemStack)