MCPcopy Create free account
hub / github.com/demoth/jake2 / register

Method register

client/src/main/java/jake2/client/sound/S.java:82–89  ·  view source on GitHub ↗

Registers a new Sound Implementor.

(Sound driver)

Source from the content-addressed store, hash-verified

80 * Registers a new Sound Implementor.
81 */
82 public static void register(Sound driver) {
83 if (driver == null) {
84 throw new IllegalArgumentException("Sound implementation can't be null");
85 }
86 if (!drivers.contains(driver)) {
87 drivers.add(driver);
88 }
89 }
90
91 /**
92 * Switches to the specific sound driver.

Callers 2

DummyDriverClass · 0.95
LWJGLSoundImplClass · 0.95

Calls 1

addMethod · 0.45

Tested by

no test coverage detected