-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e07c1b8
commit de2bbf3
Showing
6 changed files
with
80 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
daydream-api/paper-patches/files/src/main/java/org/bukkit/entity/HumanEntity.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/src/main/java/org/bukkit/entity/HumanEntity.java | ||
+++ b/src/main/java/org/bukkit/entity/HumanEntity.java | ||
@@ -66,6 +_,15 @@ | ||
@NotNull | ||
public MainHand getMainHand(); | ||
|
||
+ // Daydream start - Settable Player Arm | ||
+ /** | ||
+ * 플레이어의 주로 사용하는 손을 변경합니다. | ||
+ * | ||
+ * @param mainHand 주로 사용하는 손 | ||
+ */ | ||
+ public void setMainHand(@NotNull MainHand mainHand); | ||
+ // Daydream end - Settable Player Arm | ||
+ | ||
/** | ||
* If the player currently has an inventory window open, this method will | ||
* set a property of that window, such as the state of a progress bar. |
29 changes: 29 additions & 0 deletions
29
...patches/files/src/main/java/org/bukkit/event/player/PlayerChangedMainHandEvent.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- a/src/main/java/org/bukkit/event/player/PlayerChangedMainHandEvent.java | ||
+++ b/src/main/java/org/bukkit/event/player/PlayerChangedMainHandEvent.java | ||
@@ -12,7 +_,7 @@ | ||
|
||
private static final HandlerList handlers = new HandlerList(); | ||
// | ||
- private final MainHand mainHand; | ||
+ private MainHand mainHand; // Daydream - Settable Player Arm (remove final) | ||
|
||
public PlayerChangedMainHandEvent(@NotNull Player who, @NotNull MainHand mainHand) { | ||
super(who); | ||
@@ -29,6 +_,17 @@ | ||
public MainHand getMainHand() { | ||
return mainHand; | ||
} | ||
+ | ||
+ // Daydream start - Settable Player Arm | ||
+ /** | ||
+ * 플레이어의 주로 사용하는 손을 변경합니다. | ||
+ * | ||
+ * @param mainHand 주로 사용하는 손 | ||
+ */ | ||
+ public void setMainHand(final @NotNull MainHand mainHand) { | ||
+ this.mainHand = mainHand; | ||
+ } | ||
+ // Daydream end - Settable Player Arm | ||
|
||
@NotNull | ||
@Override |
19 changes: 19 additions & 0 deletions
19
daydream-api/src/main/java/moe/caramel/daydream/event/configuration/ConfigurationEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package moe.caramel.daydream.event.configuration; | ||
|
||
import org.bukkit.Bukkit; | ||
import org.bukkit.entity.Player; | ||
import org.bukkit.event.player.PlayerEvent; | ||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jspecify.annotations.NullMarked; | ||
|
||
/** | ||
* Configuration 페이즈에서 호출되는 이벤트 | ||
*/ | ||
@NullMarked | ||
public abstract class ConfigurationEvent extends PlayerEvent { | ||
|
||
@ApiStatus.Internal | ||
public ConfigurationEvent(final Player who) { | ||
super(who, !Bukkit.isPrimaryThread()); // (...) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters