All Superinterfaces:
Cosmetic

public interface Hat extends Cosmetic
Represents a StarCosmetics Hat.
  • Method Details

    • run

      void run(@NotNull @NotNull Player p, CosmeticLocation<?> loc)
      Runs a CosmeticLocation based on this parent.
      Parameters:
      p - Player to use
      loc - CosmeticLocation to use
    • run

      @Deprecated default void run(Location l, CosmeticLocation<?> cloc)
      Description copied from interface: Cosmetic

      Runs a CosmeticLocation based on this parent.

      Note: Some implementations of this interface have this method deprecated in favor of the first parameter being Entity or a sub-interface. Casting when running this method is recommended.

      Specified by:
      run in interface Cosmetic
      Parameters:
      l - Bukkit Location to use at (not necessary for some Cosmetics)
      cloc - CosmeticLocation to input
    • getType

      @NotNull @NotNull HatType getType()
      Gets the Hat's Type.
      Returns:
      The Hat's Type.