Class IconImage

java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.image.IconImage

@NullMarked public class IconImage extends Keyed
Represents an icon image
  • Constructor Details

    • IconImage

      public IconImage(String key, BufferedImage image, String type)
      Create a new icon image.
      Parameters:
      key - image key
      image - buffered image
      type - image type
  • Method Details

    • getImage

      public BufferedImage getImage()
      Get the image.
      Returns:
      buffered image
    • getType

      public String getType()
      Get image type.
      Returns:
      image type
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Keyed
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Keyed
    • toString

      public String toString()
      Overrides:
      toString in class Keyed