|
|
|
@ -6,7 +6,7 @@ Subject: [PATCH] Timings v2
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/co/aikar/timings/MinecraftTimings.java b/src/main/java/co/aikar/timings/MinecraftTimings.java
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000000..a6292f1d74
|
|
|
|
|
index 000000000..a6292f1d7
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/src/main/java/co/aikar/timings/MinecraftTimings.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -144,7 +144,7 @@ index 0000000000..a6292f1d74
|
|
|
|
|
+}
|
|
|
|
|
diff --git a/src/main/java/co/aikar/timings/WorldTimingsHandler.java b/src/main/java/co/aikar/timings/WorldTimingsHandler.java
|
|
|
|
|
new file mode 100644
|
|
|
|
|
index 0000000000..145cb274b0
|
|
|
|
|
index 000000000..145cb274b
|
|
|
|
|
--- /dev/null
|
|
|
|
|
+++ b/src/main/java/co/aikar/timings/WorldTimingsHandler.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -253,7 +253,7 @@ index 0000000000..145cb274b0
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
|
index d2efcca80a..4812da0dac 100644
|
|
|
|
|
index d2efcca80..4812da0da 100644
|
|
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import java.util.concurrent.TimeUnit;
|
|
|
|
@ -297,7 +297,7 @@ index d2efcca80a..4812da0dac 100644
|
|
|
|
|
+ }
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Block.java b/src/main/java/net/minecraft/server/Block.java
|
|
|
|
|
index 8811dbc9b3..7818a3b6a7 100644
|
|
|
|
|
index 8811dbc9b..7818a3b6a 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/Block.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Block.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class Block implements IMaterial {
|
|
|
|
@ -317,7 +317,7 @@ index 8811dbc9b3..7818a3b6a7 100644
|
|
|
|
|
private final float frictionFactor;
|
|
|
|
|
protected final BlockStateList<Block, IBlockData> blockStateList;
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ChunkMap.java b/src/main/java/net/minecraft/server/ChunkMap.java
|
|
|
|
|
index e3d1761b49..fbebd4591c 100644
|
|
|
|
|
index e3d1761b4..fbebd4591 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/ChunkMap.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ChunkMap.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class ChunkMap extends Long2ObjectOpenHashMap<Chunk> {
|
|
|
|
@ -348,7 +348,7 @@ index e3d1761b49..fbebd4591c 100644
|
|
|
|
|
// CraftBukkit end
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
|
|
|
|
index 3045d6d063..68212aa26e 100644
|
|
|
|
|
index 3045d6d06..68212aa26 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class ChunkProviderServer implements IChunkProvider {
|
|
|
|
@ -389,7 +389,7 @@ index 3045d6d063..68212aa26e 100644
|
|
|
|
|
this.chunkLoader.saveChunk(this.world, ichunkaccess, unloaded); // Spigot
|
|
|
|
|
} catch (IOException ioexception) {
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ChunkRegionLoader.java b/src/main/java/net/minecraft/server/ChunkRegionLoader.java
|
|
|
|
|
index df07b2b889..f969c036f3 100644
|
|
|
|
|
index df07b2b88..f969c036f 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/ChunkRegionLoader.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/ChunkRegionLoader.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -436,7 +436,7 @@ index df07b2b889..f969c036f3 100644
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/CustomFunction.java b/src/main/java/net/minecraft/server/CustomFunction.java
|
|
|
|
|
index b7cdc495a3..8b9b076ded 100644
|
|
|
|
|
index b7cdc495a..8b9b076de 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/CustomFunction.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CustomFunction.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class CustomFunction {
|
|
|
|
@ -463,7 +463,7 @@ index b7cdc495a3..8b9b076ded 100644
|
|
|
|
|
return this.b;
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/CustomFunctionData.java b/src/main/java/net/minecraft/server/CustomFunctionData.java
|
|
|
|
|
index 4d7e151793..40ff72f725 100644
|
|
|
|
|
index 4d7e15179..40ff72f72 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/CustomFunctionData.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CustomFunctionData.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class CustomFunctionData implements ITickable, IResourcePackListener {
|
|
|
|
@ -476,7 +476,7 @@ index 4d7e151793..40ff72f725 100644
|
|
|
|
|
int j = 0;
|
|
|
|
|
CustomFunction.c[] acustomfunction_c = customfunction.b();
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
|
|
|
index efa738d4ec..dabad6b055 100644
|
|
|
|
|
index efa738d4e..dabad6b05 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import org.apache.logging.log4j.Level;
|
|
|
|
@ -529,7 +529,7 @@ index efa738d4ec..dabad6b055 100644
|
|
|
|
|
return waitable.get();
|
|
|
|
|
} catch (java.util.concurrent.ExecutionException e) {
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
|
index 5914439b1c..f1cf6cf1cd 100644
|
|
|
|
|
index 5914439b1..f1cf6cf1c 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import org.bukkit.command.CommandSender;
|
|
|
|
@ -568,7 +568,7 @@ index 5914439b1c..f1cf6cf1cd 100644
|
|
|
|
|
|
|
|
|
|
protected float ab() {
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
|
|
|
|
index 8d33c16580..603208caf8 100644
|
|
|
|
|
index 76cc9085b..ce79887cf 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import org.bukkit.event.entity.EntityTeleportEvent;
|
|
|
|
@ -644,7 +644,7 @@ index 8d33c16580..603208caf8 100644
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityTracker.java b/src/main/java/net/minecraft/server/EntityTracker.java
|
|
|
|
|
index ae31935c48..70c9b1f50c 100644
|
|
|
|
|
index ae31935c4..70c9b1f50 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/EntityTracker.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityTracker.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class EntityTracker {
|
|
|
|
@ -675,7 +675,7 @@ index ae31935c48..70c9b1f50c 100644
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
|
index ac534ea3ee..bb4d2cabfe 100644
|
|
|
|
|
index ac534ea3e..bb4d2cabf 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -828,7 +828,7 @@ index ac534ea3ee..bb4d2cabfe 100644
|
|
|
|
|
this.methodProfiler.e();
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
|
|
|
index ac6d8cc6e6..d975c2ccf1 100644
|
|
|
|
|
index ac6d8cc6e..d975c2ccf 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -922,7 +922,7 @@ index ac6d8cc6e6..d975c2ccf1 100644
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
|
index cbc86feb74..30f909a1d3 100644
|
|
|
|
|
index cbc86feb7..30f909a1d 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import org.bukkit.inventory.CraftingInventory;
|
|
|
|
@ -961,7 +961,7 @@ index cbc86feb74..30f909a1d3 100644
|
|
|
|
|
// this.minecraftServer.getCommandDispatcher().a(this.player.getCommandListener(), s);
|
|
|
|
|
// CraftBukkit end
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnectionUtils.java b/src/main/java/net/minecraft/server/PlayerConnectionUtils.java
|
|
|
|
|
index 616797dc6e..3a5daf6705 100644
|
|
|
|
|
index 616797dc6..3a5daf670 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnectionUtils.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnectionUtils.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -982,7 +982,7 @@ index 616797dc6e..3a5daf6705 100644
|
|
|
|
|
throw CancelledPacketHandleException.INSTANCE;
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
|
index ead9697e65..26df2ff32f 100644
|
|
|
|
|
index ead9697e6..26df2ff32 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -1006,7 +1006,7 @@ index ead9697e65..26df2ff32f 100644
|
|
|
|
|
|
|
|
|
|
public WhiteList getWhitelist() {
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/TickListServer.java b/src/main/java/net/minecraft/server/TickListServer.java
|
|
|
|
|
index a07895935e..ee5c2421bb 100644
|
|
|
|
|
index a07895935..ee5c2421b 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/TickListServer.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/TickListServer.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class TickListServer<T> implements TickList<T> {
|
|
|
|
@ -1060,7 +1060,7 @@ index a07895935e..ee5c2421bb 100644
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/TileEntity.java b/src/main/java/net/minecraft/server/TileEntity.java
|
|
|
|
|
index c69209497b..68ac014aab 100644
|
|
|
|
|
index c69209497..68ac014aa 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/TileEntity.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/TileEntity.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import javax.annotation.Nullable;
|
|
|
|
@ -1080,7 +1080,7 @@ index c69209497b..68ac014aab 100644
|
|
|
|
|
private final TileEntityTypes<?> e; public TileEntityTypes getTileEntityType() { return e; } // Paper - OBFHELPER
|
|
|
|
|
protected World world;
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
|
|
|
|
index b5b0cbf647..53e35634a8 100644
|
|
|
|
|
index f381e23be..a934a4b30 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/World.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/World.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -1195,7 +1195,7 @@ index b5b0cbf647..53e35634a8 100644
|
|
|
|
|
|
|
|
|
|
public boolean a(@Nullable Entity entity, VoxelShape voxelshape) {
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
|
index 4be2d8d3c4..e4d03b6779 100644
|
|
|
|
|
index 4be2d8d3c..e4d03b677 100644
|
|
|
|
|
--- a/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldServer.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -1302,7 +1302,7 @@ index 4be2d8d3c4..e4d03b6779 100644
|
|
|
|
|
|
|
|
|
|
// CraftBukkit start
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
|
index 540126c31f..53033f0df1 100644
|
|
|
|
|
index 540126c31..53033f0df 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public final class CraftServer implements Server {
|
|
|
|
@ -1339,7 +1339,7 @@ index 540126c31f..53033f0df1 100644
|
|
|
|
|
org.spigotmc.RestartCommand.restart();
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/SpigotTimings.java b/src/main/java/org/bukkit/craftbukkit/SpigotTimings.java
|
|
|
|
|
deleted file mode 100644
|
|
|
|
|
index 4c8ab2bc97..0000000000
|
|
|
|
|
index 4c8ab2bc9..000000000
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/SpigotTimings.java
|
|
|
|
|
+++ /dev/null
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -1518,7 +1518,7 @@ index 4c8ab2bc97..0000000000
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOProvider.java b/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOProvider.java
|
|
|
|
|
index 413dd35f06..52a8c48fa4 100644
|
|
|
|
|
index 413dd35f0..52a8c48fa 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOProvider.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/chunkio/ChunkIOProvider.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -1554,7 +1554,7 @@ index 413dd35f06..52a8c48fa4 100644
|
|
|
|
|
|
|
|
|
|
public void callStage3(QueuedChunk queuedChunk, Chunk chunk, Runnable runnable) throws RuntimeException {
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
|
index 9f78f2c4ae..b8bdcb6b74 100644
|
|
|
|
|
index 9f78f2c4a..b8bdcb6b7 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
|
@@ -0,0 +0,0 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|
|
|
@ -1571,7 +1571,7 @@ index 9f78f2c4ae..b8bdcb6b74 100644
|
|
|
|
|
|
|
|
|
|
public Player.Spigot spigot()
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
|
|
|
|
|
index f11bd7545f..93b9134d6e 100644
|
|
|
|
|
index f11bd7545..93b9134d6 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
@ -1647,7 +1647,7 @@ index f11bd7545f..93b9134d6e 100644
|
|
|
|
|
|
|
|
|
|
private boolean isReady(final int currentTick) {
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java
|
|
|
|
|
index 7e7ce9a81b..46029ce246 100644
|
|
|
|
|
index 7e7ce9a81..46029ce24 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftTask.java
|
|
|
|
|
@@ -0,0 +0,0 @@
|
|
|
|
@ -1729,7 +1729,7 @@ index 7e7ce9a81b..46029ce246 100644
|
|
|
|
|
- // Spigot end
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftIconCache.java b/src/main/java/org/bukkit/craftbukkit/util/CraftIconCache.java
|
|
|
|
|
index e52ef47b78..3d90b34268 100644
|
|
|
|
|
index e52ef47b7..3d90b3426 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftIconCache.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftIconCache.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import org.bukkit.util.CachedServerIcon;
|
|
|
|
@ -1741,7 +1741,7 @@ index e52ef47b78..3d90b34268 100644
|
|
|
|
|
this.value = value;
|
|
|
|
|
}
|
|
|
|
|
diff --git a/src/main/java/org/spigotmc/ActivationRange.java b/src/main/java/org/spigotmc/ActivationRange.java
|
|
|
|
|
index e60fe5a920..f68e42c4d4 100644
|
|
|
|
|
index e60fe5a92..f68e42c4d 100644
|
|
|
|
|
--- a/src/main/java/org/spigotmc/ActivationRange.java
|
|
|
|
|
+++ b/src/main/java/org/spigotmc/ActivationRange.java
|
|
|
|
|
@@ -0,0 +0,0 @@ import net.minecraft.server.EntityWither;
|
|
|
|
|