MCPcopy Create free account
hub / github.com/Java-Discord/JavaBot / addComponentHandler

Method addComponentHandler

src/main/java/net/discordjug/javabot/Bot.java:127–131  ·  view source on GitHub ↗
(List<IdMapping<T>> handlers, String[] keys, Object handler, @NotNull Class<T> type)

Source from the content-addressed store, hash-verified

125 }
126
127 private <T> void addComponentHandler(List<IdMapping<T>> handlers, String[] keys, Object handler, @NotNull Class<T> type) {
128 if (type.isInstance(handler)) {
129 handlers.add(IdMapping.of(type.cast(handler), keys));
130 }
131 }
132}
133

Callers 1

Calls 1

ofMethod · 0.45

Tested by

no test coverage detected