You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docstrings generation was requested by @JonasFranke.
* #234 (comment)
The following files were modified:
* `src/main/java/de/j/stationofdoom/util/ItemBuilder.java`
Copy file name to clipboardExpand all lines: src/main/java/de/j/stationofdoom/util/ItemBuilder.java
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,13 @@ public ItemBuilder addFlags(ItemFlag ... itemFlags) {
82
82
returnthis;
83
83
}
84
84
85
+
/**
86
+
* Creates a PLAYER_HEAD ItemStack and, if a texture `url` is provided, applies it as the head's skin texture.
87
+
*
88
+
* @param url the texture value to assign to the head's `textures` property (typically a base64-encoded texture payload); if empty, the default head is returned
89
+
* @param name the name to associate with the underlying GameProfile used for the head
90
+
* @return an ItemStack representing the player head with the specified texture applied, or a default player head if `url` is empty
0 commit comments