SkinService

public interface SkinService

Service for managing skin definitions.

Functions

Link copied to clipboard
public abstract void changeId(@NotNull() @NotNull() String oldId, Skin newSkin)
This is meant for the gui, after changing the skinid, to change in the database too.
Link copied to clipboard
public abstract void deleteBundle(@NotNull() @NotNull() String id)
Deletes a bundle definition.
Link copied to clipboard
public abstract void deleteSkin(@NotNull() @NotNull() String id)
Deletes a skin definition.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Optional<SkinBundle> getBundle(@NotNull() @NotNull() String id)
Gets a bundle by its ID.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Collection<SkinBundle> getBundles()
Gets all registered bundles.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Optional<Skin> getSkin(@NotNull() @NotNull() String id)
Gets a skin by its ID.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Collection<Skin> getSkins()
Gets all registered skins.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Collection<Skin> getSkinsForCategory(@NotNull() @NotNull() String category)
Gets all skins belonging to a specific category.
Link copied to clipboard
@NotNull()
public abstract @NotNull() Collection<Skin> getSkinsForMaterial(@NotNull() @NotNull() Material material)
Gets all skins applicable to a specific material or its categories.
Link copied to clipboard
public abstract void reloadSkins()
Reloads all skins and bundles from configuration.
Link copied to clipboard
public abstract void saveBundle(@NotNull() @NotNull() SkinBundle bundle)
Saves a bundle definition.
Link copied to clipboard
public abstract void saveSkin(@NotNull() @NotNull() Skin skin)
Saves a skin definition.