mirror of
https://github.com/ViaVersion/ViaLoader.git
synced 2024-11-12 10:23:55 +01:00
Added 1.20 version
This commit is contained in:
parent
8f6fa24721
commit
738c2f820a
@ -37,12 +37,12 @@ To include ViaLegacy and ViaAprilFools, you can look at their READMEs: [ViaLegac
|
||||
|
||||
Here is an example dependency configuration for all components:
|
||||
```groovy
|
||||
implementation "com.viaversion:viaversion:4.6.0-1.19.4-rc2-SNAPSHOT"
|
||||
implementation("com.viaversion:viabackwards-common:4.6.0-1.19.4-pre4-SNAPSHOT") {
|
||||
implementation "com.viaversion:viaversion:4.7.0-23w12a-SNAPSHOT"
|
||||
implementation("com.viaversion:viabackwards-common:4.7.0-23w12a-SNAPSHOT") {
|
||||
exclude group: "com.viaversion", module: "viaversion" // Exclude transitive dependency. Include manually for more control
|
||||
exclude group: "io.netty", module: "netty-all" // Don't include the outdated netty version
|
||||
}
|
||||
implementation "com.viaversion:viarewind-core:2.0.3-SNAPSHOT"
|
||||
implementation "com.viaversion:viarewind-core:2.0.4-SNAPSHOT"
|
||||
implementation "net.raphimc:ViaLegacy:2.2.9"
|
||||
implementation "net.raphimc:ViaAprilFools:2.0.5"
|
||||
```
|
||||
|
@ -24,11 +24,11 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "com.viaversion:viaversion:4.6.0-1.19.4-rc2-SNAPSHOT"
|
||||
compileOnly("com.viaversion:viabackwards-common:4.6.0-1.19.4-pre4-SNAPSHOT") {
|
||||
compileOnly "com.viaversion:viaversion:4.7.0-23w12a-SNAPSHOT"
|
||||
compileOnly("com.viaversion:viabackwards-common:4.7.0-23w12a-SNAPSHOT") {
|
||||
exclude group: "com.viaversion", module: "viaversion"
|
||||
}
|
||||
compileOnly "com.viaversion:viarewind-core:2.0.3-SNAPSHOT"
|
||||
compileOnly "com.viaversion:viarewind-core:2.0.4-SNAPSHOT"
|
||||
compileOnly "net.raphimc:ViaLegacy:2.2.6"
|
||||
|
||||
api "org.slf4j:slf4j-api:2.0.6"
|
||||
|
@ -79,8 +79,8 @@ public class ViaVersionPlatformImpl implements ViaPlatform<UUID> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public VPHTask runRepeatingAsync(Runnable runnable, long ticks) {
|
||||
return new VPHTask(Via.getManager().getScheduler().scheduleRepeating(runnable, 0, ticks * 50, TimeUnit.MILLISECONDS));
|
||||
public VPHTask runRepeatingAsync(Runnable runnable, long period) {
|
||||
return new VPHTask(Via.getManager().getScheduler().scheduleRepeating(runnable, 0, period * 50, TimeUnit.MILLISECONDS));
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -89,13 +89,13 @@ public class ViaVersionPlatformImpl implements ViaPlatform<UUID> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public VPHTask runSync(Runnable runnable, long ticks) {
|
||||
return new VPHTask(Via.getManager().getScheduler().schedule(runnable, ticks * 50, TimeUnit.MILLISECONDS));
|
||||
public VPHTask runSync(Runnable runnable, long delay) {
|
||||
return new VPHTask(Via.getManager().getScheduler().schedule(runnable, delay * 50, TimeUnit.MILLISECONDS));
|
||||
}
|
||||
|
||||
@Override
|
||||
public VPHTask runRepeatingSync(Runnable runnable, long ticks) {
|
||||
return this.runRepeatingAsync(runnable, ticks);
|
||||
public VPHTask runRepeatingSync(Runnable runnable, long period) {
|
||||
return this.runRepeatingAsync(runnable, period);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -99,9 +99,10 @@ public enum VersionEnum {
|
||||
r1_18_2(ProtocolVersion.v1_18_2),
|
||||
r1_19(ProtocolVersion.v1_19),
|
||||
r1_19_1tor1_19_2(ProtocolVersion.v1_19_1),
|
||||
bedrockLatest(getViaBedrockProtocol("bedrockLatest")),
|
||||
r1_19_3(ProtocolVersion.v1_19_3),
|
||||
bedrockLatest(getViaBedrockProtocol("bedrockLatest")),
|
||||
r1_19_4(ProtocolVersion.v1_19_4),
|
||||
r1_20(ProtocolVersion.v1_20),
|
||||
|
||||
//
|
||||
UNKNOWN(ProtocolVersion.unknown), // Not in Registry
|
||||
|
Loading…
Reference in New Issue
Block a user