Skip to content

Commit 036f735

Browse files
Make texture methods public in ItemBuilder
Changed textureFromSkinTexture and textureFromTextureData from private to public to allow external access to these methods for applying custom textures.
1 parent 52f169b commit 036f735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/cc/modlabs/kpaper/inventory/ItemBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class ItemBuilder(material: Material, count: Int = 1, dsl: ItemBuilder.() -> Uni
344344
* @param skinTexture The SkinTexture object containing the UUID, name, and texture information.
345345
* @return An ItemBuilder instance with the custom texture applied.
346346
*/
347-
private fun textureFromSkinTexture(skinTexture: MineSkinResponse): ItemBuilder {
347+
fun textureFromSkinTexture(skinTexture: MineSkinResponse): ItemBuilder {
348348
val skinProfile = Bukkit.createProfile(UUID.randomUUID(), skinTexture.name)
349349
skinProfile.setProperty(
350350
ProfileProperty(
@@ -367,7 +367,7 @@ class ItemBuilder(material: Material, count: Int = 1, dsl: ItemBuilder.() -> Uni
367367
* @param name A name for that skin
368368
* @return An ItemBuilder instance with the custom texture applied.
369369
*/
370-
private fun textureFromTextureData(texture: String, signature: String, name: String = "SkinRandom"): ItemBuilder {
370+
fun textureFromTextureData(texture: String, signature: String, name: String = "SkinRandom"): ItemBuilder {
371371
val skinProfile = Bukkit.createProfile(UUID.randomUUID(), name)
372372
skinProfile.setProperty(
373373
ProfileProperty(

0 commit comments

Comments
 (0)