Type Parameters:
T - Trail Object Type (Item Trails, Entity Trails, etc.)
All Superinterfaces:
Cosmetic

public interface Trail<T> extends Cosmetic
Represents a StarCosmetics Trail
  • Method Details

    • getObjectType

      @NotNull @NotNull Class<T> getObjectType()
      Fetches the type of the object used in the trail.
      Returns:
      Trail Object Type (Particle, Material, etc)
    • getType

      @NotNull @NotNull TrailType getType()
      Fetches the type of this trail.
      Returns:
      Trail Type
    • run

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

      default void run(Player p, CosmeticLocation<?> cloc)
      Description copied from interface: Cosmetic
      Runs a CosmeticLocation based on this parent.
      Specified by:
      run in interface Cosmetic
      Parameters:
      p - Player to use with
      cloc - CosmeticLocation to input