Class SpriteItem.Image

  • Enclosing class:
    SpriteItem

    public static class SpriteItem.Image
    extends java.lang.Object
    Represents the various states an item can take (quantity/stack size), and loads image variations based on those states.
    • Constructor Summary

      Constructors 
      Constructor Description
      Image​(SpriteItem item)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage get()
      Gets a BufferedImage representing the item in its current state (aka.
      java.awt.image.BufferedImage get​(int quantity)
      Gets a BufferedImage representing the item at the provided quantity
      java.awt.image.BufferedImage get​(int quantity, boolean stacks)
      Gets a BufferedImage representing the item at the provided quantity and stacks.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • get

        public java.awt.image.BufferedImage get()
        Gets a BufferedImage representing the item in its current state (aka. current stack size).
      • get

        public java.awt.image.BufferedImage get​(int quantity)
        Gets a BufferedImage representing the item at the provided quantity
      • get

        public java.awt.image.BufferedImage get​(int quantity,
                                                boolean stacks)
        Gets a BufferedImage representing the item at the provided quantity and stacks.