mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
20 lines
504 B
Go
20 lines
504 B
Go
package mojangtextures
|
|
|
|
import (
|
|
"github.com/elyby/chrly/api/mojang"
|
|
)
|
|
|
|
var uuidToTextures = mojang.UuidToTextures
|
|
|
|
type MojangApiTexturesProvider struct {
|
|
Emitter
|
|
}
|
|
|
|
func (ctx *MojangApiTexturesProvider) GetTextures(uuid string) (*mojang.SignedTexturesResponse, error) {
|
|
ctx.Emit("mojang_textures:mojang_api_textures_provider:before_request", uuid)
|
|
result, err := uuidToTextures(uuid, true)
|
|
ctx.Emit("mojang_textures:mojang_api_textures_provider:after_request", result, err)
|
|
|
|
return result, err
|
|
}
|