Class ItemRequirement

    • Constructor Detail

      • ItemRequirement

        public ItemRequirement​(SpriteItem.Origin origin,
                               int[] itemIds,
                               int quantity)
        Parameters:
        origin - the origin of this item
        itemIds - the possible ids of this item
        quantity - the minimum quantity of this item
      • ItemRequirement

        public ItemRequirement​(SpriteItem.Origin origin,
                               int itemId,
                               int quantity)
        Parameters:
        itemId - an int matching the possible id of this item
        origin - the origin of this item
        quantity - the minimum quantity of this item
      • ItemRequirement

        public ItemRequirement​(SpriteItem.Origin origin,
                               java.util.regex.Pattern name,
                               int quantity)
        Parameters:
        origin - the origin of this item
        name - a Pattern matching the possible names of this item
        quantity - the minimum quantity of this item
      • ItemRequirement

        public ItemRequirement​(SpriteItem.Origin origin,
                               java.lang.String[] names,
                               int quantity)
        Parameters:
        origin - the origin of this item
        names - the possible names of this item
        quantity - the minimum quantity of this item
      • ItemRequirement

        public ItemRequirement​(SpriteItem.Origin origin,
                               java.lang.String name,
                               int quantity)
        Parameters:
        origin - the origin of this item
        name - the name of this item
        quantity - the minimum quantity of this item
      • ItemRequirement

        public ItemRequirement​(int protocol,
                               java.io.ObjectInput stream)