Search in sources :

Example 1 with MessageServerSendSkinData

use of riskyken.armourersWorkshop.common.network.messages.server.MessageServerSendSkinData in project Armourers-Workshop by RiskyKen.

the class CommonSkinCache method sendSkinToClient.

private void sendSkinToClient(Skin skin, SkinRequestMessage requestMessage) {
    SkinIdentifier requestIdentifier = (SkinIdentifier) requestMessage.getSkinIdentifier();
    skin.requestId = requestIdentifier;
    PacketHandler.networkWrapper.sendTo(new MessageServerSendSkinData(requestIdentifier, getFullIdentifier(skin, requestIdentifier), skin), requestMessage.getPlayer());
}
Also used : MessageServerSendSkinData(riskyken.armourersWorkshop.common.network.messages.server.MessageServerSendSkinData) ISkinIdentifier(riskyken.armourersWorkshop.api.common.skin.data.ISkinIdentifier) SkinIdentifier(riskyken.armourersWorkshop.common.skin.data.SkinIdentifier)

Aggregations

ISkinIdentifier (riskyken.armourersWorkshop.api.common.skin.data.ISkinIdentifier)1 MessageServerSendSkinData (riskyken.armourersWorkshop.common.network.messages.server.MessageServerSendSkinData)1 SkinIdentifier (riskyken.armourersWorkshop.common.skin.data.SkinIdentifier)1