Skip to content

Commit 7015f8f

Browse files
Deploying to Daydream-API
1 parent 1b7de56 commit 7015f8f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

daydream-api/paper-patches/features/0011-Add-client-type-predictor.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Subject: [PATCH] Add client type predictor
55

66

77
diff --git a/src/main/java/io/papermc/paper/connection/PlayerCommonConnection.java b/src/main/java/io/papermc/paper/connection/PlayerCommonConnection.java
8-
index 7cba94e4916b64c20ea34ed6626cde7f697d9cd5..c66413f84532cd3a6f020a999b5fa93c63976950 100644
8+
index 6dc030bb537ada506f769010277f14b101909006..b7f33e30a359de12d8b3832a374ff4f1f69cb2dc 100644
99
--- a/src/main/java/io/papermc/paper/connection/PlayerCommonConnection.java
1010
+++ b/src/main/java/io/papermc/paper/connection/PlayerCommonConnection.java
11-
@@ -43,4 +43,24 @@ public interface PlayerCommonConnection extends WritablePlayerCookieConnection,
12-
* @return the client option value of the player
11+
@@ -52,4 +52,24 @@ public interface PlayerCommonConnection extends WritablePlayerCookieConnection,
1312
*/
14-
<T> T getClientOption(ClientOption<T> type);
13+
io.netty.channel.Channel getChannel();
14+
// Daydream end - Add Network API
1515
+
1616
+ // Daydream start - (feature) Add client type predictor
1717
+ /**
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- a/src/main/java/io/papermc/paper/connection/PlayerCommonConnection.java
2+
+++ b/src/main/java/io/papermc/paper/connection/PlayerCommonConnection.java
3+
@@ -43,4 +_,13 @@
4+
* @return the client option value of the player
5+
*/
6+
<T> T getClientOption(ClientOption<T> type);
7+
+
8+
+ // Daydream start - Add Network API
9+
+ /**
10+
+ * 이 클라이언트 연결의 netty 채널을 가져옵니다.
11+
+ *
12+
+ * @return netty 채널
13+
+ */
14+
+ io.netty.channel.Channel getChannel();
15+
+ // Daydream end - Add Network API
16+
}

0 commit comments

Comments
 (0)