MCPcopy Create free account
hub / github.com/boxbeam/RedLib / getInstance

Method getInstance

src/redempt/redlib/RedLib.java:52–54  ·  view source on GitHub ↗

@return An instance of RedLib if it is a plugin dependency, or your plugin if RedLib is shaded

()

Source from the content-addressed store, hash-verified

50 * @return An instance of RedLib if it is a plugin dependency, or your plugin if RedLib is shaded
51 */
52 public static Plugin getInstance() {
53 return redLib != null ? redLib : JavaPlugin.getProvidingPlugin(RedLib.class);
54 }
55
56 private static int getMidVersion() {
57 Pattern pattern = Pattern.compile("1\\.([0-9]+)");

Callers 15

registerMethod · 0.95
checkMethod · 0.95
registerMethod · 0.95
checkMethod · 0.95
buildAsyncMethod · 0.95
setCommitIntervalMethod · 0.95
enableMethod · 0.95
exportMethod · 0.95
startMethod · 0.95
InventoryGUIMethod · 0.95
onClickMethod · 0.95
delayedTeleportMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected