update to mc 1.21
This commit is contained in:
parent
71430afcc3
commit
aafdf0b3f9
4 changed files with 20 additions and 3 deletions
|
@ -20,5 +20,8 @@ public enum NpcPose {
|
||||||
ROARING,
|
ROARING,
|
||||||
SNIFFING,
|
SNIFFING,
|
||||||
EMERGING,
|
EMERGING,
|
||||||
DIGGING
|
DIGGING,
|
||||||
|
SLIDING,
|
||||||
|
SHOOTING,
|
||||||
|
INHALING,
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ runServer {
|
||||||
javaLauncher = javaToolchains.launcherFor {
|
javaLauncher = javaToolchains.launcherFor {
|
||||||
languageVersion = JavaLanguageVersion.of(21)
|
languageVersion = JavaLanguageVersion.of(21)
|
||||||
}
|
}
|
||||||
minecraftVersion "1.20.6"
|
minecraftVersion "1.21"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
@ -20,7 +20,7 @@ dependencies {
|
||||||
implementation "com.google.code.gson:gson:2.10.1" // JSON parsing
|
implementation "com.google.code.gson:gson:2.10.1" // JSON parsing
|
||||||
implementation "org.bstats:bstats-bukkit:3.0.2" // Plugin stats
|
implementation "org.bstats:bstats-bukkit:3.0.2" // Plugin stats
|
||||||
implementation "me.robertlit:SpigotResourcesAPI:2.0" // Spigot API wrapper for update checker
|
implementation "me.robertlit:SpigotResourcesAPI:2.0" // Spigot API wrapper for update checker
|
||||||
implementation "com.github.retrooper.packetevents:spigot:2.3.0" // Packets
|
implementation "com.github.retrooper:packetevents-spigot:2.4.0" // Packets
|
||||||
implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1" // Configs
|
implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1" // Configs
|
||||||
implementation "lol.pyr:director-adventure:2.1.2" // Commands
|
implementation "lol.pyr:director-adventure:2.1.2" // Commands
|
||||||
|
|
||||||
|
|
|
@ -659,6 +659,11 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry {
|
||||||
|
|
||||||
// Wolf
|
// Wolf
|
||||||
register(new EncodedIntegerProperty<>("wolf_variant", WoldVariant.PALE, wolfIndex, WoldVariant::getId, EntityDataTypes.WOLF_VARIANT));
|
register(new EncodedIntegerProperty<>("wolf_variant", WoldVariant.PALE, wolfIndex, WoldVariant::getId, EntityDataTypes.WOLF_VARIANT));
|
||||||
|
|
||||||
|
if (!ver.isNewerThanOrEquals(ServerVersion.V_1_21)) return;
|
||||||
|
|
||||||
|
// Bogged
|
||||||
|
register(new BooleanProperty("bogged_sheared", 16, false, legacyBooleans));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void registerSerializer(PropertySerializer<?> serializer) {
|
private void registerSerializer(PropertySerializer<?> serializer) {
|
||||||
|
|
|
@ -377,6 +377,15 @@ public class NpcTypeRegistryImpl implements NpcTypeRegistry {
|
||||||
register(builder(p, "armadillo", EntityTypes.ARMADILLO)
|
register(builder(p, "armadillo", EntityTypes.ARMADILLO)
|
||||||
.setHologramOffset(-1.325)
|
.setHologramOffset(-1.325)
|
||||||
.addProperties("armadillo_state"));
|
.addProperties("armadillo_state"));
|
||||||
|
|
||||||
|
if (!version.isNewerThanOrEquals(ServerVersion.V_1_21)) return;
|
||||||
|
|
||||||
|
register(builder(p, "bogged", EntityTypes.BOGGED)
|
||||||
|
.setHologramOffset(0.015)
|
||||||
|
.addProperties("bogged_sheared"));
|
||||||
|
|
||||||
|
register(builder(p, "breeze", EntityTypes.BREEZE)
|
||||||
|
.setHologramOffset(-0.205));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Collection<NpcType> getAll() {
|
public Collection<NpcType> getAll() {
|
||||||
|
|
Loading…
Reference in a new issue