public interface IPostalCarrier
The two available carriers in vanilla Forestry are "player" - Delivers mail to individual players. "trader" - Handles mail addressed to trade stations.
| Modifier and Type | Method and Description |
|---|---|
IPostalState |
deliverLetter(net.minecraft.world.World world,
IPostOffice office,
IMailAddress recipient,
net.minecraft.item.ItemStack letterstack,
boolean doDeliver)
Handle delivery of a letter addressed to this carrier.
|
java.lang.String |
getName() |
net.minecraft.client.renderer.texture.TextureAtlasSprite |
getSprite()
Sprite registered to the Gui Texture Map at
ITextureManager. |
EnumAddressee |
getType() |
EnumAddressee getType()
java.lang.String getName()
net.minecraft.client.renderer.texture.TextureAtlasSprite getSprite()
ITextureManager.
Must be 26 pixels wide and 15 pixels tall. The texture itself must be 32x32 square.IPostalState deliverLetter(net.minecraft.world.World world, IPostOffice office, IMailAddress recipient, net.minecraft.item.ItemStack letterstack, boolean doDeliver)
world - The world the IPostOffice handles.office - {link @IPostOffice} which received this letter and handed it to the carrier.recipient - An identifier for the recipient as typed by the player into the address field.letterstack - ItemStack representing the letter. See IPostRegistry for helper functions to validate and extract it.doDeliver - Whether or not the letter is supposed to actually be delivered or if delivery is only to be simulated.