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