public abstract static class MailEvent.SealMail extends MailEvent
Modifier and Type | Class and Description |
---|---|
static class |
MailEvent.SealMail.Post
Fired just after the mail has been sealed
This is not cancelable
|
static class |
MailEvent.SealMail.Pre
Fired just before the mail is sealed
Cancelling this will prevent it from being sealed (but not stop it from being edited)
|
MailEvent.EditMail, MailEvent.ReadMail, MailEvent.SealMail
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
author |
protected net.minecraft.item.ItemStack |
closedItemStack |
protected net.minecraft.item.ItemStack |
openItemStack |
protected java.lang.String |
text |
Constructor and Description |
---|
SealMail(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack openItemStack,
net.minecraft.item.ItemStack closedItemStack,
java.lang.String text,
java.lang.String author) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor()
The author of the sealed mail
|
net.minecraft.item.ItemStack |
getOpenItemStack()
The open mail item stack taken from the player
|
net.minecraft.item.ItemStack |
getSealedItemStack()
The sealed mail item stack given to the player
|
java.lang.String |
getText()
The text written to the sealed mail
|
protected net.minecraft.item.ItemStack openItemStack
protected net.minecraft.item.ItemStack closedItemStack
protected java.lang.String text
protected java.lang.String author
public SealMail(@Nonnull net.minecraft.entity.player.ServerPlayerEntity player, net.minecraft.item.ItemStack openItemStack, net.minecraft.item.ItemStack closedItemStack, java.lang.String text, java.lang.String author)
public net.minecraft.item.ItemStack getOpenItemStack()
public net.minecraft.item.ItemStack getSealedItemStack()
public java.lang.String getText()
public java.lang.String getAuthor()