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));
}
Aggregations