Class CosmeticTypeDefinition.Builder
java.lang.Object
dev.itsharshxd.zentrix.api.cosmetics.CosmeticTypeDefinition.Builder
- Enclosing class:
CosmeticTypeDefinition
Builds a
CosmeticTypeDefinition.-
Method Summary
Modifier and TypeMethodDescription@NotNull CosmeticTypeDefinitionbuild()@NotNull CosmeticTypeDefinition.BuilderdefaultCosmetic(@Nullable String id) The cosmetic used by players who chose none, which every player may use; null, the default, for none, so players without a choice have nothing equipped.@NotNull CosmeticTypeDefinition.Builderdescription(@NotNull List<String> description) The description lines of its tile, in Zentrix's colour format.@NotNull CosmeticTypeDefinition.Buildericon(@NotNull org.bukkit.inventory.ItemStack icon) Its tile's icon; copied.@NotNull CosmeticTypeDefinition.BuilderThe display name, in Zentrix's colour format; the key when not set.@NotNull CosmeticTypeDefinition.Builderpreviews(boolean previews) Whether the handler implementsCosmeticHandler.startPreview(org.bukkit.entity.Player, dev.itsharshxd.zentrix.api.cosmetics.CosmeticDefinition, dev.itsharshxd.zentrix.api.cosmetics.CosmeticPreview, java.lang.Runnable), so/cosmeticsoffers right-click to preview.@NotNull CosmeticTypeDefinition.BuildershowLocked(boolean showLocked) Whether/cosmeticsalso lists, marked locked, the cosmetics a player can neither use nor buy.@NotNull CosmeticTypeDefinition.Buildertriggers(@NotNull CosmeticMoment... moments) The moments the type triggers at; none when not set.@NotNull CosmeticTypeDefinition.Buildertriggers(@NotNull Collection<CosmeticMoment> moments) The moments the type triggers at; none when not set.
-
Method Details
-
name
The display name, in Zentrix's colour format; the key when not set. -
description
@NotNull public @NotNull CosmeticTypeDefinition.Builder description(@NotNull @NotNull List<String> description) The description lines of its tile, in Zentrix's colour format. -
icon
@NotNull public @NotNull CosmeticTypeDefinition.Builder icon(@NotNull @NotNull org.bukkit.inventory.ItemStack icon) Its tile's icon; copied. A chest when not set. -
defaultCosmetic
@NotNull public @NotNull CosmeticTypeDefinition.Builder defaultCosmetic(@Nullable @Nullable String id) The cosmetic used by players who chose none, which every player may use; null, the default, for none, so players without a choice have nothing equipped. -
triggers
@NotNull public @NotNull CosmeticTypeDefinition.Builder triggers(@NotNull @NotNull CosmeticMoment... moments) The moments the type triggers at; none when not set. -
triggers
@NotNull public @NotNull CosmeticTypeDefinition.Builder triggers(@NotNull @NotNull Collection<CosmeticMoment> moments) The moments the type triggers at; none when not set. -
showLocked
Whether/cosmeticsalso lists, marked locked, the cosmetics a player can neither use nor buy. False when not set: those are hidden, as Zentrix hides gliders a player does not own. -
previews
Whether the handler implementsCosmeticHandler.startPreview(org.bukkit.entity.Player, dev.itsharshxd.zentrix.api.cosmetics.CosmeticDefinition, dev.itsharshxd.zentrix.api.cosmetics.CosmeticPreview, java.lang.Runnable), so/cosmeticsoffers right-click to preview. False when not set.CosmeticsService.startPreview(org.bukkit.entity.Player, dev.itsharshxd.zentrix.api.cosmetics.CosmeticTypeKey, java.lang.String)asks the handler either way. -
build
-