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,
|
||||
SNIFFING,
|
||||
EMERGING,
|
||||
DIGGING
|
||||
DIGGING,
|
||||
SLIDING,
|
||||
SHOOTING,
|
||||
INHALING,
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ runServer {
|
|||
javaLauncher = javaToolchains.launcherFor {
|
||||
languageVersion = JavaLanguageVersion.of(21)
|
||||
}
|
||||
minecraftVersion "1.20.6"
|
||||
minecraftVersion "1.21"
|
||||
}
|
||||
|
||||
processResources {
|
||||
|
@ -20,7 +20,7 @@ dependencies {
|
|||
implementation "com.google.code.gson:gson:2.10.1" // JSON parsing
|
||||
implementation "org.bstats:bstats-bukkit:3.0.2" // Plugin stats
|
||||
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 "lol.pyr:director-adventure:2.1.2" // Commands
|
||||
|
||||
|
|
|
@ -659,6 +659,11 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry {
|
|||
|
||||
// Wolf
|
||||
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) {
|
||||
|
|
|
@ -377,6 +377,15 @@ public class NpcTypeRegistryImpl implements NpcTypeRegistry {
|
|||
register(builder(p, "armadillo", EntityTypes.ARMADILLO)
|
||||
.setHologramOffset(-1.325)
|
||||
.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() {
|
||||
|
|
Loading…
Reference in a new issue