Search in sources :

Example 1 with PacketTraderAddressResponse

use of forestry.mail.network.packets.PacketTraderAddressResponse in project ForestryMC by ForestryMC.

the class TileTrader method handleSetAddressRequest.

public void handleSetAddressRequest(String addressName) {
    IMailAddress address = PostManager.postRegistry.getMailAddress(addressName);
    setAddress(address);
    IMailAddress newAddress = getAddress();
    String newAddressName = newAddress.getName();
    if (newAddressName.equals(addressName)) {
        PacketTraderAddressResponse packetResponse = new PacketTraderAddressResponse(this, addressName);
        NetworkUtil.sendNetworkPacket(packetResponse, pos, world);
    }
}
Also used : IMailAddress(forestry.api.mail.IMailAddress) PacketTraderAddressResponse(forestry.mail.network.packets.PacketTraderAddressResponse)

Aggregations

IMailAddress (forestry.api.mail.IMailAddress)1 PacketTraderAddressResponse (forestry.mail.network.packets.PacketTraderAddressResponse)1