Interface Resource

All Superinterfaces:
Comparable<Resource>
All Known Subinterfaces:
IMapObject, ITileset
All Known Implementing Classes:
Blueprint, EmitterAttributes, MapObject, NamedResource, SoundResource, SpritesheetResource, Tileset

public interface Resource extends Comparable<Resource>
Represents a resource that can be compared to other resources. This interface extends the Comparable interface for Resource objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Compares this resource with the specified resource for order.
    Gets the name of the resource.
    void
    Sets the name of the resource.
  • Method Details

    • getName

      String getName()
      Gets the name of the resource.
      Returns:
      The name of the resource.
    • setName

      void setName(String name)
      Sets the name of the resource.
      Parameters:
      name - The new name of the resource.
    • compareTo

      default int compareTo(Resource obj)
      Compares this resource with the specified resource for order.
      Specified by:
      compareTo in interface Comparable<Resource>
      Parameters:
      obj - The resource to be compared.
      Returns:
      A negative integer, zero, or a positive integer as this resource is less than, equal to, or greater than the specified resource.