9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-21 15:59:26 +00:00
Files
SakuraMC/sakura-api/paper-patches/features/0001-Client-Visibility-Settings-API.patch
Samsuik 3f1d6eb297 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@742968e [ci skip] Increase outdated build delay to two weeks (#12063)
PaperMC/Paper@597dcff Add support for lz4 (#12053)
PaperMC/Paper@53ae5c9 Make Sittable interface extend Entity (#12016)
PaperMC/Paper@786ddf5 Default piston block entity direction to DOWN (#12039)
PaperMC/Paper@cb6c57e Fix Squid and Dolphin spawn height (#12045)
PaperMC/Paper@51acc80 Prevent duplicate raider in RaidSpawnWaveEvent list (#12040)
PaperMC/Paper@61312fd Switch to jspecify annotations for Player (#12042)
PaperMC/Paper@1a04e96 Fix EntityBreedEvent cancellation (#12046)
PaperMC/Paper@eff617b [ci skip] Deprecate Server#setSpawnRadius (#12024)
PaperMC/Paper@edacfdf Do not queue player info packets (#12080)
2025-02-09 18:14:27 +00:00

26 lines
1.0 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Samsuik <kfian294ma4@gmail.com>
Date: Tue, 21 Sep 2021 23:54:25 +0100
Subject: [PATCH] Client Visibility Settings API
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
index c9fd51cc77d1155d3fe779f28618073287cdb488..c96b0d49556da54c9682c4cee576fd1be391530a 100644
--- a/src/main/java/org/bukkit/entity/Player.java
+++ b/src/main/java/org/bukkit/entity/Player.java
@@ -69,6 +69,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
void setTrackingRangeModifier(double mod);
// Sakura end - entity tracking range modifier
+ // Sakura start - client visibility settings api
+ /**
+ * Server-side api to disable sending visual effects to the client.
+ *
+ * @return visibility api
+ */
+ me.samsuik.sakura.player.visibility.VisibilitySettings getVisibility();
+ // Sakura end - client visibility settings api
// Paper start
@Override