feat: add query mc skin command
This commit is contained in:
5 files changed
+146
-2
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/10/2
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity.mc
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class Skin(
|
||||
val properties: List<Property>,
|
||||
) {
|
||||
data class Property(
|
||||
val value: String,
|
||||
)
|
||||
}
|
||||
|
||||
data class DecodedSkin(
|
||||
val textures: Texture,
|
||||
) {
|
||||
data class Texture(
|
||||
@SerializedName("SKIN")
|
||||
val skin: SKIN,
|
||||
)
|
||||
|
||||
data class SKIN(
|
||||
val url: String,
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright © 2024 RTAkland
|
||||
* Author: RTAkland
|
||||
* Date: 2024/10/2
|
||||
*/
|
||||
|
||||
|
||||
package cn.rtast.fancybot.entity.mc
|
||||
|
||||
data class Username(val id: String)
|
||||
Reference in New Issue
Block a user