Skip to content

Commit 766cfc2

Browse files
committed
Implement Minecraft 1.20 (spigot)
1 parent 892f2dc commit 766cfc2

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

VoxelSniperCore/src/main/java/com/github/kevindagame/voxelsniper/Version.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
package com.github.kevindagame.voxelsniper;
22

3+
@Deprecated(since = "9.2.0", forRemoval = true)
4+
//This doesn't allow forward compatibility 🤮
35
public enum Version {
46
V1_16,
57
V1_17,
68
V1_18,
7-
V1_19;
9+
V1_19,
10+
V1_20;
811

9-
//todo: Test if this works
1012
public boolean isSupported(Version v) {
1113
return Integer.parseInt(this.name().substring(3)) >= Integer.parseInt(v.name().substring(3));
1214
}

VoxelSniperCore/src/main/java/com/github/kevindagame/voxelsniper/biome/VoxelBiome.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public record VoxelBiome(String namespace, String key, Version version) {
7373
public static VoxelBiome FROZEN_PEAKS = register("frozen_peaks", Version.V1_18);
7474
public static VoxelBiome JAGGED_PEAKS = register("jagged_peaks", Version.V1_18);
7575
public static VoxelBiome STONY_PEAKS = register("stony_peaks", Version.V1_18);
76+
public static VoxelBiome CHERRY_GROVE = register("cherry_grove", Version.V1_20);
7677

7778
public VoxelBiome(String key) {
7879
this(DEFAULT_NAMESPACE, key, Version.V1_16);

VoxelSniperCore/src/main/java/com/github/kevindagame/voxelsniper/entity/entitytype/VoxelEntityType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ public record VoxelEntityType(String namespace, String key, Version version) {
128128
public static VoxelEntityType FISHING_HOOK = register("fishing_bobber");
129129
public static VoxelEntityType LIGHTNING = register("lightning_bolt");
130130
public static VoxelEntityType PLAYER = register("player");
131+
public static VoxelEntityType SNIFFER = register("sniffer", Version.V1_20);
132+
public static VoxelEntityType CAMEL = register("camel", Version.V1_20);
131133

132134
public VoxelEntityType(String key) {
133135
this(DEFAULT_NAMESPACE, key, Version.V1_16);

VoxelSniperSpigot/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ repositories {
99
}
1010

1111
dependencies {
12-
compileOnly("org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT")
13-
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.5") // newest worldguard that supports 1.16.5
12+
compileOnly("org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT")
13+
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.8")
1414
compileOnly("com.plotsquared:PlotSquared-Core")
1515

1616
shadow(platform("com.intellectualsites.bom:bom-1.18.x:1.20"))

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
voxelsniper.version=8.9.0
1+
voxelsniper.version=8.10.0
22

33
org.gradle.jvmargs=-Xmx3G
44
org.gradle.daemon=false

0 commit comments

Comments
 (0)