aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/util
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-07-10 19:58:51 +0200
committerLinnea Gräf <nea@nea.moe>2024-07-10 19:58:51 +0200
commit67cc7c22ac5f6873eb4549bc69db9f014c09c07f (patch)
treeb4626870a7ba1da6264b9d2fb997494429bac1e3 /src/main/kotlin/moe/nea/firmament/util
parentc54276ee6644e5c9f90b55ada86c23a7f0d905bc (diff)
downloadfirmament-67cc7c22ac5f6873eb4549bc69db9f014c09c07f.tar.gz
firmament-67cc7c22ac5f6873eb4549bc69db9f014c09c07f.tar.bz2
firmament-67cc7c22ac5f6873eb4549bc69db9f014c09c07f.zip
Add pet upgrade cost recipes
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/util')
-rw-r--r--src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt b/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt
index 96bf49a..551fa1f 100644
--- a/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt
+++ b/src/main/kotlin/moe/nea/firmament/util/item/SkullItemData.kt
@@ -12,7 +12,7 @@ package moe.nea.firmament.util.item
import com.mojang.authlib.GameProfile
import com.mojang.authlib.minecraft.MinecraftProfileTexture
import com.mojang.authlib.properties.Property
-import java.util.*
+import java.util.UUID
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable
@@ -63,10 +63,12 @@ fun ItemStack.setEncodedSkullOwner(uuid: UUID, encodedData: String) {
val zeroUUID = UUID.fromString("d3cb85e2-3075-48a1-b213-a9bfb62360c1")
fun ItemStack.setSkullOwner(uuid: UUID, url: String) {
assert(this.item == Items.PLAYER_HEAD)
- val gameProfile = GameProfile(uuid, "LameGuy123")
+ val gameProfile = GameProfile(uuid, "nea89")
gameProfile.setTextures(
MinecraftTexturesPayloadKt(
- mapOf(MinecraftProfileTexture.Type.SKIN to MinecraftProfileTextureKt(url))
+ textures = mapOf(MinecraftProfileTexture.Type.SKIN to MinecraftProfileTextureKt(url)),
+ profileId = uuid,
+ profileName = "nea89",
)
)
this.set(DataComponentTypes.PROFILE, ProfileComponent(gameProfile))