deprecate block highlight api until further notice

This commit is contained in:
granny
2025-11-14 21:45:09 -08:00
parent 2adf3f870b
commit c4bf318106
6 changed files with 51 additions and 9 deletions

View File

@@ -99,7 +99,7 @@
+
+ @Override
+ public void clearBlockHighlights() {
+ this.worlds.forEach((name, world) -> clearBlockHighlights());
+ this.worlds.forEach((name, world) -> world.clearBlockHighlights());
+ }
+ // Purpur end - Debug Marker API
+

View File

@@ -28,7 +28,7 @@
+
+ @Override
+ public void sendBlockHighlight(Location location, int duration, String text, int argb) {
+ // Purpur - TODO: fix block highlight API
+ // Purpur - TODO: NOOP until further notice
+ //net.minecraft.network.protocol.game.DebugPackets.sendGameTestAddMarker(getHandle(), org.bukkit.craftbukkit.util.CraftLocation.toBlockPosition(location), text, argb, duration);
+ }
+
@@ -45,7 +45,7 @@
+
+ @Override
+ public void clearBlockHighlights() {
+ // Purpur - TODO: fix block highlight API
+ // Purpur - TODO: NOOP until further notice
+ //net.minecraft.network.protocol.game.DebugPackets.sendGameTestClearPacket(getHandle());
+ }
+ // Purpur end - Debug Marker API

View File

@@ -64,7 +64,7 @@
+ @Override
+ public void sendBlockHighlight(Location location, int duration, String text, int argb) {
+ if (this.getHandle().connection == null) return;
+ // Purpur - TODO: fix block highlight API
+ // Purpur - TODO: NOOP until further notice
+ //this.getHandle().connection.send(new net.minecraft.network.protocol.common.ClientboundCustomPayloadPacket(new net.minecraft.network.protocol.common.custom.GameTestAddMarkerDebugPayload(org.bukkit.craftbukkit.util.CraftLocation.toBlockPosition(location), argb, text, duration)));
+ }
+
@@ -82,7 +82,7 @@
+ @Override
+ public void clearBlockHighlights() {
+ if (this.getHandle().connection == null) return;
+ // Purpur - TODO: fix block highlight API
+ // Purpur - TODO: NOOP until further notice
+ //this.getHandle().connection.send(new net.minecraft.network.protocol.common.ClientboundCustomPayloadPacket(new net.minecraft.network.protocol.common.custom.GameTestClearMarkersDebugPayload()));
+ }
+ // Purpur end - Debug Marker API