├── .gitignore ├── LICENSE.md ├── README.md ├── docs ├── allclasses-index.html ├── allpackages-index.html ├── day │ └── dean │ │ └── skullcreator │ │ ├── SkullCreator.html │ │ ├── class-use │ │ └── SkullCreator.html │ │ ├── package-summary.html │ │ ├── package-tree.html │ │ └── package-use.html ├── deprecated-list.html ├── element-list ├── help-doc.html ├── index-all.html ├── index.html ├── jquery-ui.overrides.css ├── legal │ ├── ADDITIONAL_LICENSE_INFO │ ├── ASSEMBLY_EXCEPTION │ ├── LICENSE │ ├── jquery.md │ └── jqueryUI.md ├── member-search-index.js ├── module-search-index.js ├── overview-tree.html ├── package-search-index.js ├── resources │ ├── glass.png │ └── x.png ├── script-dir │ ├── jquery-3.6.0.min.js │ ├── jquery-ui.min.css │ └── jquery-ui.min.js ├── script.js ├── search.js ├── stylesheet.css ├── tag-search-index.js └── type-search-index.js ├── pom.xml └── src └── main ├── java └── day │ └── dean │ └── skullcreator │ ├── SkullCreator.java │ └── SkullCreatorTesterPlugin.java └── resources └── plugin.yml /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | skullcreator.iml 3 | target/ 4 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 deanveloper 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SkullCreator 2 | SkullCreator is a library designed to make the creation of player skulls as easy as possible. 3 | 4 | Javadocs are available at https://skullcreator.dean.day, otherwise you can keep looking here! 5 | 6 | I spent quite a bit of time researching how player skulls behaved, and figuring out a single solution that works for many versions of Minecraft, so leaving a :star: would mean a lot! 7 | 8 | **Supported versions: 1.12.2 and newer.** 9 | 10 | ## Usage 11 | Using the SkullCreator library is quite easy! There are three ways to create a player skull. By name, uuid, and base64/url. 12 | 13 | ### By Name 14 | The code to create a player skull from a player's name is fairly straightforward: `SkullCreator.itemFromName("deanveloper")`. This is not recommended as players can change their name, and change their skin. If either of these happen, the skull produced may not be the expected skull. 15 | 16 | ### By UUID 17 | The code to create a player skull from a player's UUID is fairly straightforward: `SkullCreator.itemFromUuid(UUID.fromString("4a96ebf7-e27c-41ee-9853-a52ba903fb06"))`. This should only be used for heads which you want to change when the target player changes their skin. If you want the skull to stay the same, even after the player changes their skin, check the following methods! 18 | 19 | ### By Base64 20 | Base64 hashes are how most mapmakers get their heads. They usually go on websites such as [freshcoal], [mineskin], or [minecraft-heads]. These sites give them very long commands and they can paste them into command blocks which give them the items. These skulls will ALWAYS have the same skin applied to them, even if the original player has changed their skin. 21 | 22 | What you can do with this plugin is take the base64 from after the `Value:` part of the command, and then paste that into a method to get the skull. For instance, to get a Stormtrooper skull, you can do this: 23 | 24 | ```Java 25 | public static ItemStack getStormtrooper() { 26 | // Got this base64 string from minecraft-heads.com 27 | String base64 = "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L" + 28 | "3RleHR1cmUvNTIyODRlMTMyYmZkNjU5YmM2YWRhNDk3YzRmYTMwOTRjZDkzMjMxYTZiNTA1YTEyY2U3Y2Q1MTM1YmE4ZmY5MyJ9fX0="; 29 | 30 | return SkullCreator.itemFromBase64(base64); 31 | } 32 | ``` 33 | 34 | ### By Mojang URL 35 | The base64 strings contain an encoded mojang URL inside of them. If you would not like to store the whole base64 string (after all, they are very long and gross looking!) you can instead store the link to the url. 36 | 37 | ```Java 38 | public static ItemStack getCheeseSkull() { 39 | String s = "http://textures.minecraft.net/texture/955d611a878e821231749b2965708cad942650672db09e26847a88e2fac2946"; 40 | 41 | ItemStack stormtrooper = new ItemStack(Material.SKULL, 1, (byte) 3); 42 | return SkullCreator.itemFromUrl(s); 43 | } 44 | ``` 45 | 46 | ## Installation 47 | To use this library, copy the class from [GitHub][skullcreator-git] and put it in your project. 48 | 49 | [freshcoal]: http://heads.freshcoal.com 50 | [mineskin]: https://mineskin.org 51 | [minecraft-heads]: http://minecraft-heads.com/ 52 | [skullcreator-git]: https://github.com/Deanveloper/SkullCreator/blob/master/src/main/java/com/deanveloper/skullcreator/SkullCreator.java 53 | -------------------------------------------------------------------------------- /docs/allclasses-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | All Classes and Interfaces (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

All Classes and Interfaces

53 |
54 |
55 |
Classes
56 |
57 |
Class
58 |
Description
59 | 60 |
61 |
A library for the Bukkit API to create player skulls 62 | from names, base64 strings, and texture URLs.
63 |
64 |
65 |
66 |
67 | 71 |
72 |
73 | 74 | 75 | -------------------------------------------------------------------------------- /docs/allpackages-index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | All Packages (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

All Packages

53 |
54 |
Package Summary
55 |
56 |
Package
57 |
Description
58 | 59 |
 
60 |
61 |
62 | 66 |
67 |
68 | 69 | 70 | -------------------------------------------------------------------------------- /docs/day/dean/skullcreator/SkullCreator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SkullCreator (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 28 |
29 | 68 |
69 |
70 | 71 |
72 | 73 |

Class SkullCreator

74 |
75 |
java.lang.Object 76 |
day.dean.skullcreator.SkullCreator
77 |
78 |
79 |
80 |
public class SkullCreator 81 | extends Object
82 |
A library for the Bukkit API to create player skulls 83 | from names, base64 strings, and texture URLs. 84 |

85 | Does not use any NMS code, and should work across all versions.

86 |
87 |
Author:
88 |
deanveloper on 12/28/2016.
89 |
90 |
91 |
92 |
    93 | 94 |
  • 95 |
    96 |

    Method Summary

    97 |
    98 |
    99 |
    100 |
    101 |
    Modifier and Type
    102 |
    Method
    103 |
    Description
    104 |
    static void
    105 |
    blockWithBase64(Block block, 106 | String base64)
    107 |
    108 |
    Sets the block to a skull with the skin for the base64 string.
    109 |
    110 |
    static void
    111 |
    blockWithName(Block block, 112 | String name)
    113 |
    114 |
    Deprecated. 115 |
    names don't make for good identifiers.
    116 |
    117 |
    118 |
    static void
    119 |
    blockWithUrl(Block block, 120 | String url)
    121 |
    122 |
    Sets the block to a skull with the skin found at the provided mojang URL.
    123 |
    124 |
    static void
    125 |
    blockWithUuid(Block block, 126 | UUID id)
    127 |
    128 |
    Sets the block to a skull with the given UUID.
    129 |
    130 |
    static ItemStack
    131 | 132 |
    133 |
    Creates a player skull, should work in both legacy and new Bukkit APIs.
    134 |
    135 |
    static ItemStack
    136 | 137 |
    138 |
    Creates a player skull item with the skin based on a base64 string.
    139 |
    140 |
    static ItemStack
    141 | 142 |
    143 |
    Deprecated. 144 |
    names don't make for good identifiers.
    145 |
    146 |
    147 |
    static ItemStack
    148 | 149 |
    150 |
    Creates a player skull item with the skin at a Mojang URL.
    151 |
    152 |
    static ItemStack
    153 | 154 |
    155 |
    Creates a player skull item with the skin based on a player's UUID.
    156 |
    157 |
    static ItemStack
    158 |
    itemWithBase64(ItemStack item, 159 | String base64)
    160 |
    161 |
    Modifies a skull to use the skin based on the given base64 string.
    162 |
    163 |
    static ItemStack
    164 |
    itemWithName(ItemStack item, 165 | String name)
    166 |
    167 |
    Deprecated. 168 |
    names don't make for good identifiers.
    169 |
    170 |
    171 |
    static ItemStack
    172 |
    itemWithUrl(ItemStack item, 173 | String url)
    174 |
    175 |
    Modifies a skull to use the skin at the given Mojang URL.
    176 |
    177 |
    static ItemStack
    178 |
    itemWithUuid(ItemStack item, 179 | UUID id)
    180 |
    181 |
    Modifies a skull to use the skin of the player with a given UUID.
    182 |
    183 |
    184 |
    185 |
    186 |
    187 |

    Methods inherited from class java.lang.Object

    188 | clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    189 |
    190 |
  • 191 |
192 |
193 |
194 |
    195 | 196 |
  • 197 |
    198 |

    Method Details

    199 |
      200 |
    • 201 |
      202 |

      createSkull

      203 |
      public static ItemStack createSkull()
      204 |
      Creates a player skull, should work in both legacy and new Bukkit APIs.
      205 |
      206 |
    • 207 |
    • 208 |
      209 |

      itemFromName

      210 |
      public static ItemStack itemFromName(String name)
      211 |
      Deprecated. 212 |
      names don't make for good identifiers.
      213 |
      214 |
      Creates a player skull item with the skin based on a player's name.
      215 |
      216 |
      Parameters:
      217 |
      name - The Player's name.
      218 |
      Returns:
      219 |
      The head of the Player.
      220 |
      221 |
      222 |
    • 223 |
    • 224 |
      225 |

      itemFromUuid

      226 |
      public static ItemStack itemFromUuid(UUID id)
      227 |
      Creates a player skull item with the skin based on a player's UUID.
      228 |
      229 |
      Parameters:
      230 |
      id - The Player's UUID.
      231 |
      Returns:
      232 |
      The head of the Player.
      233 |
      234 |
      235 |
    • 236 |
    • 237 |
      238 |

      itemFromUrl

      239 |
      public static ItemStack itemFromUrl(String url)
      240 |
      Creates a player skull item with the skin at a Mojang URL.
      241 |
      242 |
      Parameters:
      243 |
      url - The Mojang URL.
      244 |
      Returns:
      245 |
      The head of the Player.
      246 |
      247 |
      248 |
    • 249 |
    • 250 |
      251 |

      itemFromBase64

      252 |
      public static ItemStack itemFromBase64(String base64)
      253 |
      Creates a player skull item with the skin based on a base64 string.
      254 |
      255 |
      Parameters:
      256 |
      base64 - The Base64 string.
      257 |
      Returns:
      258 |
      The head of the Player.
      259 |
      260 |
      261 |
    • 262 |
    • 263 |
      264 |

      itemWithName

      265 |
      @Deprecated 266 | public static ItemStack itemWithName(ItemStack item, 267 | String name)
      268 |
      Deprecated. 269 |
      names don't make for good identifiers.
      270 |
      271 |
      Modifies a skull to use the skin of the player with a given name.
      272 |
      273 |
      Parameters:
      274 |
      item - The item to apply the name to. Must be a player skull.
      275 |
      name - The Player's name.
      276 |
      Returns:
      277 |
      The head of the Player.
      278 |
      279 |
      280 |
    • 281 |
    • 282 |
      283 |

      itemWithUuid

      284 |
      public static ItemStack itemWithUuid(ItemStack item, 285 | UUID id)
      286 |
      Modifies a skull to use the skin of the player with a given UUID.
      287 |
      288 |
      Parameters:
      289 |
      item - The item to apply the name to. Must be a player skull.
      290 |
      id - The Player's UUID.
      291 |
      Returns:
      292 |
      The head of the Player.
      293 |
      294 |
      295 |
    • 296 |
    • 297 |
      298 |

      itemWithUrl

      299 |
      public static ItemStack itemWithUrl(ItemStack item, 300 | String url)
      301 |
      Modifies a skull to use the skin at the given Mojang URL.
      302 |
      303 |
      Parameters:
      304 |
      item - The item to apply the skin to. Must be a player skull.
      305 |
      url - The URL of the Mojang skin.
      306 |
      Returns:
      307 |
      The head associated with the URL.
      308 |
      309 |
      310 |
    • 311 |
    • 312 |
      313 |

      itemWithBase64

      314 |
      public static ItemStack itemWithBase64(ItemStack item, 315 | String base64)
      316 |
      Modifies a skull to use the skin based on the given base64 string.
      317 |
      318 |
      Parameters:
      319 |
      item - The ItemStack to put the base64 onto. Must be a player skull.
      320 |
      base64 - The base64 string containing the texture.
      321 |
      Returns:
      322 |
      The head with a custom texture.
      323 |
      324 |
      325 |
    • 326 |
    • 327 |
      328 |

      blockWithName

      329 |
      @Deprecated 330 | public static void blockWithName(Block block, 331 | String name)
      332 |
      Deprecated. 333 |
      names don't make for good identifiers.
      334 |
      335 |
      Sets the block to a skull with the given name.
      336 |
      337 |
      Parameters:
      338 |
      block - The block to set.
      339 |
      name - The player to set it to.
      340 |
      341 |
      342 |
    • 343 |
    • 344 |
      345 |

      blockWithUuid

      346 |
      public static void blockWithUuid(Block block, 347 | UUID id)
      348 |
      Sets the block to a skull with the given UUID.
      349 |
      350 |
      Parameters:
      351 |
      block - The block to set.
      352 |
      id - The player to set it to.
      353 |
      354 |
      355 |
    • 356 |
    • 357 |
      358 |

      blockWithUrl

      359 |
      public static void blockWithUrl(Block block, 360 | String url)
      361 |
      Sets the block to a skull with the skin found at the provided mojang URL.
      362 |
      363 |
      Parameters:
      364 |
      block - The block to set.
      365 |
      url - The mojang URL to set it to use.
      366 |
      367 |
      368 |
    • 369 |
    • 370 |
      371 |

      blockWithBase64

      372 |
      public static void blockWithBase64(Block block, 373 | String base64)
      374 |
      Sets the block to a skull with the skin for the base64 string.
      375 |
      376 |
      Parameters:
      377 |
      block - The block to set.
      378 |
      base64 - The base64 to set it to use.
      379 |
      380 |
      381 |
    • 382 |
    383 |
    384 |
  • 385 |
386 |
387 | 388 |
389 | 393 |
394 |
395 | 396 | 397 | -------------------------------------------------------------------------------- /docs/day/dean/skullcreator/class-use/SkullCreator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Class day.dean.skullcreator.SkullCreator (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

Uses of Class
day.dean.skullcreator.SkullCreator

53 |
54 | No usage of day.dean.skullcreator.SkullCreator
55 | 59 |
60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /docs/day/dean/skullcreator/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | day.dean.skullcreator (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 57 |
58 |
59 |
60 |

Package day.dean.skullcreator

61 |
62 |
63 |
package day.dean.skullcreator
64 |
65 |
    66 |
  • 67 |
    68 |
    Classes
    69 |
    70 |
    Class
    71 |
    Description
    72 | 73 |
    74 |
    A library for the Bukkit API to create player skulls 75 | from names, base64 strings, and texture URLs.
    76 |
    77 |
    78 |
    79 |
  • 80 |
81 |
82 |
83 | 87 |
88 |
89 | 90 | 91 | -------------------------------------------------------------------------------- /docs/day/dean/skullcreator/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | day.dean.skullcreator Class Hierarchy (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

Hierarchy For Package day.dean.skullcreator

53 |
54 |
55 |

Class Hierarchy

56 | 63 |
64 |
65 | 69 |
70 |
71 | 72 | 73 | -------------------------------------------------------------------------------- /docs/day/dean/skullcreator/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Uses of Package day.dean.skullcreator (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

Uses of Package
day.dean.skullcreator

53 |
54 | No usage of day.dean.skullcreator
55 | 59 |
60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /docs/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Deprecated List (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

Deprecated API

53 |

Contents

54 | 57 |
58 | 81 |
82 | 86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /docs/element-list: -------------------------------------------------------------------------------- 1 | day.dean.skullcreator 2 | -------------------------------------------------------------------------------- /docs/help-doc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | API Help (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 56 |
57 |
58 |

JavaDoc Help

59 | 79 |
80 |
81 |

Navigation

82 | Starting from the Overview page, you can browse the documentation using the links in each page, and in the navigation bar at the top of each page. The Index and Search box allow you to navigate to specific declarations and summary pages, including: All Packages, All Classes and Interfaces 83 | 93 |
94 |
95 |
96 |

Kinds of Pages

97 | The following sections describe the different kinds of pages in this collection. 98 |
99 |

Package

100 |

Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain the following categories:

101 |
    102 |
  • Interfaces
  • 103 |
  • Classes
  • 104 |
  • Enums
  • 105 |
  • Exceptions
  • 106 |
  • Errors
  • 107 |
  • Annotation Types
  • 108 |
109 |
110 |
111 |

Class or Interface

112 |

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a declaration and description, member summary tables, and detailed member descriptions. Entries in each of these sections are omitted if they are empty or not applicable.

113 |
    114 |
  • Class Inheritance Diagram
  • 115 |
  • Direct Subclasses
  • 116 |
  • All Known Subinterfaces
  • 117 |
  • All Known Implementing Classes
  • 118 |
  • Class or Interface Declaration
  • 119 |
  • Class or Interface Description
  • 120 |
121 |
122 |
    123 |
  • Nested Class Summary
  • 124 |
  • Enum Constant Summary
  • 125 |
  • Field Summary
  • 126 |
  • Property Summary
  • 127 |
  • Constructor Summary
  • 128 |
  • Method Summary
  • 129 |
  • Required Element Summary
  • 130 |
  • Optional Element Summary
  • 131 |
132 |
133 |
    134 |
  • Enum Constant Details
  • 135 |
  • Field Details
  • 136 |
  • Property Details
  • 137 |
  • Constructor Details
  • 138 |
  • Method Details
  • 139 |
  • Element Details
  • 140 |
141 |

Note: Annotation interfaces have required and optional elements, but not methods. Only enum classes have enum constants. The components of a record class are displayed as part of the declaration of the record class. Properties are a feature of JavaFX.

142 |

The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

143 |
144 |
145 |

Other Files

146 |

Packages and modules may contain pages with additional information related to the declarations nearby.

147 |
148 |
149 |

Use

150 |

Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the USE link in the navigation bar.

151 |
152 |
153 |

Tree (Class Hierarchy)

154 |

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

155 |
    156 |
  • When viewing the Overview page, clicking on TREE displays the hierarchy for all packages.
  • 157 |
  • When viewing a particular package, class or interface page, clicking on TREE displays the hierarchy for only that package.
  • 158 |
159 |
160 |
161 |

Deprecated API

162 |

The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to shortcomings, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

163 |
164 |
165 |

All Packages

166 |

The All Packages page contains an alphabetic index of all packages contained in the documentation.

167 |
168 |
169 |

All Classes and Interfaces

170 |

The All Classes and Interfaces page contains an alphabetic index of all classes and interfaces contained in the documentation, including annotation interfaces, enum classes, and record classes.

171 |
172 |
173 |

Index

174 |

The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields in the documentation, as well as summary pages such as All Packages, All Classes and Interfaces.

175 |
176 |
177 |
178 | This help file applies to API documentation generated by the standard doclet.
179 | 183 |
184 |
185 | 186 | 187 | -------------------------------------------------------------------------------- /docs/index-all.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Index (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

Index

53 |
54 | B C D I S 
All Classes and Interfaces|All Packages 55 |

B

56 |
57 |
blockWithBase64(Block, String) - Static method in class day.dean.skullcreator.SkullCreator
58 |
59 |
Sets the block to a skull with the skin for the base64 string.
60 |
61 |
blockWithName(Block, String) - Static method in class day.dean.skullcreator.SkullCreator
62 |
63 |
Deprecated. 64 |
names don't make for good identifiers.
65 |
66 |
67 |
blockWithUrl(Block, String) - Static method in class day.dean.skullcreator.SkullCreator
68 |
69 |
Sets the block to a skull with the skin found at the provided mojang URL.
70 |
71 |
blockWithUuid(Block, UUID) - Static method in class day.dean.skullcreator.SkullCreator
72 |
73 |
Sets the block to a skull with the given UUID.
74 |
75 |
76 |

C

77 |
78 |
createSkull() - Static method in class day.dean.skullcreator.SkullCreator
79 |
80 |
Creates a player skull, should work in both legacy and new Bukkit APIs.
81 |
82 |
83 |

D

84 |
85 |
day.dean.skullcreator - package day.dean.skullcreator
86 |
 
87 |
88 |

I

89 |
90 |
itemFromBase64(String) - Static method in class day.dean.skullcreator.SkullCreator
91 |
92 |
Creates a player skull item with the skin based on a base64 string.
93 |
94 |
itemFromName(String) - Static method in class day.dean.skullcreator.SkullCreator
95 |
96 |
Deprecated. 97 |
names don't make for good identifiers.
98 |
99 |
100 |
itemFromUrl(String) - Static method in class day.dean.skullcreator.SkullCreator
101 |
102 |
Creates a player skull item with the skin at a Mojang URL.
103 |
104 |
itemFromUuid(UUID) - Static method in class day.dean.skullcreator.SkullCreator
105 |
106 |
Creates a player skull item with the skin based on a player's UUID.
107 |
108 |
itemWithBase64(ItemStack, String) - Static method in class day.dean.skullcreator.SkullCreator
109 |
110 |
Modifies a skull to use the skin based on the given base64 string.
111 |
112 |
itemWithName(ItemStack, String) - Static method in class day.dean.skullcreator.SkullCreator
113 |
114 |
Deprecated. 115 |
names don't make for good identifiers.
116 |
117 |
118 |
itemWithUrl(ItemStack, String) - Static method in class day.dean.skullcreator.SkullCreator
119 |
120 |
Modifies a skull to use the skin at the given Mojang URL.
121 |
122 |
itemWithUuid(ItemStack, UUID) - Static method in class day.dean.skullcreator.SkullCreator
123 |
124 |
Modifies a skull to use the skin of the player with a given UUID.
125 |
126 |
127 |

S

128 |
129 |
SkullCreator - Class in day.dean.skullcreator
130 |
131 |
A library for the Bukkit API to create player skulls 132 | from names, base64 strings, and texture URLs.
133 |
134 |
135 | B C D I S 
All Classes and Interfaces|All Packages
136 | 140 |
141 |
142 | 143 | 144 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | skullcreator 3.0.1 API 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 18 | 19 |
20 | 23 |

day/dean/skullcreator/package-summary.html

24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/jquery-ui.overrides.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | .ui-state-active, 27 | .ui-widget-content .ui-state-active, 28 | .ui-widget-header .ui-state-active, 29 | a.ui-button:active, 30 | .ui-button:active, 31 | .ui-button.ui-state-active:hover { 32 | /* Overrides the color of selection used in jQuery UI */ 33 | background: #F8981D; 34 | border: 1px solid #F8981D; 35 | } 36 | -------------------------------------------------------------------------------- /docs/legal/ADDITIONAL_LICENSE_INFO: -------------------------------------------------------------------------------- 1 | ADDITIONAL INFORMATION ABOUT LICENSING 2 | 3 | Certain files distributed by Oracle America, Inc. and/or its affiliates are 4 | subject to the following clarification and special exception to the GPLv2, 5 | based on the GNU Project exception for its Classpath libraries, known as the 6 | GNU Classpath Exception. 7 | 8 | Note that Oracle includes multiple, independent programs in this software 9 | package. Some of those programs are provided under licenses deemed 10 | incompatible with the GPLv2 by the Free Software Foundation and others. 11 | For example, the package includes programs licensed under the Apache 12 | License, Version 2.0 and may include FreeType. Such programs are licensed 13 | to you under their original licenses. 14 | 15 | Oracle facilitates your further distribution of this package by adding the 16 | Classpath Exception to the necessary parts of its GPLv2 code, which permits 17 | you to use that code in combination with other independent modules not 18 | licensed under the GPLv2. However, note that this would not permit you to 19 | commingle code under an incompatible license with Oracle's GPLv2 licensed 20 | code by, for example, cutting and pasting such code into a file also 21 | containing Oracle's GPLv2 licensed code and then distributing the result. 22 | 23 | Additionally, if you were to remove the Classpath Exception from any of the 24 | files to which it applies and distribute the result, you would likely be 25 | required to license some or all of the other code in that distribution under 26 | the GPLv2 as well, and since the GPLv2 is incompatible with the license terms 27 | of some items included in the distribution by Oracle, removing the Classpath 28 | Exception could therefore effectively compromise your ability to further 29 | distribute the package. 30 | 31 | Failing to distribute notices associated with some files may also create 32 | unexpected legal consequences. 33 | 34 | Proceed with caution and we recommend that you obtain the advice of a lawyer 35 | skilled in open source matters before removing the Classpath Exception or 36 | making modifications to this package which may subsequently be redistributed 37 | and/or involve the use of third party software. 38 | -------------------------------------------------------------------------------- /docs/legal/ASSEMBLY_EXCEPTION: -------------------------------------------------------------------------------- 1 | 2 | OPENJDK ASSEMBLY EXCEPTION 3 | 4 | The OpenJDK source code made available by Oracle America, Inc. (Oracle) at 5 | openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU 6 | General Public License version 2 7 | only ("GPL2"), with the following clarification and special exception. 8 | 9 | Linking this OpenJDK Code statically or dynamically with other code 10 | is making a combined work based on this library. Thus, the terms 11 | and conditions of GPL2 cover the whole combination. 12 | 13 | As a special exception, Oracle gives you permission to link this 14 | OpenJDK Code with certain code licensed by Oracle as indicated at 15 | http://openjdk.java.net/legal/exception-modules-2007-05-08.html 16 | ("Designated Exception Modules") to produce an executable, 17 | regardless of the license terms of the Designated Exception Modules, 18 | and to copy and distribute the resulting executable under GPL2, 19 | provided that the Designated Exception Modules continue to be 20 | governed by the licenses under which they were offered by Oracle. 21 | 22 | As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code 23 | to build an executable that includes those portions of necessary code that 24 | Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 25 | with the Classpath exception). If you modify or add to the OpenJDK code, 26 | that new GPL2 code may still be combined with Designated Exception Modules 27 | if the new code is made subject to this exception by its copyright holder. 28 | -------------------------------------------------------------------------------- /docs/legal/LICENSE: -------------------------------------------------------------------------------- 1 | The GNU General Public License (GPL) 2 | 3 | Version 2, June 1991 4 | 5 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. 6 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 7 | 8 | Everyone is permitted to copy and distribute verbatim copies of this license 9 | document, but changing it is not allowed. 10 | 11 | Preamble 12 | 13 | The licenses for most software are designed to take away your freedom to share 14 | and change it. By contrast, the GNU General Public License is intended to 15 | guarantee your freedom to share and change free software--to make sure the 16 | software is free for all its users. This General Public License applies to 17 | most of the Free Software Foundation's software and to any other program whose 18 | authors commit to using it. (Some other Free Software Foundation software is 19 | covered by the GNU Library General Public License instead.) You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not price. Our 23 | General Public Licenses are designed to make sure that you have the freedom to 24 | distribute copies of free software (and charge for this service if you wish), 25 | that you receive source code or can get it if you want it, that you can change 26 | the software or use pieces of it in new free programs; and that you know you 27 | can do these things. 28 | 29 | To protect your rights, we need to make restrictions that forbid anyone to deny 30 | you these rights or to ask you to surrender the rights. These restrictions 31 | translate to certain responsibilities for you if you distribute copies of the 32 | software, or if you modify it. 33 | 34 | For example, if you distribute copies of such a program, whether gratis or for 35 | a fee, you must give the recipients all the rights that you have. You must 36 | make sure that they, too, receive or can get the source code. And you must 37 | show them these terms so they know their rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and (2) 40 | offer you this license which gives you legal permission to copy, distribute 41 | and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain that 44 | everyone understands that there is no warranty for this free software. If the 45 | software is modified by someone else and passed on, we want its recipients to 46 | know that what they have is not the original, so that any problems introduced 47 | by others will not reflect on the original authors' reputations. 48 | 49 | Finally, any free program is threatened constantly by software patents. We 50 | wish to avoid the danger that redistributors of a free program will 51 | individually obtain patent licenses, in effect making the program proprietary. 52 | To prevent this, we have made it clear that any patent must be licensed for 53 | everyone's free use or not licensed at all. 54 | 55 | The precise terms and conditions for copying, distribution and modification 56 | follow. 57 | 58 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 59 | 60 | 0. This License applies to any program or other work which contains a notice 61 | placed by the copyright holder saying it may be distributed under the terms of 62 | this General Public License. The "Program", below, refers to any such program 63 | or work, and a "work based on the Program" means either the Program or any 64 | derivative work under copyright law: that is to say, a work containing the 65 | Program or a portion of it, either verbatim or with modifications and/or 66 | translated into another language. (Hereinafter, translation is included 67 | without limitation in the term "modification".) Each licensee is addressed as 68 | "you". 69 | 70 | Activities other than copying, distribution and modification are not covered by 71 | this License; they are outside its scope. The act of running the Program is 72 | not restricted, and the output from the Program is covered only if its contents 73 | constitute a work based on the Program (independent of having been made by 74 | running the Program). Whether that is true depends on what the Program does. 75 | 76 | 1. You may copy and distribute verbatim copies of the Program's source code as 77 | you receive it, in any medium, provided that you conspicuously and 78 | appropriately publish on each copy an appropriate copyright notice and 79 | disclaimer of warranty; keep intact all the notices that refer to this License 80 | and to the absence of any warranty; and give any other recipients of the 81 | Program a copy of this License along with the Program. 82 | 83 | You may charge a fee for the physical act of transferring a copy, and you may 84 | at your option offer warranty protection in exchange for a fee. 85 | 86 | 2. You may modify your copy or copies of the Program or any portion of it, thus 87 | forming a work based on the Program, and copy and distribute such modifications 88 | or work under the terms of Section 1 above, provided that you also meet all of 89 | these conditions: 90 | 91 | a) You must cause the modified files to carry prominent notices stating 92 | that you changed the files and the date of any change. 93 | 94 | b) You must cause any work that you distribute or publish, that in whole or 95 | in part contains or is derived from the Program or any part thereof, to be 96 | licensed as a whole at no charge to all third parties under the terms of 97 | this License. 98 | 99 | c) If the modified program normally reads commands interactively when run, 100 | you must cause it, when started running for such interactive use in the 101 | most ordinary way, to print or display an announcement including an 102 | appropriate copyright notice and a notice that there is no warranty (or 103 | else, saying that you provide a warranty) and that users may redistribute 104 | the program under these conditions, and telling the user how to view a copy 105 | of this License. (Exception: if the Program itself is interactive but does 106 | not normally print such an announcement, your work based on the Program is 107 | not required to print an announcement.) 108 | 109 | These requirements apply to the modified work as a whole. If identifiable 110 | sections of that work are not derived from the Program, and can be reasonably 111 | considered independent and separate works in themselves, then this License, and 112 | its terms, do not apply to those sections when you distribute them as separate 113 | works. But when you distribute the same sections as part of a whole which is a 114 | work based on the Program, the distribution of the whole must be on the terms 115 | of this License, whose permissions for other licensees extend to the entire 116 | whole, and thus to each and every part regardless of who wrote it. 117 | 118 | Thus, it is not the intent of this section to claim rights or contest your 119 | rights to work written entirely by you; rather, the intent is to exercise the 120 | right to control the distribution of derivative or collective works based on 121 | the Program. 122 | 123 | In addition, mere aggregation of another work not based on the Program with the 124 | Program (or with a work based on the Program) on a volume of a storage or 125 | distribution medium does not bring the other work under the scope of this 126 | License. 127 | 128 | 3. You may copy and distribute the Program (or a work based on it, under 129 | Section 2) in object code or executable form under the terms of Sections 1 and 130 | 2 above provided that you also do one of the following: 131 | 132 | a) Accompany it with the complete corresponding machine-readable source 133 | code, which must be distributed under the terms of Sections 1 and 2 above 134 | on a medium customarily used for software interchange; or, 135 | 136 | b) Accompany it with a written offer, valid for at least three years, to 137 | give any third party, for a charge no more than your cost of physically 138 | performing source distribution, a complete machine-readable copy of the 139 | corresponding source code, to be distributed under the terms of Sections 1 140 | and 2 above on a medium customarily used for software interchange; or, 141 | 142 | c) Accompany it with the information you received as to the offer to 143 | distribute corresponding source code. (This alternative is allowed only 144 | for noncommercial distribution and only if you received the program in 145 | object code or executable form with such an offer, in accord with 146 | Subsection b above.) 147 | 148 | The source code for a work means the preferred form of the work for making 149 | modifications to it. For an executable work, complete source code means all 150 | the source code for all modules it contains, plus any associated interface 151 | definition files, plus the scripts used to control compilation and installation 152 | of the executable. However, as a special exception, the source code 153 | distributed need not include anything that is normally distributed (in either 154 | source or binary form) with the major components (compiler, kernel, and so on) 155 | of the operating system on which the executable runs, unless that component 156 | itself accompanies the executable. 157 | 158 | If distribution of executable or object code is made by offering access to copy 159 | from a designated place, then offering equivalent access to copy the source 160 | code from the same place counts as distribution of the source code, even though 161 | third parties are not compelled to copy the source along with the object code. 162 | 163 | 4. You may not copy, modify, sublicense, or distribute the Program except as 164 | expressly provided under this License. Any attempt otherwise to copy, modify, 165 | sublicense or distribute the Program is void, and will automatically terminate 166 | your rights under this License. However, parties who have received copies, or 167 | rights, from you under this License will not have their licenses terminated so 168 | long as such parties remain in full compliance. 169 | 170 | 5. You are not required to accept this License, since you have not signed it. 171 | However, nothing else grants you permission to modify or distribute the Program 172 | or its derivative works. These actions are prohibited by law if you do not 173 | accept this License. Therefore, by modifying or distributing the Program (or 174 | any work based on the Program), you indicate your acceptance of this License to 175 | do so, and all its terms and conditions for copying, distributing or modifying 176 | the Program or works based on it. 177 | 178 | 6. Each time you redistribute the Program (or any work based on the Program), 179 | the recipient automatically receives a license from the original licensor to 180 | copy, distribute or modify the Program subject to these terms and conditions. 181 | You may not impose any further restrictions on the recipients' exercise of the 182 | rights granted herein. You are not responsible for enforcing compliance by 183 | third parties to this License. 184 | 185 | 7. If, as a consequence of a court judgment or allegation of patent 186 | infringement or for any other reason (not limited to patent issues), conditions 187 | are imposed on you (whether by court order, agreement or otherwise) that 188 | contradict the conditions of this License, they do not excuse you from the 189 | conditions of this License. If you cannot distribute so as to satisfy 190 | simultaneously your obligations under this License and any other pertinent 191 | obligations, then as a consequence you may not distribute the Program at all. 192 | For example, if a patent license would not permit royalty-free redistribution 193 | of the Program by all those who receive copies directly or indirectly through 194 | you, then the only way you could satisfy both it and this License would be to 195 | refrain entirely from distribution of the Program. 196 | 197 | If any portion of this section is held invalid or unenforceable under any 198 | particular circumstance, the balance of the section is intended to apply and 199 | the section as a whole is intended to apply in other circumstances. 200 | 201 | It is not the purpose of this section to induce you to infringe any patents or 202 | other property right claims or to contest validity of any such claims; this 203 | section has the sole purpose of protecting the integrity of the free software 204 | distribution system, which is implemented by public license practices. Many 205 | people have made generous contributions to the wide range of software 206 | distributed through that system in reliance on consistent application of that 207 | system; it is up to the author/donor to decide if he or she is willing to 208 | distribute software through any other system and a licensee cannot impose that 209 | choice. 210 | 211 | This section is intended to make thoroughly clear what is believed to be a 212 | consequence of the rest of this License. 213 | 214 | 8. If the distribution and/or use of the Program is restricted in certain 215 | countries either by patents or by copyrighted interfaces, the original 216 | copyright holder who places the Program under this License may add an explicit 217 | geographical distribution limitation excluding those countries, so that 218 | distribution is permitted only in or among countries not thus excluded. In 219 | such case, this License incorporates the limitation as if written in the body 220 | of this License. 221 | 222 | 9. The Free Software Foundation may publish revised and/or new versions of the 223 | General Public License from time to time. Such new versions will be similar in 224 | spirit to the present version, but may differ in detail to address new problems 225 | or concerns. 226 | 227 | Each version is given a distinguishing version number. If the Program 228 | specifies a version number of this License which applies to it and "any later 229 | version", you have the option of following the terms and conditions either of 230 | that version or of any later version published by the Free Software Foundation. 231 | If the Program does not specify a version number of this License, you may 232 | choose any version ever published by the Free Software Foundation. 233 | 234 | 10. If you wish to incorporate parts of the Program into other free programs 235 | whose distribution conditions are different, write to the author to ask for 236 | permission. For software which is copyrighted by the Free Software Foundation, 237 | write to the Free Software Foundation; we sometimes make exceptions for this. 238 | Our decision will be guided by the two goals of preserving the free status of 239 | all derivatives of our free software and of promoting the sharing and reuse of 240 | software generally. 241 | 242 | NO WARRANTY 243 | 244 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR 245 | THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE 246 | STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE 247 | PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 248 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 249 | FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND 250 | PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, 251 | YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 252 | 253 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL 254 | ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE 255 | PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 256 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR 257 | INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA 258 | BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 259 | FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER 260 | OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 261 | 262 | END OF TERMS AND CONDITIONS 263 | 264 | How to Apply These Terms to Your New Programs 265 | 266 | If you develop a new program, and you want it to be of the greatest possible 267 | use to the public, the best way to achieve this is to make it free software 268 | which everyone can redistribute and change under these terms. 269 | 270 | To do so, attach the following notices to the program. It is safest to attach 271 | them to the start of each source file to most effectively convey the exclusion 272 | of warranty; and each file should have at least the "copyright" line and a 273 | pointer to where the full notice is found. 274 | 275 | One line to give the program's name and a brief idea of what it does. 276 | 277 | Copyright (C) 278 | 279 | This program is free software; you can redistribute it and/or modify it 280 | under the terms of the GNU General Public License as published by the Free 281 | Software Foundation; either version 2 of the License, or (at your option) 282 | any later version. 283 | 284 | This program is distributed in the hope that it will be useful, but WITHOUT 285 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 286 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 287 | more details. 288 | 289 | You should have received a copy of the GNU General Public License along 290 | with this program; if not, write to the Free Software Foundation, Inc., 291 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 292 | 293 | Also add information on how to contact you by electronic and paper mail. 294 | 295 | If the program is interactive, make it output a short notice like this when it 296 | starts in an interactive mode: 297 | 298 | Gnomovision version 69, Copyright (C) year name of author Gnomovision comes 299 | with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free 300 | software, and you are welcome to redistribute it under certain conditions; 301 | type 'show c' for details. 302 | 303 | The hypothetical commands 'show w' and 'show c' should show the appropriate 304 | parts of the General Public License. Of course, the commands you use may be 305 | called something other than 'show w' and 'show c'; they could even be 306 | mouse-clicks or menu items--whatever suits your program. 307 | 308 | You should also get your employer (if you work as a programmer) or your school, 309 | if any, to sign a "copyright disclaimer" for the program, if necessary. Here 310 | is a sample; alter the names: 311 | 312 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 313 | 'Gnomovision' (which makes passes at compilers) written by James Hacker. 314 | 315 | signature of Ty Coon, 1 April 1989 316 | 317 | Ty Coon, President of Vice 318 | 319 | This General Public License does not permit incorporating your program into 320 | proprietary programs. If your program is a subroutine library, you may 321 | consider it more useful to permit linking proprietary applications with the 322 | library. If this is what you want to do, use the GNU Library General Public 323 | License instead of this License. 324 | 325 | 326 | "CLASSPATH" EXCEPTION TO THE GPL 327 | 328 | Certain source files distributed by Oracle America and/or its affiliates are 329 | subject to the following clarification and special exception to the GPL, but 330 | only where Oracle has expressly included in the particular source file's header 331 | the words "Oracle designates this particular file as subject to the "Classpath" 332 | exception as provided by Oracle in the LICENSE file that accompanied this code." 333 | 334 | Linking this library statically or dynamically with other modules is making 335 | a combined work based on this library. Thus, the terms and conditions of 336 | the GNU General Public License cover the whole combination. 337 | 338 | As a special exception, the copyright holders of this library give you 339 | permission to link this library with independent modules to produce an 340 | executable, regardless of the license terms of these independent modules, 341 | and to copy and distribute the resulting executable under terms of your 342 | choice, provided that you also meet, for each linked independent module, 343 | the terms and conditions of the license of that module. An independent 344 | module is a module which is not derived from or based on this library. If 345 | you modify this library, you may extend this exception to your version of 346 | the library, but you are not obligated to do so. If you do not wish to do 347 | so, delete this exception statement from your version. 348 | -------------------------------------------------------------------------------- /docs/legal/jquery.md: -------------------------------------------------------------------------------- 1 | ## jQuery v3.6.0 2 | 3 | ### jQuery License 4 | ``` 5 | jQuery v 3.6.0 6 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/ 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining 9 | a copy of this software and associated documentation files (the 10 | "Software"), to deal in the Software without restriction, including 11 | without limitation the rights to use, copy, modify, merge, publish, 12 | distribute, sublicense, and/or sell copies of the Software, and to 13 | permit persons to whom the Software is furnished to do so, subject to 14 | the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be 17 | included in all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 22 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 23 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 24 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 25 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | ****************************************** 28 | 29 | The jQuery JavaScript Library v3.6.0 also includes Sizzle.js 30 | 31 | Sizzle.js includes the following license: 32 | 33 | Copyright JS Foundation and other contributors, https://js.foundation/ 34 | 35 | This software consists of voluntary contributions made by many 36 | individuals. For exact contribution history, see the revision history 37 | available at https://github.com/jquery/sizzle 38 | 39 | The following license applies to all parts of this software except as 40 | documented below: 41 | 42 | ==== 43 | 44 | Permission is hereby granted, free of charge, to any person obtaining 45 | a copy of this software and associated documentation files (the 46 | "Software"), to deal in the Software without restriction, including 47 | without limitation the rights to use, copy, modify, merge, publish, 48 | distribute, sublicense, and/or sell copies of the Software, and to 49 | permit persons to whom the Software is furnished to do so, subject to 50 | the following conditions: 51 | 52 | The above copyright notice and this permission notice shall be 53 | included in all copies or substantial portions of the Software. 54 | 55 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 56 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 57 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 58 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 59 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 60 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 61 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 62 | 63 | ==== 64 | 65 | All files located in the node_modules and external directories are 66 | externally maintained libraries used by this software which have their 67 | own licenses; we recommend you read them, as their terms may differ from 68 | the terms above. 69 | 70 | ********************* 71 | 72 | ``` 73 | -------------------------------------------------------------------------------- /docs/legal/jqueryUI.md: -------------------------------------------------------------------------------- 1 | ## jQuery UI v1.12.1 2 | 3 | ### jQuery UI License 4 | ``` 5 | Copyright jQuery Foundation and other contributors, https://jquery.org/ 6 | 7 | This software consists of voluntary contributions made by many 8 | individuals. For exact contribution history, see the revision history 9 | available at https://github.com/jquery/jquery-ui 10 | 11 | The following license applies to all parts of this software except as 12 | documented below: 13 | 14 | ==== 15 | 16 | Permission is hereby granted, free of charge, to any person obtaining 17 | a copy of this software and associated documentation files (the 18 | "Software"), to deal in the Software without restriction, including 19 | without limitation the rights to use, copy, modify, merge, publish, 20 | distribute, sublicense, and/or sell copies of the Software, and to 21 | permit persons to whom the Software is furnished to do so, subject to 22 | the following conditions: 23 | 24 | The above copyright notice and this permission notice shall be 25 | included in all copies or substantial portions of the Software. 26 | 27 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 28 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 29 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 30 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 31 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 32 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 33 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 34 | 35 | ==== 36 | 37 | Copyright and related rights for sample code are waived via CC0. Sample 38 | code is defined as all source code contained within the demos directory. 39 | 40 | CC0: http://creativecommons.org/publicdomain/zero/1.0/ 41 | 42 | ==== 43 | 44 | All files located in the node_modules and external directories are 45 | externally maintained libraries used by this software which have their 46 | own licenses; we recommend you read them, as their terms may differ from 47 | the terms above. 48 | 49 | ``` 50 | -------------------------------------------------------------------------------- /docs/member-search-index.js: -------------------------------------------------------------------------------- 1 | memberSearchIndex = [{"p":"day.dean.skullcreator","c":"SkullCreator","l":"blockWithBase64(Block, String)","u":"blockWithBase64(org.bukkit.block.Block,java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"blockWithName(Block, String)","u":"blockWithName(org.bukkit.block.Block,java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"blockWithUrl(Block, String)","u":"blockWithUrl(org.bukkit.block.Block,java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"blockWithUuid(Block, UUID)","u":"blockWithUuid(org.bukkit.block.Block,java.util.UUID)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"createSkull()"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemFromBase64(String)","u":"itemFromBase64(java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemFromName(String)","u":"itemFromName(java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemFromUrl(String)","u":"itemFromUrl(java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemFromUuid(UUID)","u":"itemFromUuid(java.util.UUID)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemWithBase64(ItemStack, String)","u":"itemWithBase64(org.bukkit.inventory.ItemStack,java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemWithName(ItemStack, String)","u":"itemWithName(org.bukkit.inventory.ItemStack,java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemWithUrl(ItemStack, String)","u":"itemWithUrl(org.bukkit.inventory.ItemStack,java.lang.String)"},{"p":"day.dean.skullcreator","c":"SkullCreator","l":"itemWithUuid(ItemStack, UUID)","u":"itemWithUuid(org.bukkit.inventory.ItemStack,java.util.UUID)"}];updateSearchResults(); -------------------------------------------------------------------------------- /docs/module-search-index.js: -------------------------------------------------------------------------------- 1 | moduleSearchIndex = [];updateSearchResults(); -------------------------------------------------------------------------------- /docs/overview-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Class Hierarchy (skullcreator 3.0.1 API) 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 24 |
25 | 49 |
50 |
51 |
52 |

Hierarchy For All Packages

53 | Package Hierarchies: 54 | 57 |
58 |
59 |

Class Hierarchy

60 | 67 |
68 |
69 |
70 |
71 | 72 |
73 |
74 |
75 | 76 | 77 | -------------------------------------------------------------------------------- /docs/package-search-index.js: -------------------------------------------------------------------------------- 1 | packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"day.dean.skullcreator"}];updateSearchResults(); -------------------------------------------------------------------------------- /docs/resources/glass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanveloper/SkullCreator/73f5b2a946c2dda45007a81f4768e0e74ba3090f/docs/resources/glass.png -------------------------------------------------------------------------------- /docs/resources/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deanveloper/SkullCreator/73f5b2a946c2dda45007a81f4768e0e74ba3090f/docs/resources/x.png -------------------------------------------------------------------------------- /docs/script-dir/jquery-ui.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.13.1 - 2022-05-12 2 | * http://jqueryui.com 3 | * Includes: core.css, autocomplete.css, menu.css 4 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 5 | 6 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;-ms-filter:"alpha(opacity=0)"}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0} -------------------------------------------------------------------------------- /docs/script-dir/jquery-ui.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.13.1 - 2022-05-12 2 | * http://jqueryui.com 3 | * Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js 4 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 5 | 6 | !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";x.ui=x.ui||{};x.ui.version="1.13.1";var n,i=0,l=Array.prototype.hasOwnProperty,a=Array.prototype.slice;x.cleanData=(n=x.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");n(t)}),x.widget=function(t,i,e){var s,n,o,l={},a=t.split(".")[0],r=a+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},s=x[a][t],n=x[a][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},x.extend(n,s,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}l[e]="function"==typeof s?function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),n.prototype=x.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},l,{constructor:n,namespace:a,widgetName:t,widgetFullName:r}),s?(x.each(s._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),x.widget.bridge(t,n),n},x.widget.extend=function(t){for(var e,i,s=a.call(arguments,1),n=0,o=s.length;n",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n
"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(E(s),E(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0n?0",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("
    ").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("
    ").text(i))},100))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("
    ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(x("
    ").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1").text(e))},100))}});x.ui.autocomplete}); -------------------------------------------------------------------------------- /docs/script.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | var moduleSearchIndex; 27 | var packageSearchIndex; 28 | var typeSearchIndex; 29 | var memberSearchIndex; 30 | var tagSearchIndex; 31 | function loadScripts(doc, tag) { 32 | createElem(doc, tag, 'search.js'); 33 | 34 | createElem(doc, tag, 'module-search-index.js'); 35 | createElem(doc, tag, 'package-search-index.js'); 36 | createElem(doc, tag, 'type-search-index.js'); 37 | createElem(doc, tag, 'member-search-index.js'); 38 | createElem(doc, tag, 'tag-search-index.js'); 39 | } 40 | 41 | function createElem(doc, tag, path) { 42 | var script = doc.createElement(tag); 43 | var scriptElement = doc.getElementsByTagName(tag)[0]; 44 | script.src = pathtoroot + path; 45 | scriptElement.parentNode.insertBefore(script, scriptElement); 46 | } 47 | 48 | function show(tableId, selected, columns) { 49 | if (tableId !== selected) { 50 | document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')') 51 | .forEach(function(elem) { 52 | elem.style.display = 'none'; 53 | }); 54 | } 55 | document.querySelectorAll('div.' + selected) 56 | .forEach(function(elem, index) { 57 | elem.style.display = ''; 58 | var isEvenRow = index % (columns * 2) < columns; 59 | elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor); 60 | elem.classList.add(isEvenRow ? evenRowColor : oddRowColor); 61 | }); 62 | updateTabs(tableId, selected); 63 | } 64 | 65 | function updateTabs(tableId, selected) { 66 | document.querySelector('div#' + tableId +' .summary-table') 67 | .setAttribute('aria-labelledby', selected); 68 | document.querySelectorAll('button[id^="' + tableId + '"]') 69 | .forEach(function(tab, index) { 70 | if (selected === tab.id || (tableId === selected && index === 0)) { 71 | tab.className = activeTableTab; 72 | tab.setAttribute('aria-selected', true); 73 | tab.setAttribute('tabindex',0); 74 | } else { 75 | tab.className = tableTab; 76 | tab.setAttribute('aria-selected', false); 77 | tab.setAttribute('tabindex',-1); 78 | } 79 | }); 80 | } 81 | 82 | function switchTab(e) { 83 | var selected = document.querySelector('[aria-selected=true]'); 84 | if (selected) { 85 | if ((e.keyCode === 37 || e.keyCode === 38) && selected.previousSibling) { 86 | // left or up arrow key pressed: move focus to previous tab 87 | selected.previousSibling.click(); 88 | selected.previousSibling.focus(); 89 | e.preventDefault(); 90 | } else if ((e.keyCode === 39 || e.keyCode === 40) && selected.nextSibling) { 91 | // right or down arrow key pressed: move focus to next tab 92 | selected.nextSibling.click(); 93 | selected.nextSibling.focus(); 94 | e.preventDefault(); 95 | } 96 | } 97 | } 98 | 99 | var updateSearchResults = function() {}; 100 | 101 | function indexFilesLoaded() { 102 | return moduleSearchIndex 103 | && packageSearchIndex 104 | && typeSearchIndex 105 | && memberSearchIndex 106 | && tagSearchIndex; 107 | } 108 | 109 | // Workaround for scroll position not being included in browser history (8249133) 110 | document.addEventListener("DOMContentLoaded", function(e) { 111 | var contentDiv = document.querySelector("div.flex-content"); 112 | window.addEventListener("popstate", function(e) { 113 | if (e.state !== null) { 114 | contentDiv.scrollTop = e.state; 115 | } 116 | }); 117 | window.addEventListener("hashchange", function(e) { 118 | history.replaceState(contentDiv.scrollTop, document.title); 119 | }); 120 | contentDiv.addEventListener("scroll", function(e) { 121 | var timeoutID; 122 | if (!timeoutID) { 123 | timeoutID = setTimeout(function() { 124 | history.replaceState(contentDiv.scrollTop, document.title); 125 | timeoutID = null; 126 | }, 100); 127 | } 128 | }); 129 | if (!location.hash) { 130 | history.replaceState(contentDiv.scrollTop, document.title); 131 | } 132 | }); 133 | -------------------------------------------------------------------------------- /docs/search.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 | * 5 | * This code is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License version 2 only, as 7 | * published by the Free Software Foundation. Oracle designates this 8 | * particular file as subject to the "Classpath" exception as provided 9 | * by Oracle in the LICENSE file that accompanied this code. 10 | * 11 | * This code is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | * version 2 for more details (a copy is included in the LICENSE file that 15 | * accompanied this code). 16 | * 17 | * You should have received a copy of the GNU General Public License version 18 | * 2 along with this work; if not, write to the Free Software Foundation, 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 | * 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 | * or visit www.oracle.com if you need additional information or have any 23 | * questions. 24 | */ 25 | 26 | var noResult = {l: "No results found"}; 27 | var loading = {l: "Loading search index..."}; 28 | var catModules = "Modules"; 29 | var catPackages = "Packages"; 30 | var catTypes = "Types"; 31 | var catMembers = "Members"; 32 | var catSearchTags = "Search Tags"; 33 | var highlight = "$&"; 34 | var searchPattern = ""; 35 | var fallbackPattern = ""; 36 | var RANKING_THRESHOLD = 2; 37 | var NO_MATCH = 0xffff; 38 | var MIN_RESULTS = 3; 39 | var MAX_RESULTS = 500; 40 | var UNNAMED = ""; 41 | function escapeHtml(str) { 42 | return str.replace(//g, ">"); 43 | } 44 | function getHighlightedText(item, matcher, fallbackMatcher) { 45 | var escapedItem = escapeHtml(item); 46 | var highlighted = escapedItem.replace(matcher, highlight); 47 | if (highlighted === escapedItem) { 48 | highlighted = escapedItem.replace(fallbackMatcher, highlight) 49 | } 50 | return highlighted; 51 | } 52 | function getURLPrefix(ui) { 53 | var urlPrefix=""; 54 | var slash = "/"; 55 | if (ui.item.category === catModules) { 56 | return ui.item.l + slash; 57 | } else if (ui.item.category === catPackages && ui.item.m) { 58 | return ui.item.m + slash; 59 | } else if (ui.item.category === catTypes || ui.item.category === catMembers) { 60 | if (ui.item.m) { 61 | urlPrefix = ui.item.m + slash; 62 | } else { 63 | $.each(packageSearchIndex, function(index, item) { 64 | if (item.m && ui.item.p === item.l) { 65 | urlPrefix = item.m + slash; 66 | } 67 | }); 68 | } 69 | } 70 | return urlPrefix; 71 | } 72 | function createSearchPattern(term) { 73 | var pattern = ""; 74 | var isWordToken = false; 75 | term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { 76 | if (index > 0) { 77 | // whitespace between identifiers is significant 78 | pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; 79 | } 80 | var tokens = w.split(/(?=[A-Z,.()<>[\/])/); 81 | for (var i = 0; i < tokens.length; i++) { 82 | var s = tokens[i]; 83 | if (s === "") { 84 | continue; 85 | } 86 | pattern += $.ui.autocomplete.escapeRegex(s); 87 | isWordToken = /\w$/.test(s); 88 | if (isWordToken) { 89 | pattern += "([a-z0-9_$<>\\[\\]]*?)"; 90 | } 91 | } 92 | }); 93 | return pattern; 94 | } 95 | function createMatcher(pattern, flags) { 96 | var isCamelCase = /[A-Z]/.test(pattern); 97 | return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); 98 | } 99 | var watermark = 'Search'; 100 | $(function() { 101 | var search = $("#search-input"); 102 | var reset = $("#reset-button"); 103 | search.val(''); 104 | search.prop("disabled", false); 105 | reset.prop("disabled", false); 106 | search.val(watermark).addClass('watermark'); 107 | search.blur(function() { 108 | if ($(this).val().length === 0) { 109 | $(this).val(watermark).addClass('watermark'); 110 | } 111 | }); 112 | search.on('click keydown paste', function() { 113 | if ($(this).val() === watermark) { 114 | $(this).val('').removeClass('watermark'); 115 | } 116 | }); 117 | reset.click(function() { 118 | search.val('').focus(); 119 | }); 120 | search.focus()[0].setSelectionRange(0, 0); 121 | }); 122 | $.widget("custom.catcomplete", $.ui.autocomplete, { 123 | _create: function() { 124 | this._super(); 125 | this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); 126 | }, 127 | _renderMenu: function(ul, items) { 128 | var rMenu = this; 129 | var currentCategory = ""; 130 | rMenu.menu.bindings = $(); 131 | $.each(items, function(index, item) { 132 | var li; 133 | if (item.category && item.category !== currentCategory) { 134 | ul.append("
  • " + item.category + "
  • "); 135 | currentCategory = item.category; 136 | } 137 | li = rMenu._renderItemData(ul, item); 138 | if (item.category) { 139 | li.attr("aria-label", item.category + " : " + item.l); 140 | li.attr("class", "result-item"); 141 | } else { 142 | li.attr("aria-label", item.l); 143 | li.attr("class", "result-item"); 144 | } 145 | }); 146 | }, 147 | _renderItem: function(ul, item) { 148 | var label = ""; 149 | var matcher = createMatcher(escapeHtml(searchPattern), "g"); 150 | var fallbackMatcher = new RegExp(fallbackPattern, "gi") 151 | if (item.category === catModules) { 152 | label = getHighlightedText(item.l, matcher, fallbackMatcher); 153 | } else if (item.category === catPackages) { 154 | label = getHighlightedText(item.l, matcher, fallbackMatcher); 155 | } else if (item.category === catTypes) { 156 | label = (item.p && item.p !== UNNAMED) 157 | ? getHighlightedText(item.p + "." + item.l, matcher, fallbackMatcher) 158 | : getHighlightedText(item.l, matcher, fallbackMatcher); 159 | } else if (item.category === catMembers) { 160 | label = (item.p && item.p !== UNNAMED) 161 | ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher, fallbackMatcher) 162 | : getHighlightedText(item.c + "." + item.l, matcher, fallbackMatcher); 163 | } else if (item.category === catSearchTags) { 164 | label = getHighlightedText(item.l, matcher, fallbackMatcher); 165 | } else { 166 | label = item.l; 167 | } 168 | var li = $("
  • ").appendTo(ul); 169 | var div = $("
    ").appendTo(li); 170 | if (item.category === catSearchTags && item.h) { 171 | if (item.d) { 172 | div.html(label + " (" + item.h + ")
    " 173 | + item.d + "
    "); 174 | } else { 175 | div.html(label + " (" + item.h + ")"); 176 | } 177 | } else { 178 | if (item.m) { 179 | div.html(item.m + "/" + label); 180 | } else { 181 | div.html(label); 182 | } 183 | } 184 | return li; 185 | } 186 | }); 187 | function rankMatch(match, category) { 188 | if (!match) { 189 | return NO_MATCH; 190 | } 191 | var index = match.index; 192 | var input = match.input; 193 | var leftBoundaryMatch = 2; 194 | var periferalMatch = 0; 195 | // make sure match is anchored on a left word boundary 196 | if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index]) { 197 | leftBoundaryMatch = 0; 198 | } else if ("_" === input[index - 1] || (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input))) { 199 | leftBoundaryMatch = 1; 200 | } 201 | var matchEnd = index + match[0].length; 202 | var leftParen = input.indexOf("("); 203 | var endOfName = leftParen > -1 ? leftParen : input.length; 204 | // exclude peripheral matches 205 | if (category !== catModules && category !== catSearchTags) { 206 | var delim = category === catPackages ? "/" : "."; 207 | if (leftParen > -1 && leftParen < index) { 208 | periferalMatch += 2; 209 | } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { 210 | periferalMatch += 2; 211 | } 212 | } 213 | var delta = match[0].length === endOfName ? 0 : 1; // rank full match higher than partial match 214 | for (var i = 1; i < match.length; i++) { 215 | // lower ranking if parts of the name are missing 216 | if (match[i]) 217 | delta += match[i].length; 218 | } 219 | if (category === catTypes) { 220 | // lower ranking if a type name contains unmatched camel-case parts 221 | if (/[A-Z]/.test(input.substring(matchEnd))) 222 | delta += 5; 223 | if (/[A-Z]/.test(input.substring(0, index))) 224 | delta += 5; 225 | } 226 | return leftBoundaryMatch + periferalMatch + (delta / 200); 227 | 228 | } 229 | function doSearch(request, response) { 230 | var result = []; 231 | searchPattern = createSearchPattern(request.term); 232 | fallbackPattern = createSearchPattern(request.term.toLowerCase()); 233 | if (searchPattern === "") { 234 | return this.close(); 235 | } 236 | var camelCaseMatcher = createMatcher(searchPattern, ""); 237 | var fallbackMatcher = new RegExp(fallbackPattern, "i"); 238 | 239 | function searchIndexWithMatcher(indexArray, matcher, category, nameFunc) { 240 | if (indexArray) { 241 | var newResults = []; 242 | $.each(indexArray, function (i, item) { 243 | item.category = category; 244 | var ranking = rankMatch(matcher.exec(nameFunc(item)), category); 245 | if (ranking < RANKING_THRESHOLD) { 246 | newResults.push({ranking: ranking, item: item}); 247 | } 248 | return newResults.length <= MAX_RESULTS; 249 | }); 250 | return newResults.sort(function(e1, e2) { 251 | return e1.ranking - e2.ranking; 252 | }).map(function(e) { 253 | return e.item; 254 | }); 255 | } 256 | return []; 257 | } 258 | function searchIndex(indexArray, category, nameFunc) { 259 | var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc); 260 | result = result.concat(primaryResults); 261 | if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) { 262 | var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc); 263 | result = result.concat(secondaryResults.filter(function (item) { 264 | return primaryResults.indexOf(item) === -1; 265 | })); 266 | } 267 | } 268 | 269 | searchIndex(moduleSearchIndex, catModules, function(item) { return item.l; }); 270 | searchIndex(packageSearchIndex, catPackages, function(item) { 271 | return (item.m && request.term.indexOf("/") > -1) 272 | ? (item.m + "/" + item.l) : item.l; 273 | }); 274 | searchIndex(typeSearchIndex, catTypes, function(item) { 275 | return request.term.indexOf(".") > -1 ? item.p + "." + item.l : item.l; 276 | }); 277 | searchIndex(memberSearchIndex, catMembers, function(item) { 278 | return request.term.indexOf(".") > -1 279 | ? item.p + "." + item.c + "." + item.l : item.l; 280 | }); 281 | searchIndex(tagSearchIndex, catSearchTags, function(item) { return item.l; }); 282 | 283 | if (!indexFilesLoaded()) { 284 | updateSearchResults = function() { 285 | doSearch(request, response); 286 | } 287 | result.unshift(loading); 288 | } else { 289 | updateSearchResults = function() {}; 290 | } 291 | response(result); 292 | } 293 | $(function() { 294 | $("#search-input").catcomplete({ 295 | minLength: 1, 296 | delay: 300, 297 | source: doSearch, 298 | response: function(event, ui) { 299 | if (!ui.content.length) { 300 | ui.content.push(noResult); 301 | } else { 302 | $("#search-input").empty(); 303 | } 304 | }, 305 | autoFocus: true, 306 | focus: function(event, ui) { 307 | return false; 308 | }, 309 | position: { 310 | collision: "flip" 311 | }, 312 | select: function(event, ui) { 313 | if (ui.item.category) { 314 | var url = getURLPrefix(ui); 315 | if (ui.item.category === catModules) { 316 | url += "module-summary.html"; 317 | } else if (ui.item.category === catPackages) { 318 | if (ui.item.u) { 319 | url = ui.item.u; 320 | } else { 321 | url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; 322 | } 323 | } else if (ui.item.category === catTypes) { 324 | if (ui.item.u) { 325 | url = ui.item.u; 326 | } else if (ui.item.p === UNNAMED) { 327 | url += ui.item.l + ".html"; 328 | } else { 329 | url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; 330 | } 331 | } else if (ui.item.category === catMembers) { 332 | if (ui.item.p === UNNAMED) { 333 | url += ui.item.c + ".html" + "#"; 334 | } else { 335 | url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; 336 | } 337 | if (ui.item.u) { 338 | url += ui.item.u; 339 | } else { 340 | url += ui.item.l; 341 | } 342 | } else if (ui.item.category === catSearchTags) { 343 | url += ui.item.u; 344 | } 345 | if (top !== window) { 346 | parent.classFrame.location = pathtoroot + url; 347 | } else { 348 | window.location.href = pathtoroot + url; 349 | } 350 | $("#search-input").focus(); 351 | } 352 | } 353 | }); 354 | }); 355 | -------------------------------------------------------------------------------- /docs/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Javadoc style sheet 3 | */ 4 | 5 | @import url('resources/fonts/dejavu.css'); 6 | 7 | /* 8 | * Styles for individual HTML elements. 9 | * 10 | * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular 11 | * HTML element throughout the page. 12 | */ 13 | 14 | body { 15 | background-color:#ffffff; 16 | color:#353833; 17 | font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; 18 | font-size:14px; 19 | margin:0; 20 | padding:0; 21 | height:100%; 22 | width:100%; 23 | } 24 | iframe { 25 | margin:0; 26 | padding:0; 27 | height:100%; 28 | width:100%; 29 | overflow-y:scroll; 30 | border:none; 31 | } 32 | a:link, a:visited { 33 | text-decoration:none; 34 | color:#4A6782; 35 | } 36 | a[href]:hover, a[href]:focus { 37 | text-decoration:none; 38 | color:#bb7a2a; 39 | } 40 | a[name] { 41 | color:#353833; 42 | } 43 | pre { 44 | font-family:'DejaVu Sans Mono', monospace; 45 | font-size:14px; 46 | } 47 | h1 { 48 | font-size:20px; 49 | } 50 | h2 { 51 | font-size:18px; 52 | } 53 | h3 { 54 | font-size:16px; 55 | } 56 | h4 { 57 | font-size:15px; 58 | } 59 | h5 { 60 | font-size:14px; 61 | } 62 | h6 { 63 | font-size:13px; 64 | } 65 | ul { 66 | list-style-type:disc; 67 | } 68 | code, tt { 69 | font-family:'DejaVu Sans Mono', monospace; 70 | } 71 | :not(h1, h2, h3, h4, h5, h6) > code, 72 | :not(h1, h2, h3, h4, h5, h6) > tt { 73 | font-size:14px; 74 | padding-top:4px; 75 | margin-top:8px; 76 | line-height:1.4em; 77 | } 78 | dt code { 79 | font-family:'DejaVu Sans Mono', monospace; 80 | font-size:14px; 81 | padding-top:4px; 82 | } 83 | .summary-table dt code { 84 | font-family:'DejaVu Sans Mono', monospace; 85 | font-size:14px; 86 | vertical-align:top; 87 | padding-top:4px; 88 | } 89 | sup { 90 | font-size:8px; 91 | } 92 | button { 93 | font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; 94 | font-size: 14px; 95 | } 96 | /* 97 | * Styles for HTML generated by javadoc. 98 | * 99 | * These are style classes that are used by the standard doclet to generate HTML documentation. 100 | */ 101 | 102 | /* 103 | * Styles for document title and copyright. 104 | */ 105 | .clear { 106 | clear:both; 107 | height:0; 108 | overflow:hidden; 109 | } 110 | .about-language { 111 | float:right; 112 | padding:0 21px 8px 8px; 113 | font-size:11px; 114 | margin-top:-9px; 115 | height:2.9em; 116 | } 117 | .legal-copy { 118 | margin-left:.5em; 119 | } 120 | .tab { 121 | background-color:#0066FF; 122 | color:#ffffff; 123 | padding:8px; 124 | width:5em; 125 | font-weight:bold; 126 | } 127 | /* 128 | * Styles for navigation bar. 129 | */ 130 | @media screen { 131 | .flex-box { 132 | position:fixed; 133 | display:flex; 134 | flex-direction:column; 135 | height: 100%; 136 | width: 100%; 137 | } 138 | .flex-header { 139 | flex: 0 0 auto; 140 | } 141 | .flex-content { 142 | flex: 1 1 auto; 143 | overflow-y: auto; 144 | } 145 | } 146 | .top-nav { 147 | background-color:#4D7A97; 148 | color:#FFFFFF; 149 | float:left; 150 | padding:0; 151 | width:100%; 152 | clear:right; 153 | min-height:2.8em; 154 | padding-top:10px; 155 | overflow:hidden; 156 | font-size:12px; 157 | } 158 | .sub-nav { 159 | background-color:#dee3e9; 160 | float:left; 161 | width:100%; 162 | overflow:hidden; 163 | font-size:12px; 164 | } 165 | .sub-nav div { 166 | clear:left; 167 | float:left; 168 | padding:0 0 5px 6px; 169 | text-transform:uppercase; 170 | } 171 | .sub-nav .nav-list { 172 | padding-top:5px; 173 | } 174 | ul.nav-list { 175 | display:block; 176 | margin:0 25px 0 0; 177 | padding:0; 178 | } 179 | ul.sub-nav-list { 180 | float:left; 181 | margin:0 25px 0 0; 182 | padding:0; 183 | } 184 | ul.nav-list li { 185 | list-style:none; 186 | float:left; 187 | padding: 5px 6px; 188 | text-transform:uppercase; 189 | } 190 | .sub-nav .nav-list-search { 191 | float:right; 192 | margin:0 0 0 0; 193 | padding:5px 6px; 194 | clear:none; 195 | } 196 | .nav-list-search label { 197 | position:relative; 198 | right:-16px; 199 | } 200 | ul.sub-nav-list li { 201 | list-style:none; 202 | float:left; 203 | padding-top:10px; 204 | } 205 | .top-nav a:link, .top-nav a:active, .top-nav a:visited { 206 | color:#FFFFFF; 207 | text-decoration:none; 208 | text-transform:uppercase; 209 | } 210 | .top-nav a:hover { 211 | text-decoration:none; 212 | color:#bb7a2a; 213 | text-transform:uppercase; 214 | } 215 | .nav-bar-cell1-rev { 216 | background-color:#F8981D; 217 | color:#253441; 218 | margin: auto 5px; 219 | } 220 | .skip-nav { 221 | position:absolute; 222 | top:auto; 223 | left:-9999px; 224 | overflow:hidden; 225 | } 226 | /* 227 | * Hide navigation links and search box in print layout 228 | */ 229 | @media print { 230 | ul.nav-list, div.sub-nav { 231 | display:none; 232 | } 233 | } 234 | /* 235 | * Styles for page header and footer. 236 | */ 237 | .title { 238 | color:#2c4557; 239 | margin:10px 0; 240 | } 241 | .sub-title { 242 | margin:5px 0 0 0; 243 | } 244 | .header ul { 245 | margin:0 0 15px 0; 246 | padding:0; 247 | } 248 | .header ul li, .footer ul li { 249 | list-style:none; 250 | font-size:13px; 251 | } 252 | /* 253 | * Styles for headings. 254 | */ 255 | body.class-declaration-page .summary h2, 256 | body.class-declaration-page .details h2, 257 | body.class-use-page h2, 258 | body.module-declaration-page .block-list h2 { 259 | font-style: italic; 260 | padding:0; 261 | margin:15px 0; 262 | } 263 | body.class-declaration-page .summary h3, 264 | body.class-declaration-page .details h3, 265 | body.class-declaration-page .summary .inherited-list h2 { 266 | background-color:#dee3e9; 267 | border:1px solid #d0d9e0; 268 | margin:0 0 6px -8px; 269 | padding:7px 5px; 270 | } 271 | /* 272 | * Styles for page layout containers. 273 | */ 274 | main { 275 | clear:both; 276 | padding:10px 20px; 277 | position:relative; 278 | } 279 | dl.notes > dt { 280 | font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; 281 | font-size:12px; 282 | font-weight:bold; 283 | margin:10px 0 0 0; 284 | color:#4E4E4E; 285 | } 286 | dl.notes > dd { 287 | margin:5px 10px 10px 0; 288 | font-size:14px; 289 | font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; 290 | } 291 | dl.name-value > dt { 292 | margin-left:1px; 293 | font-size:1.1em; 294 | display:inline; 295 | font-weight:bold; 296 | } 297 | dl.name-value > dd { 298 | margin:0 0 0 1px; 299 | font-size:1.1em; 300 | display:inline; 301 | } 302 | /* 303 | * Styles for lists. 304 | */ 305 | li.circle { 306 | list-style:circle; 307 | } 308 | ul.horizontal li { 309 | display:inline; 310 | font-size:0.9em; 311 | } 312 | div.inheritance { 313 | margin:0; 314 | padding:0; 315 | } 316 | div.inheritance div.inheritance { 317 | margin-left:2em; 318 | } 319 | ul.block-list, 320 | ul.details-list, 321 | ul.member-list, 322 | ul.summary-list { 323 | margin:10px 0 10px 0; 324 | padding:0; 325 | } 326 | ul.block-list > li, 327 | ul.details-list > li, 328 | ul.member-list > li, 329 | ul.summary-list > li { 330 | list-style:none; 331 | margin-bottom:15px; 332 | line-height:1.4; 333 | } 334 | .summary-table dl, .summary-table dl dt, .summary-table dl dd { 335 | margin-top:0; 336 | margin-bottom:1px; 337 | } 338 | ul.see-list, ul.see-list-long { 339 | padding-left: 0; 340 | list-style: none; 341 | } 342 | ul.see-list li { 343 | display: inline; 344 | } 345 | ul.see-list li:not(:last-child):after, 346 | ul.see-list-long li:not(:last-child):after { 347 | content: ", "; 348 | white-space: pre-wrap; 349 | } 350 | /* 351 | * Styles for tables. 352 | */ 353 | .summary-table, .details-table { 354 | width:100%; 355 | border-spacing:0; 356 | border-left:1px solid #EEE; 357 | border-right:1px solid #EEE; 358 | border-bottom:1px solid #EEE; 359 | padding:0; 360 | } 361 | .caption { 362 | position:relative; 363 | text-align:left; 364 | background-repeat:no-repeat; 365 | color:#253441; 366 | font-weight:bold; 367 | clear:none; 368 | overflow:hidden; 369 | padding:0; 370 | padding-top:10px; 371 | padding-left:1px; 372 | margin:0; 373 | white-space:pre; 374 | } 375 | .caption a:link, .caption a:visited { 376 | color:#1f389c; 377 | } 378 | .caption a:hover, 379 | .caption a:active { 380 | color:#FFFFFF; 381 | } 382 | .caption span { 383 | white-space:nowrap; 384 | padding-top:5px; 385 | padding-left:12px; 386 | padding-right:12px; 387 | padding-bottom:7px; 388 | display:inline-block; 389 | float:left; 390 | background-color:#F8981D; 391 | border: none; 392 | height:16px; 393 | } 394 | div.table-tabs { 395 | padding:10px 0 0 1px; 396 | margin:0; 397 | } 398 | div.table-tabs > button { 399 | border: none; 400 | cursor: pointer; 401 | padding: 5px 12px 7px 12px; 402 | font-weight: bold; 403 | margin-right: 3px; 404 | } 405 | div.table-tabs > button.active-table-tab { 406 | background: #F8981D; 407 | color: #253441; 408 | } 409 | div.table-tabs > button.table-tab { 410 | background: #4D7A97; 411 | color: #FFFFFF; 412 | } 413 | .two-column-summary { 414 | display: grid; 415 | grid-template-columns: minmax(15%, max-content) minmax(15%, auto); 416 | } 417 | .three-column-summary { 418 | display: grid; 419 | grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, auto); 420 | } 421 | .four-column-summary { 422 | display: grid; 423 | grid-template-columns: minmax(10%, max-content) minmax(10%, max-content) minmax(10%, max-content) minmax(10%, auto); 424 | } 425 | @media screen and (max-width: 600px) { 426 | .two-column-summary { 427 | display: grid; 428 | grid-template-columns: 1fr; 429 | } 430 | } 431 | @media screen and (max-width: 800px) { 432 | .three-column-summary { 433 | display: grid; 434 | grid-template-columns: minmax(10%, max-content) minmax(25%, auto); 435 | } 436 | .three-column-summary .col-last { 437 | grid-column-end: span 2; 438 | } 439 | } 440 | @media screen and (max-width: 1000px) { 441 | .four-column-summary { 442 | display: grid; 443 | grid-template-columns: minmax(15%, max-content) minmax(15%, auto); 444 | } 445 | } 446 | .summary-table > div, .details-table > div { 447 | text-align:left; 448 | padding: 8px 3px 3px 7px; 449 | } 450 | .col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { 451 | vertical-align:top; 452 | padding-right:0; 453 | padding-top:8px; 454 | padding-bottom:3px; 455 | } 456 | .table-header { 457 | background:#dee3e9; 458 | font-weight: bold; 459 | } 460 | .col-first, .col-first { 461 | font-size:13px; 462 | } 463 | .col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { 464 | font-size:13px; 465 | } 466 | .col-first, .col-second, .col-constructor-name { 467 | vertical-align:top; 468 | overflow: auto; 469 | } 470 | .col-last { 471 | white-space:normal; 472 | } 473 | .col-first a:link, .col-first a:visited, 474 | .col-second a:link, .col-second a:visited, 475 | .col-first a:link, .col-first a:visited, 476 | .col-second a:link, .col-second a:visited, 477 | .col-constructor-name a:link, .col-constructor-name a:visited, 478 | .col-summary-item-name a:link, .col-summary-item-name a:visited, 479 | .constant-values-container a:link, .constant-values-container a:visited, 480 | .all-classes-container a:link, .all-classes-container a:visited, 481 | .all-packages-container a:link, .all-packages-container a:visited { 482 | font-weight:bold; 483 | } 484 | .table-sub-heading-color { 485 | background-color:#EEEEFF; 486 | } 487 | .even-row-color, .even-row-color .table-header { 488 | background-color:#FFFFFF; 489 | } 490 | .odd-row-color, .odd-row-color .table-header { 491 | background-color:#EEEEEF; 492 | } 493 | /* 494 | * Styles for contents. 495 | */ 496 | .deprecated-content { 497 | margin:0; 498 | padding:10px 0; 499 | } 500 | div.block { 501 | font-size:14px; 502 | font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; 503 | } 504 | .col-last div { 505 | padding-top:0; 506 | } 507 | .col-last a { 508 | padding-bottom:3px; 509 | } 510 | .module-signature, 511 | .package-signature, 512 | .type-signature, 513 | .member-signature { 514 | font-family:'DejaVu Sans Mono', monospace; 515 | font-size:14px; 516 | margin:14px 0; 517 | white-space: pre-wrap; 518 | } 519 | .module-signature, 520 | .package-signature, 521 | .type-signature { 522 | margin-top: 0; 523 | } 524 | .member-signature .type-parameters-long, 525 | .member-signature .parameters, 526 | .member-signature .exceptions { 527 | display: inline-block; 528 | vertical-align: top; 529 | white-space: pre; 530 | } 531 | .member-signature .type-parameters { 532 | white-space: normal; 533 | } 534 | /* 535 | * Styles for formatting effect. 536 | */ 537 | .source-line-no { 538 | color:green; 539 | padding:0 30px 0 0; 540 | } 541 | h1.hidden { 542 | visibility:hidden; 543 | overflow:hidden; 544 | font-size:10px; 545 | } 546 | .block { 547 | display:block; 548 | margin:0 10px 5px 0; 549 | color:#474747; 550 | } 551 | .deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, 552 | .module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, 553 | .package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { 554 | font-weight:bold; 555 | } 556 | .deprecation-comment, .help-footnote, .preview-comment { 557 | font-style:italic; 558 | } 559 | .deprecation-block { 560 | font-size:14px; 561 | font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; 562 | border-style:solid; 563 | border-width:thin; 564 | border-radius:10px; 565 | padding:10px; 566 | margin-bottom:10px; 567 | margin-right:10px; 568 | display:inline-block; 569 | } 570 | .preview-block { 571 | font-size:14px; 572 | font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; 573 | border-style:solid; 574 | border-width:thin; 575 | border-radius:10px; 576 | padding:10px; 577 | margin-bottom:10px; 578 | margin-right:10px; 579 | display:inline-block; 580 | } 581 | div.block div.deprecation-comment { 582 | font-style:normal; 583 | } 584 | /* 585 | * Styles specific to HTML5 elements. 586 | */ 587 | main, nav, header, footer, section { 588 | display:block; 589 | } 590 | /* 591 | * Styles for javadoc search. 592 | */ 593 | .ui-autocomplete-category { 594 | font-weight:bold; 595 | font-size:15px; 596 | padding:7px 0 7px 3px; 597 | background-color:#4D7A97; 598 | color:#FFFFFF; 599 | } 600 | .result-item { 601 | font-size:13px; 602 | } 603 | .ui-autocomplete { 604 | max-height:85%; 605 | max-width:65%; 606 | overflow-y:scroll; 607 | overflow-x:scroll; 608 | white-space:nowrap; 609 | box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); 610 | } 611 | ul.ui-autocomplete { 612 | position:fixed; 613 | z-index:999999; 614 | background-color: #FFFFFF; 615 | } 616 | ul.ui-autocomplete li { 617 | float:left; 618 | clear:both; 619 | width:100%; 620 | } 621 | .result-highlight { 622 | font-weight:bold; 623 | } 624 | .ui-autocomplete .result-item { 625 | font-size: inherit; 626 | } 627 | #search-input { 628 | background-image:url('resources/glass.png'); 629 | background-size:13px; 630 | background-repeat:no-repeat; 631 | background-position:2px 3px; 632 | padding-left:20px; 633 | position:relative; 634 | right:-18px; 635 | width:400px; 636 | } 637 | #reset-button { 638 | background-color: rgb(255,255,255); 639 | background-image:url('resources/x.png'); 640 | background-position:center; 641 | background-repeat:no-repeat; 642 | background-size:12px; 643 | border:0 none; 644 | width:16px; 645 | height:16px; 646 | position:relative; 647 | left:-4px; 648 | top:-4px; 649 | font-size:0px; 650 | } 651 | .watermark { 652 | color:#545454; 653 | } 654 | .search-tag-desc-result { 655 | font-style:italic; 656 | font-size:11px; 657 | } 658 | .search-tag-holder-result { 659 | font-style:italic; 660 | font-size:12px; 661 | } 662 | .search-tag-result:target { 663 | background-color:yellow; 664 | } 665 | .module-graph span { 666 | display:none; 667 | position:absolute; 668 | } 669 | .module-graph:hover span { 670 | display:block; 671 | margin: -100px 0 0 100px; 672 | z-index: 1; 673 | } 674 | .inherited-list { 675 | margin: 10px 0 10px 0; 676 | } 677 | section.class-description { 678 | line-height: 1.4; 679 | } 680 | .summary section[class$="-summary"], .details section[class$="-details"], 681 | .class-uses .detail, .serialized-class-details { 682 | padding: 0px 20px 5px 10px; 683 | border: 1px solid #ededed; 684 | background-color: #f8f8f8; 685 | } 686 | .inherited-list, section[class$="-details"] .detail { 687 | padding:0 0 5px 8px; 688 | background-color:#ffffff; 689 | border:none; 690 | } 691 | .vertical-separator { 692 | padding: 0 5px; 693 | } 694 | ul.help-section-list { 695 | margin: 0; 696 | } 697 | ul.help-subtoc > li { 698 | display: inline-block; 699 | padding-right: 5px; 700 | font-size: smaller; 701 | } 702 | ul.help-subtoc > li::before { 703 | content: "\2022" ; 704 | padding-right:2px; 705 | } 706 | span.help-note { 707 | font-style: italic; 708 | } 709 | /* 710 | * Indicator icon for external links. 711 | */ 712 | main a[href*="://"]::after { 713 | content:""; 714 | display:inline-block; 715 | background-image:url('data:image/svg+xml; utf8, \ 716 | \ 717 | \ 719 | '); 720 | background-size:100% 100%; 721 | width:7px; 722 | height:7px; 723 | margin-left:2px; 724 | margin-bottom:4px; 725 | } 726 | main a[href*="://"]:hover::after, 727 | main a[href*="://"]:focus::after { 728 | background-image:url('data:image/svg+xml; utf8, \ 729 | \ 730 | \ 732 | '); 733 | } 734 | 735 | /* 736 | * Styles for user-provided tables. 737 | * 738 | * borderless: 739 | * No borders, vertical margins, styled caption. 740 | * This style is provided for use with existing doc comments. 741 | * In general, borderless tables should not be used for layout purposes. 742 | * 743 | * plain: 744 | * Plain borders around table and cells, vertical margins, styled caption. 745 | * Best for small tables or for complex tables for tables with cells that span 746 | * rows and columns, when the "striped" style does not work well. 747 | * 748 | * striped: 749 | * Borders around the table and vertical borders between cells, striped rows, 750 | * vertical margins, styled caption. 751 | * Best for tables that have a header row, and a body containing a series of simple rows. 752 | */ 753 | 754 | table.borderless, 755 | table.plain, 756 | table.striped { 757 | margin-top: 10px; 758 | margin-bottom: 10px; 759 | } 760 | table.borderless > caption, 761 | table.plain > caption, 762 | table.striped > caption { 763 | font-weight: bold; 764 | font-size: smaller; 765 | } 766 | table.borderless th, table.borderless td, 767 | table.plain th, table.plain td, 768 | table.striped th, table.striped td { 769 | padding: 2px 5px; 770 | } 771 | table.borderless, 772 | table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, 773 | table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { 774 | border: none; 775 | } 776 | table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { 777 | background-color: transparent; 778 | } 779 | table.plain { 780 | border-collapse: collapse; 781 | border: 1px solid black; 782 | } 783 | table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { 784 | background-color: transparent; 785 | } 786 | table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, 787 | table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { 788 | border: 1px solid black; 789 | } 790 | table.striped { 791 | border-collapse: collapse; 792 | border: 1px solid black; 793 | } 794 | table.striped > thead { 795 | background-color: #E3E3E3; 796 | } 797 | table.striped > thead > tr > th, table.striped > thead > tr > td { 798 | border: 1px solid black; 799 | } 800 | table.striped > tbody > tr:nth-child(even) { 801 | background-color: #EEE 802 | } 803 | table.striped > tbody > tr:nth-child(odd) { 804 | background-color: #FFF 805 | } 806 | table.striped > tbody > tr > th, table.striped > tbody > tr > td { 807 | border-left: 1px solid black; 808 | border-right: 1px solid black; 809 | } 810 | table.striped > tbody > tr > th { 811 | font-weight: normal; 812 | } 813 | /** 814 | * Tweak font sizes and paddings for small screens. 815 | */ 816 | @media screen and (max-width: 1050px) { 817 | #search-input { 818 | width: 300px; 819 | } 820 | } 821 | @media screen and (max-width: 800px) { 822 | #search-input { 823 | width: 200px; 824 | } 825 | .top-nav, 826 | .bottom-nav { 827 | font-size: 11px; 828 | padding-top: 6px; 829 | } 830 | .sub-nav { 831 | font-size: 11px; 832 | } 833 | .about-language { 834 | padding-right: 16px; 835 | } 836 | ul.nav-list li, 837 | .sub-nav .nav-list-search { 838 | padding: 6px; 839 | } 840 | ul.sub-nav-list li { 841 | padding-top: 5px; 842 | } 843 | main { 844 | padding: 10px; 845 | } 846 | .summary section[class$="-summary"], .details section[class$="-details"], 847 | .class-uses .detail, .serialized-class-details { 848 | padding: 0 8px 5px 8px; 849 | } 850 | body { 851 | -webkit-text-size-adjust: none; 852 | } 853 | } 854 | @media screen and (max-width: 500px) { 855 | #search-input { 856 | width: 150px; 857 | } 858 | .top-nav, 859 | .bottom-nav { 860 | font-size: 10px; 861 | } 862 | .sub-nav { 863 | font-size: 10px; 864 | } 865 | .about-language { 866 | font-size: 10px; 867 | padding-right: 12px; 868 | } 869 | } 870 | -------------------------------------------------------------------------------- /docs/tag-search-index.js: -------------------------------------------------------------------------------- 1 | tagSearchIndex = [];updateSearchResults(); -------------------------------------------------------------------------------- /docs/type-search-index.js: -------------------------------------------------------------------------------- 1 | typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"day.dean.skullcreator","l":"SkullCreator"}];updateSearchResults(); -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | day.dean 8 | skullcreator 9 | 3.0.1 10 | 11 | 12 | 13 | spigot-repo 14 | https://hub.spigotmc.org/nexus/content/repositories/snapshots/ 15 | 16 | 17 | minecraft-repo 18 | https://libraries.minecraft.net/ 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | org.bukkit 27 | bukkit 28 | 1.12.2-R0.1-SNAPSHOT 29 | provided 30 | 31 | 32 | com.mojang 33 | authlib 34 | 1.5.21 35 | provided 36 | 37 | 38 | 39 | 40 | 41 | 42 | src/main/resources 43 | true 44 | 45 | 46 | 47 | 48 | 49 | maven-deploy-plugin 50 | 2.8.2 51 | 52 | internal.repo::default::file://${project.build.directory}/mvn-repo 53 | 54 | 55 | 56 | 57 | 58 | org.apache.maven.plugins 59 | maven-compiler-plugin 60 | 3.8.1 61 | 62 | 1.8 63 | 1.8 64 | 65 | 66 | 67 | 68 | 69 | org.apache.maven.plugins 70 | maven-source-plugin 71 | 3.0.1 72 | 73 | 74 | attach-sources 75 | verify 76 | 77 | jar-no-fork 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | org.apache.maven.plugins 86 | maven-javadoc-plugin 87 | 3.2.0 88 | 89 | 90 | https://hub.spigotmc.org/javadocs/spigot/ 91 | 92 | 93 | SkullCreator.java 94 | 95 | ${basedir}/src/main/java/day/dean/skullcreator 96 | ${project.basedir} 97 | docs 98 | 8 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | internal.repo 107 | Temporary Staging Repository 108 | file://${project.build.directory}/mvn-repo 109 | 110 | 111 | 112 | 113 | github 114 | 115 | -------------------------------------------------------------------------------- /src/main/java/day/dean/skullcreator/SkullCreator.java: -------------------------------------------------------------------------------- 1 | package day.dean.skullcreator; 2 | 3 | // Copyright (c) 2017 deanveloper (see LICENSE.md for more info) 4 | 5 | import com.mojang.authlib.GameProfile; 6 | import com.mojang.authlib.properties.Property; 7 | import org.bukkit.Bukkit; 8 | import org.bukkit.Material; 9 | import org.bukkit.SkullType; 10 | import org.bukkit.block.Block; 11 | import org.bukkit.block.Skull; 12 | import org.bukkit.inventory.ItemStack; 13 | import org.bukkit.inventory.meta.SkullMeta; 14 | 15 | import java.lang.reflect.Field; 16 | import java.lang.reflect.InvocationTargetException; 17 | import java.lang.reflect.Method; 18 | import java.net.URI; 19 | import java.net.URISyntaxException; 20 | import java.util.Base64; 21 | import java.util.UUID; 22 | 23 | /** 24 | * A library for the Bukkit API to create player skulls 25 | * from names, base64 strings, and texture URLs. 26 | *

    27 | * Does not use any NMS code, and should work across all versions. 28 | * 29 | * @author deanveloper on 12/28/2016. 30 | */ 31 | public class SkullCreator { 32 | 33 | private SkullCreator() {} 34 | 35 | private static boolean warningPosted = false; 36 | 37 | // some reflection stuff to be used when setting a skull's profile 38 | private static Field blockProfileField; 39 | private static Method metaSetProfileMethod; 40 | private static Field metaProfileField; 41 | 42 | /** 43 | * Creates a player skull, should work in both legacy and new Bukkit APIs. 44 | */ 45 | public static ItemStack createSkull() { 46 | checkLegacy(); 47 | 48 | try { 49 | return new ItemStack(Material.valueOf("PLAYER_HEAD")); 50 | } catch (IllegalArgumentException e) { 51 | return new ItemStack(Material.valueOf("SKULL_ITEM"), 1, (byte) 3); 52 | } 53 | } 54 | 55 | /** 56 | * Creates a player skull item with the skin based on a player's name. 57 | * 58 | * @param name The Player's name. 59 | * @return The head of the Player. 60 | * @deprecated names don't make for good identifiers. 61 | */ 62 | public static ItemStack itemFromName(String name) { 63 | return itemWithName(createSkull(), name); 64 | } 65 | 66 | /** 67 | * Creates a player skull item with the skin based on a player's UUID. 68 | * 69 | * @param id The Player's UUID. 70 | * @return The head of the Player. 71 | */ 72 | public static ItemStack itemFromUuid(UUID id) { 73 | return itemWithUuid(createSkull(), id); 74 | } 75 | 76 | /** 77 | * Creates a player skull item with the skin at a Mojang URL. 78 | * 79 | * @param url The Mojang URL. 80 | * @return The head of the Player. 81 | */ 82 | public static ItemStack itemFromUrl(String url) { 83 | return itemWithUrl(createSkull(), url); 84 | } 85 | 86 | /** 87 | * Creates a player skull item with the skin based on a base64 string. 88 | * 89 | * @param base64 The Base64 string. 90 | * @return The head of the Player. 91 | */ 92 | public static ItemStack itemFromBase64(String base64) { 93 | return itemWithBase64(createSkull(), base64); 94 | } 95 | 96 | /** 97 | * Modifies a skull to use the skin of the player with a given name. 98 | * 99 | * @param item The item to apply the name to. Must be a player skull. 100 | * @param name The Player's name. 101 | * @return The head of the Player. 102 | * @deprecated names don't make for good identifiers. 103 | */ 104 | @Deprecated 105 | public static ItemStack itemWithName(ItemStack item, String name) { 106 | notNull(item, "item"); 107 | notNull(name, "name"); 108 | 109 | SkullMeta meta = (SkullMeta) item.getItemMeta(); 110 | meta.setOwner(name); 111 | item.setItemMeta(meta); 112 | 113 | return item; 114 | } 115 | 116 | /** 117 | * Modifies a skull to use the skin of the player with a given UUID. 118 | * 119 | * @param item The item to apply the name to. Must be a player skull. 120 | * @param id The Player's UUID. 121 | * @return The head of the Player. 122 | */ 123 | public static ItemStack itemWithUuid(ItemStack item, UUID id) { 124 | notNull(item, "item"); 125 | notNull(id, "id"); 126 | 127 | SkullMeta meta = (SkullMeta) item.getItemMeta(); 128 | meta.setOwningPlayer(Bukkit.getOfflinePlayer(id)); 129 | item.setItemMeta(meta); 130 | 131 | return item; 132 | } 133 | 134 | /** 135 | * Modifies a skull to use the skin at the given Mojang URL. 136 | * 137 | * @param item The item to apply the skin to. Must be a player skull. 138 | * @param url The URL of the Mojang skin. 139 | * @return The head associated with the URL. 140 | */ 141 | public static ItemStack itemWithUrl(ItemStack item, String url) { 142 | notNull(item, "item"); 143 | notNull(url, "url"); 144 | 145 | return itemWithBase64(item, urlToBase64(url)); 146 | } 147 | 148 | /** 149 | * Modifies a skull to use the skin based on the given base64 string. 150 | * 151 | * @param item The ItemStack to put the base64 onto. Must be a player skull. 152 | * @param base64 The base64 string containing the texture. 153 | * @return The head with a custom texture. 154 | */ 155 | public static ItemStack itemWithBase64(ItemStack item, String base64) { 156 | notNull(item, "item"); 157 | notNull(base64, "base64"); 158 | 159 | if (!(item.getItemMeta() instanceof SkullMeta)) { 160 | return null; 161 | } 162 | SkullMeta meta = (SkullMeta) item.getItemMeta(); 163 | mutateItemMeta(meta, base64); 164 | item.setItemMeta(meta); 165 | 166 | return item; 167 | } 168 | 169 | /** 170 | * Sets the block to a skull with the given name. 171 | * 172 | * @param block The block to set. 173 | * @param name The player to set it to. 174 | * @deprecated names don't make for good identifiers. 175 | */ 176 | @Deprecated 177 | public static void blockWithName(Block block, String name) { 178 | notNull(block, "block"); 179 | notNull(name, "name"); 180 | 181 | Skull state = (Skull) block.getState(); 182 | state.setOwningPlayer(Bukkit.getOfflinePlayer(name)); 183 | state.update(false, false); 184 | } 185 | 186 | /** 187 | * Sets the block to a skull with the given UUID. 188 | * 189 | * @param block The block to set. 190 | * @param id The player to set it to. 191 | */ 192 | public static void blockWithUuid(Block block, UUID id) { 193 | notNull(block, "block"); 194 | notNull(id, "id"); 195 | 196 | setToSkull(block); 197 | Skull state = (Skull) block.getState(); 198 | state.setOwningPlayer(Bukkit.getOfflinePlayer(id)); 199 | state.update(false, false); 200 | } 201 | 202 | /** 203 | * Sets the block to a skull with the skin found at the provided mojang URL. 204 | * 205 | * @param block The block to set. 206 | * @param url The mojang URL to set it to use. 207 | */ 208 | public static void blockWithUrl(Block block, String url) { 209 | notNull(block, "block"); 210 | notNull(url, "url"); 211 | 212 | blockWithBase64(block, urlToBase64(url)); 213 | } 214 | 215 | /** 216 | * Sets the block to a skull with the skin for the base64 string. 217 | * 218 | * @param block The block to set. 219 | * @param base64 The base64 to set it to use. 220 | */ 221 | public static void blockWithBase64(Block block, String base64) { 222 | notNull(block, "block"); 223 | notNull(base64, "base64"); 224 | 225 | setToSkull(block); 226 | Skull state = (Skull) block.getState(); 227 | mutateBlockState(state, base64); 228 | state.update(false, false); 229 | } 230 | 231 | private static void setToSkull(Block block) { 232 | checkLegacy(); 233 | 234 | try { 235 | block.setType(Material.valueOf("PLAYER_HEAD"), false); 236 | } catch (IllegalArgumentException e) { 237 | block.setType(Material.valueOf("SKULL"), false); 238 | Skull state = (Skull) block.getState(); 239 | state.setSkullType(SkullType.PLAYER); 240 | state.update(false, false); 241 | } 242 | } 243 | 244 | private static void notNull(Object o, String name) { 245 | if (o == null) { 246 | throw new NullPointerException(name + " should not be null!"); 247 | } 248 | } 249 | 250 | private static String urlToBase64(String url) { 251 | 252 | URI actualUrl; 253 | try { 254 | actualUrl = new URI(url); 255 | } catch (URISyntaxException e) { 256 | throw new RuntimeException(e); 257 | } 258 | String toEncode = "{\"textures\":{\"SKIN\":{\"url\":\"" + actualUrl.toString() + "\"}}}"; 259 | return Base64.getEncoder().encodeToString(toEncode.getBytes()); 260 | } 261 | 262 | private static GameProfile makeProfile(String b64) { 263 | // random uuid based on the b64 string 264 | UUID id = new UUID( 265 | b64.substring(b64.length() - 20).hashCode(), 266 | b64.substring(b64.length() - 10).hashCode() 267 | ); 268 | GameProfile profile = new GameProfile(id, "Player"); 269 | profile.getProperties().put("textures", new Property("textures", b64)); 270 | return profile; 271 | } 272 | 273 | private static void mutateBlockState(Skull block, String b64) { 274 | try { 275 | if (blockProfileField == null) { 276 | blockProfileField = block.getClass().getDeclaredField("profile"); 277 | blockProfileField.setAccessible(true); 278 | } 279 | blockProfileField.set(block, makeProfile(b64)); 280 | } catch (NoSuchFieldException | IllegalAccessException e) { 281 | e.printStackTrace(); 282 | } 283 | } 284 | 285 | private static void mutateItemMeta(SkullMeta meta, String b64) { 286 | try { 287 | if (metaSetProfileMethod == null) { 288 | metaSetProfileMethod = meta.getClass().getDeclaredMethod("setProfile", GameProfile.class); 289 | metaSetProfileMethod.setAccessible(true); 290 | } 291 | metaSetProfileMethod.invoke(meta, makeProfile(b64)); 292 | } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { 293 | // if in an older API where there is no setProfile method, 294 | // we set the profile field directly. 295 | try { 296 | if (metaProfileField == null) { 297 | metaProfileField = meta.getClass().getDeclaredField("profile"); 298 | metaProfileField.setAccessible(true); 299 | } 300 | metaProfileField.set(meta, makeProfile(b64)); 301 | 302 | } catch (NoSuchFieldException | IllegalAccessException ex2) { 303 | ex2.printStackTrace(); 304 | } 305 | } 306 | } 307 | 308 | // suppress warning since PLAYER_HEAD doesn't exist in 1.12.2, 309 | // but we expect this and catch the error at runtime. 310 | @SuppressWarnings("JavaReflectionMemberAccess") 311 | private static void checkLegacy() { 312 | try { 313 | // if both of these succeed, then we are running 314 | // in a legacy api, but on a modern (1.13+) server. 315 | Material.class.getDeclaredField("PLAYER_HEAD"); 316 | Material.valueOf("SKULL"); 317 | 318 | if (!warningPosted) { 319 | Bukkit.getLogger().warning("SKULLCREATOR API - Using the legacy bukkit API with 1.13+ bukkit versions is not supported!"); 320 | warningPosted = true; 321 | } 322 | } catch (NoSuchFieldException | IllegalArgumentException ignored) {} 323 | } 324 | } 325 | -------------------------------------------------------------------------------- /src/main/java/day/dean/skullcreator/SkullCreatorTesterPlugin.java: -------------------------------------------------------------------------------- 1 | package day.dean.skullcreator; 2 | 3 | import org.bukkit.Bukkit; 4 | import org.bukkit.command.Command; 5 | import org.bukkit.command.CommandSender; 6 | import org.bukkit.entity.Player; 7 | import org.bukkit.inventory.ItemStack; 8 | import org.bukkit.plugin.java.JavaPlugin; 9 | 10 | /** 11 | * @author deanveloper on 12/28/2016. 12 | */ 13 | public class SkullCreatorTesterPlugin extends JavaPlugin { 14 | 15 | private static final String TEST_SKULL = "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDllY2NjNWMxYzc5YWE3ODI2YTE1YTdmNWYxMmZiNDAzMjgxNTdjNTI0MjE2NGJhMmFlZjQ3ZTVkZTlhNWNmYyJ9fX0="; 16 | 17 | @Override 18 | public void onEnable() { 19 | if (!getDescription().getVersion().endsWith("SNAPSHOT")) { 20 | throw new IllegalStateException("This is not intended to run as a plugin!"); 21 | } else { 22 | Bukkit.getLogger().info("Loaded!"); 23 | } 24 | } 25 | 26 | @Override 27 | public boolean onCommand(CommandSender sender, Command command, String lbl, String[] args) { 28 | Player p = (Player) sender; 29 | 30 | if (args[0].equals("item")) { 31 | p.getInventory().setItemInMainHand( 32 | SkullCreator.itemWithBase64(SkullCreator.createSkull(), TEST_SKULL) 33 | ); 34 | } else if (args[0].equals("block")) { 35 | SkullCreator.blockWithBase64(p.getLocation().getBlock(), TEST_SKULL); 36 | } 37 | 38 | return true; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/resources/plugin.yml: -------------------------------------------------------------------------------- 1 | main: day.dean.skullcreator.SkullCreatorTesterPlugin 2 | author: deanveloper 3 | version: 0 4 | name: SkullCreatorTest 5 | api-version: "1.13" 6 | commands: 7 | testskull: 8 | description: "lol what" --------------------------------------------------------------------------------