Repackage NMS

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-03-16 09:00:00 +11:00
parent 18496e998f
commit 9da047989c
968 changed files with 5448 additions and 5050 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/Raid.java
+++ b/net/minecraft/server/Raid.java
@@ -111,6 +111,12 @@
--- a/net/minecraft/world/entity/raid/Raid.java
+++ b/net/minecraft/world/entity/raid/Raid.java
@@ -153,6 +153,12 @@
return this.status == Raid.Status.LOSS;
}
@@ -13,7 +13,7 @@
public World getWorld() {
return this.world;
}
@@ -186,6 +192,7 @@
@@ -228,6 +234,7 @@
this.active = this.world.isLoaded(this.center);
if (this.world.getDifficulty() == EnumDifficulty.PEACEFUL) {
@@ -21,7 +21,7 @@
this.stop();
return;
}
@@ -205,13 +212,16 @@
@@ -247,13 +254,16 @@
if (!this.world.a_(this.center)) {
if (this.groupsSpawned > 0) {
this.status = Raid.Status.LOSS;
@@ -38,7 +38,7 @@
this.stop();
return;
}
@@ -285,6 +295,7 @@
@@ -327,6 +337,7 @@
}
if (j > 3) {
@@ -46,7 +46,7 @@
this.stop();
break;
}
@@ -297,6 +308,7 @@
@@ -339,6 +350,7 @@
this.status = Raid.Status.VICTORY;
Iterator iterator = this.heroes.iterator();
@@ -54,7 +54,7 @@
while (iterator.hasNext()) {
UUID uuid = (UUID) iterator.next();
Entity entity = this.world.getEntity(uuid);
@@ -310,9 +322,11 @@
@@ -352,9 +364,11 @@
entityplayer.a(StatisticList.RAID_WIN);
CriterionTriggers.H.a(entityplayer);
@@ -66,7 +66,7 @@
}
}
@@ -320,6 +334,7 @@
@@ -362,6 +376,7 @@
} else if (this.a()) {
++this.x;
if (this.x >= 600) {
@@ -74,7 +74,7 @@
this.stop();
return;
}
@@ -454,6 +469,10 @@
@@ -496,6 +511,10 @@
Raid.Wave[] araid_wave = Raid.Wave.f;
int j = araid_wave.length;
@@ -85,7 +85,7 @@
for (int k = 0; k < j; ++k) {
Raid.Wave raid_wave = araid_wave[k];
int l = this.a(raid_wave, i, flag1) + this.a(raid_wave, this.random, i, difficultydamagescaler, flag1);
@@ -466,9 +485,11 @@
@@ -508,9 +527,11 @@
entityraider.setPatrolLeader(true);
this.a(i, entityraider);
flag = true;
@@ -97,7 +97,7 @@
if (raid_wave.g == EntityTypes.RAVAGER) {
EntityRaider entityraider1 = null;
@@ -487,6 +508,7 @@
@@ -529,6 +550,7 @@
this.a(i, entityraider1, blockposition, false);
entityraider1.setPositionRotation(blockposition, 0.0F, 0.0F);
entityraider1.startRiding(entityraider);
@@ -105,7 +105,7 @@
}
}
}
@@ -496,6 +518,7 @@
@@ -538,6 +560,7 @@
++this.groupsSpawned;
this.updateProgress();
this.H();
@@ -113,7 +113,7 @@
}
public void a(int i, EntityRaider entityraider, @Nullable BlockPosition blockposition, boolean flag) {
@@ -511,7 +534,7 @@
@@ -553,7 +576,7 @@
entityraider.prepare(this.world, this.world.getDamageScaler(blockposition), EnumMobSpawn.EVENT, (GroupDataEntity) null, (NBTTagCompound) null);
entityraider.a(i, false);
entityraider.setOnGround(true);
@@ -122,7 +122,7 @@
}
}
@@ -756,6 +779,12 @@
@@ -798,6 +821,12 @@
this.heroes.add(entity.getUniqueID());
}