Interface Hat
- All Superinterfaces:
Cosmetic
Represents a StarCosmetics Hat.
-
Method Summary
Modifier and TypeMethodDescription@NotNull HatTypegetType()Gets the Hat's Type.voidrun(@NotNull Player p, CosmeticLocation<?> loc) Runs a CosmeticLocation based on this parent.default voidrun(Location l, CosmeticLocation<?> cloc) Deprecated.Methods inherited from interface me.gamercoder215.starcosmetics.api.cosmetics.Cosmetic
getDisplayName, getIcon, getNamespace
-
Method Details
-
run
Runs a CosmeticLocation based on this parent.- Parameters:
p- Player to useloc- CosmeticLocation to use
-
run
Deprecated.Description copied from interface:CosmeticRuns a CosmeticLocation based on this parent.
Note: Some implementations of this interface have this method deprecated in favor of the first parameter being
Entityor a sub-interface. Casting when running this method is recommended. -
getType
Gets the Hat's Type.- Returns:
- The Hat's Type.
-
run(Player, CosmeticLocation)