Class VersionedComponentUtil
java.lang.Object
com.kamikazejam.kamicommon.nms.util.VersionedComponentUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ItemMetaaddLoreLine(@NotNull ItemMeta meta, @NotNull VersionedComponent component) static @Nullable VersionedComponentgetDisplayName(@NotNull ItemMeta meta) static @Nullable List<VersionedComponent> static @NotNull VersionedComponentSerializerstatic @NotNull ItemMetasetDisplayName(@NotNull ItemMeta meta, @Nullable VersionedComponent component) static @NotNull ItemMetasetLore(@NotNull ItemMeta meta, @Nullable List<VersionedComponent> lore)
-
Constructor Details
-
VersionedComponentUtil
public VersionedComponentUtil()
-
-
Method Details
-
serializer
-
setDisplayName
@NotNull public static @NotNull ItemMeta setDisplayName(@NotNull @NotNull ItemMeta meta, @Nullable @Nullable VersionedComponent component) -
setLore
@NotNull public static @NotNull ItemMeta setLore(@NotNull @NotNull ItemMeta meta, @Nullable @Nullable List<VersionedComponent> lore) -
getLore
-
getDisplayName
@Nullable public static @Nullable VersionedComponent getDisplayName(@NotNull @NotNull ItemMeta meta) -
addLoreLine
@NotNull public static @NotNull ItemMeta addLoreLine(@NotNull @NotNull ItemMeta meta, @NotNull @NotNull VersionedComponent component)
-