Search in sources :

Example 1 with ResourcePackSendMessage

use of net.glowstone.net.message.play.player.ResourcePackSendMessage in project Glowstone by GlowstoneMC.

the class GlowPlayer method setResourcePack.

@Override
public void setResourcePack(String url, String hash) {
    checkNotNull(url);
    checkNotNull(hash);
    checkArgument(hash.length() == 40, "Resource pack hash is of an invalid length.");
    session.send(new ResourcePackSendMessage(url, hash));
    resourcePackHash = hash;
}
Also used : ResourcePackSendMessage(net.glowstone.net.message.play.player.ResourcePackSendMessage)

Aggregations

ResourcePackSendMessage (net.glowstone.net.message.play.player.ResourcePackSendMessage)1