Interface Cosmetic
- All Known Subinterfaces:
Cape,Gadget,Hat,ParticleShape,Trail<T>
public interface Cosmetic
Parent Interface for Base Cosmetics, ready for material, particle, or entity implementations.
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringFetches the display name of this cosmetic.@NotNull MaterialgetIcon()Fetches the inventory icon of this cosmetic.@NotNull StringFetches the namespace of this Comsmetic.voidrun(@NotNull Player p, @NotNull CosmeticLocation<?> location) Runs a CosmeticLocation based on this parent.
-
Method Details
-
getNamespace
Fetches the namespace of this Comsmetic.- Returns:
- Cosmetic Namespace
-
getDisplayName
Fetches the display name of this cosmetic.- Returns:
- Display name of Cosmetic
-
getIcon
Fetches the inventory icon of this cosmetic.- Returns:
- The Icon of this cosmetic.
-
run
void run(@NotNull @NotNull Player p, @NotNull @NotNull CosmeticLocation<?> location) throws IllegalArgumentException Runs a CosmeticLocation based on this parent.- Parameters:
p- Player to use withlocation- CosmeticLocation to input- Throws:
IllegalArgumentException- if location is null or is not supported
-