Search in sources :

Example 1 with MessagePlayOutSendResourcePack

use of org.lanternpowered.server.network.vanilla.message.type.play.MessagePlayOutSendResourcePack in project LanternServer by LanternPowered.

the class ResourcePackSendQueue method send.

private void send(ResourcePack resourcePack) {
    this.waitingForResponse = resourcePack;
    final String hash = resourcePack.getHash().orElse(resourcePack.getId());
    final String location = resourcePack.getUri().toString();
    this.player.getConnection().send(new MessagePlayOutSendResourcePack(location, hash));
}
Also used : MessagePlayOutSendResourcePack(org.lanternpowered.server.network.vanilla.message.type.play.MessagePlayOutSendResourcePack)

Aggregations

MessagePlayOutSendResourcePack (org.lanternpowered.server.network.vanilla.message.type.play.MessagePlayOutSendResourcePack)1