Class CosmeticDefinition.Builder
java.lang.Object
dev.itsharshxd.zentrix.api.cosmetics.CosmeticDefinition.Builder
- Enclosing class:
CosmeticDefinition
Builds a
CosmeticDefinition.-
Method Summary
Modifier and TypeMethodDescription@NotNull CosmeticDefinitionbuild()@NotNull CosmeticDefinition.Buildericon(@NotNull org.bukkit.inventory.ItemStack icon) The icon menus show; copied.@NotNull CosmeticDefinition.BuilderThe description lines, in Zentrix's colour format.@NotNull CosmeticDefinition.BuilderThe display name, in Zentrix's colour format; the ID when not set.@NotNull CosmeticDefinition.BuilderTakes it off sale; the default.@NotNull CosmeticDefinition.Builderpermission(@Nullable String permission) The permission that unlocks it without owning it, or null for none.@NotNull CosmeticDefinition.Builderprice(double price) What it costs in Zentrix's currency.@NotNull CosmeticDefinition.BuilderThe rarity label, in Zentrix's colour format, or null for none.@NotNull CosmeticDefinition.BuilderunlockedByDefault(boolean unlockedByDefault) Whether every player may use it without owning it; false when not set.
-
Method Details
-
name
The display name, in Zentrix's colour format; the ID when not set. -
icon
@NotNull public @NotNull CosmeticDefinition.Builder icon(@NotNull @NotNull org.bukkit.inventory.ItemStack icon) The icon menus show; copied. Paper when not set. -
lore
The description lines, in Zentrix's colour format. -
rarity
The rarity label, in Zentrix's colour format, or null for none. -
permission
@NotNull public @NotNull CosmeticDefinition.Builder permission(@Nullable @Nullable String permission) The permission that unlocks it without owning it, or null for none. -
price
What it costs in Zentrix's currency.- Parameters:
price- zero or more; zero makes it free to claim- Throws:
IllegalArgumentException- when the price is negative or not a finite number
-
notForSale
Takes it off sale; the default. -
unlockedByDefault
Whether every player may use it without owning it; false when not set. -
build
-