Class SkullBuilder
java.lang.Object
io.rhythmknights.coreapi.modal.builder.item.BaseItemBuilder<SkullBuilder>
io.rhythmknights.coreapi.modal.builder.item.SkullBuilder
New builder for skull only, created to separate the specific features for skulls
Soon I'll add more useful features to this builder
-
Method Summary
Modifier and TypeMethodDescription@NotNull SkullBuilderowner(@NotNull org.bukkit.OfflinePlayer player) Sets skull owner via bukkit methods@NotNull SkullBuilderSets the skull texture using a BASE64 string@NotNull SkullBuilderSets the skull texture using a BASE64 stringMethods inherited from class io.rhythmknights.coreapi.modal.builder.item.BaseItemBuilder
amount, asModalItem, asModalItem, build, color, deserializeComponent, disenchant, enchant, enchant, enchant, enchant, enchant, flags, getItemStack, getMeta, glow, glow, lore, lore, lore, model, name, pdc, removeNBT, serializeComponent, setItemStack, setMeta, setNBT, setNBT, unbreakable, unbreakable
-
Method Details
-
texture
@NotNull @Contract("_, _ -> this") public @NotNull SkullBuilder texture(@NotNull @NotNull String texture, @NotNull @NotNull UUID profileId) Sets the skull texture using a BASE64 string- Parameters:
texture- The base64 textureprofileId- The unique id of the profile- Returns:
SkullBuilder
-
texture
@NotNull @Contract("_ -> this") public @NotNull SkullBuilder texture(@NotNull @NotNull String texture) Sets the skull texture using a BASE64 string- Parameters:
texture- The base64 texture- Returns:
SkullBuilder
-
owner
@NotNull @Contract("_ -> this") public @NotNull SkullBuilder owner(@NotNull @NotNull org.bukkit.OfflinePlayer player) Sets skull owner via bukkit methods- Parameters:
player-OfflinePlayerto set skull of- Returns:
SkullBuilder
-