Update to Minecraft 1.15

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-12-11 09:00:00 +11:00
parent 1400103b2f
commit 0e142c7f03
293 changed files with 2875 additions and 2648 deletions

View File

@@ -14,7 +14,7 @@
public class EntitySlime extends EntityInsentient implements IMonster {
@@ -139,7 +146,7 @@
@@ -153,7 +160,7 @@
@Override
public EntityTypes<? extends EntitySlime> getEntityType() {
@@ -23,7 +23,7 @@
}
@Override
@@ -149,6 +156,19 @@
@@ -163,6 +170,19 @@
if (!this.world.isClientSide && i > 1 && this.getHealth() <= 0.0F) {
int j = 2 + this.random.nextInt(3);
@@ -43,10 +43,10 @@
for (int k = 0; k < j; ++k) {
float f = ((float) (k % 2) - 0.5F) * (float) i / 4.0F;
float f1 = ((float) (k / 2) - 0.5F) * (float) i / 4.0F;
@@ -164,8 +184,18 @@
@@ -179,8 +199,18 @@
entityslime.setInvulnerable(this.isInvulnerable());
entityslime.setSize(i / 2, true);
entityslime.setPositionRotation(this.locX + (double) f, this.locY + 0.5D, this.locZ + (double) f1, this.random.nextFloat() * 360.0F, 0.0F);
entityslime.setPositionRotation(this.locX() + (double) f, this.locY() + 0.5D, this.locZ() + (double) f1, this.random.nextFloat() * 360.0F, 0.0F);
- this.world.addEntity(entityslime);
+
+ slimes.add(entityslime); // CraftBukkit