Package forestry.api.mail

Examples of forestry.api.mail.IPostalCarrier


    while(it.hasNext()) {
      if(it.next().getType().equals(carrierType))
        break;
    }

    IPostalCarrier postal = null;
    if(it.hasNext())
      postal = it.next();
    else
      postal = PostManager.postRegistry.getRegisteredCarriers().values().iterator().next();

    setCarrierType(postal.getType());
  }
View Full Code Here


    @Override
    public void draw(int startX, int startY) {

      GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0F);
      //mc.renderEngine.bindTexture(Defaults.TEXTURE_PATH_GUI + "/letter.png");
      IPostalCarrier carrier = PostManager.postRegistry.getCarrier(container.getCarrierType());
      if(carrier != null)
        drawTexturedModelRectFromIcon(startX + xPos, startY + yPos - 5, carrier.getIcon(), 26, 26);

    }
View Full Code Here

    if (!letter.isMailable())
      return EnumDeliveryState.NOT_MAILABLE;

    IPostalState state = EnumDeliveryState.NOT_MAILABLE;
    for (IMailAddress address : letter.getRecipients()) {
      IPostalCarrier carrier = PostManager.postRegistry.getCarrier(address.getType());
      if (carrier == null)
        continue;
      state = carrier.deliverLetter(world, this, address, itemstack, doLodge);
      if (!state.isOk())
        break;
    }

    if (!state.isOk())
View Full Code Here

TOP

Related Classes of forestry.api.mail.IPostalCarrier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.