Interface IPostOffice


public interface IPostOffice
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    collectPostage(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stamps)
     
    net.minecraft.world.item.ItemStack
    getAnyStamp(int max)
    Used to withdraw collected stamps, taking the cheapest denomination the post office holds.
    net.minecraft.world.item.ItemStack
    getAnyStamp(net.minecraft.world.item.Item stamp, int max)
    Used to withdraw collected stamps of one exact item.
    lodgeLetter(net.minecraft.server.level.ServerLevel world, net.minecraft.world.item.ItemStack itemstack, boolean doLodge)
     
  • Method Details

    • collectPostage

      void collectPostage(net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> stamps)
    • lodgeLetter

      IPostalState lodgeLetter(net.minecraft.server.level.ServerLevel world, net.minecraft.world.item.ItemStack itemstack, boolean doLodge)
    • getAnyStamp

      net.minecraft.world.item.ItemStack getAnyStamp(int max)
      Used to withdraw collected stamps, taking the cheapest denomination the post office holds.
      Parameters:
      max - The most stamps to withdraw
      Returns:
      The withdrawn stamps, or an empty stack when the post office holds none
    • getAnyStamp

      net.minecraft.world.item.ItemStack getAnyStamp(net.minecraft.world.item.Item stamp, int max)
      Used to withdraw collected stamps of one exact item.
      Parameters:
      stamp - The stamp item to withdraw
      max - The most stamps to withdraw
      Returns:
      The withdrawn stamps, or an empty stack when the post office holds none of that item