mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 08:27:43 +01:00
deprecate block highlight api until further notice
This commit is contained in:
@@ -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
|
||||
+
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user