public class PostOffice extends net.minecraft.world.storage.WorldSavedData implements IPostOffice
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SAVE_NAME |
| Constructor and Description |
|---|
PostOffice() |
PostOffice(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
collectPostage(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> stamps) |
void |
deregisterTradeStation(ITradeStation trade) |
java.util.LinkedHashMap<IMailAddress,ITradeStation> |
getActiveTradeStations(net.minecraft.world.World world) |
net.minecraft.item.ItemStack |
getAnyStamp(EnumPostage[] postages,
int max) |
net.minecraft.item.ItemStack |
getAnyStamp(EnumPostage postage,
int max) |
net.minecraft.item.ItemStack |
getAnyStamp(int max) |
IPostalState |
lodgeLetter(net.minecraft.world.World world,
net.minecraft.item.ItemStack itemstack,
boolean doLodge) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
registerTradeStation(ITradeStation trade) |
void |
setWorld(net.minecraft.world.World world) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public static final java.lang.String SAVE_NAME
public void setWorld(net.minecraft.world.World world)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class net.minecraft.world.storage.WorldSavedDatapublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in class net.minecraft.world.storage.WorldSavedDatapublic java.util.LinkedHashMap<IMailAddress,ITradeStation> getActiveTradeStations(net.minecraft.world.World world)
getActiveTradeStations in interface IPostOfficepublic void registerTradeStation(ITradeStation trade)
registerTradeStation in interface IPostOfficepublic void deregisterTradeStation(ITradeStation trade)
deregisterTradeStation in interface IPostOfficepublic net.minecraft.item.ItemStack getAnyStamp(int max)
getAnyStamp in interface IPostOfficepublic net.minecraft.item.ItemStack getAnyStamp(EnumPostage postage, int max)
getAnyStamp in interface IPostOfficepublic net.minecraft.item.ItemStack getAnyStamp(EnumPostage[] postages, int max)
getAnyStamp in interface IPostOfficepublic IPostalState lodgeLetter(net.minecraft.world.World world, net.minecraft.item.ItemStack itemstack, boolean doLodge)
lodgeLetter in interface IPostOfficepublic void collectPostage(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> stamps)
collectPostage in interface IPostOffice