Class IconImage

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

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

    • IconImage

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

    • getImage

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

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

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

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

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Keyed