public abstract static class MailEvent.EditMail extends MailEvent
Modifier and Type | Class and Description |
---|---|
static class |
MailEvent.EditMail.Post
Fired after the text has been updated
|
static class |
MailEvent.EditMail.Pre
Fired just before the item is updated with the new text
Cancelling this will mean the text is not updated
|
MailEvent.EditMail, MailEvent.ReadMail, MailEvent.SealMail
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
afterText |
protected java.lang.String |
beforeText |
protected net.minecraft.item.ItemStack |
mailItem |
Constructor and Description |
---|
EditMail(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack mailItem,
java.lang.String beforeText,
java.lang.String afterText) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAfterText() |
java.lang.String |
getBeforeText() |
net.minecraft.item.ItemStack |
getMailItem() |
protected net.minecraft.item.ItemStack mailItem
protected java.lang.String beforeText
protected java.lang.String afterText