mirror of https://github.com/LOOHP/Limbo.git
Name methods better
This commit is contained in:
parent
ea7d33a0e3
commit
31b3a954a2
|
|
@ -38,15 +38,15 @@ public class Channel implements AutoCloseable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addBefore(NamespacedKey key, ChannelPacketHandler handler) {
|
public void addHandlerBefore(NamespacedKey key, ChannelPacketHandler handler) {
|
||||||
handlers.add(0, new Pair<>(key, handler));
|
handlers.add(0, new Pair<>(key, handler));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addAfter(NamespacedKey key, ChannelPacketHandler handler) {
|
public void addHandlerAfter(NamespacedKey key, ChannelPacketHandler handler) {
|
||||||
handlers.add(new Pair<>(key, handler));
|
handlers.add(new Pair<>(key, handler));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove(NamespacedKey key) {
|
public void removeHandler(NamespacedKey key) {
|
||||||
handlers.removeIf(each -> each.getFirst().equals(key));
|
handlers.removeIf(each -> each.getFirst().equals(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue