mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-22 11:45:47 +01:00
test protocol
This commit is contained in:
parent
d2ce6f141b
commit
8d18fa53de
@ -39,6 +39,8 @@ import net.fabricmc.fabric.events.ServerEvent;
|
||||
import net.fabricmc.loader.FabricLoader;
|
||||
import us.myles.ViaVersion.ViaManager;
|
||||
import us.myles.ViaVersion.api.Via;
|
||||
import us.myles.ViaVersion.api.data.UserConnection;
|
||||
import us.myles.ViaVersion.api.protocol.Protocol;
|
||||
import us.myles.ViaVersion.api.protocol.ProtocolRegistry;
|
||||
import us.myles.ViaVersion.api.protocol.ProtocolVersion;
|
||||
|
||||
@ -55,6 +57,17 @@ public class VRViaVersionInitializer {
|
||||
Via.getManager().init();
|
||||
ProtocolRegistry.registerProtocol(new Protocol1_7_6_10to1_7_1_5(), Collections.singletonList(ProtocolVersion.v1_7_6.getId()), ProtocolVersion.v1_7_1.getId());
|
||||
ProtocolRegistry.registerProtocol(new Protocol1_8TO1_7_6_10(), Collections.singletonList(ProtocolVersion.v1_8.getId()), ProtocolVersion.v1_7_6.getId());
|
||||
ProtocolRegistry.registerProtocol(new Protocol() {
|
||||
@Override
|
||||
protected void registerPackets() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(UserConnection userConnection) {
|
||||
|
||||
}
|
||||
}, Collections.singletonList(459), 458); // todo remove test
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user