Skip to content

Commit

Permalink
Update API (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumine1909 authored Sep 16, 2024
1 parent 64d0d0c commit 87d30fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions patches/api/0003-Add-fakeplayer-api.patch
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ index 0000000000000000000000000000000000000000..7a1ee45d571687317883b896f3ec0a83
+}
diff --git a/src/main/java/org/leavesmc/leaves/entity/BotCreator.java b/src/main/java/org/leavesmc/leaves/entity/BotCreator.java
new file mode 100644
index 0000000000000000000000000000000000000000..b65e4661f7641c2e0d94c47c7688934fe2be5054
index 0000000000000000000000000000000000000000..98c7e87854eae9760a6f4427c6b052b192df2b45
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/entity/BotCreator.java
@@ -0,0 +1,47 @@
@@ -0,0 +1,52 @@
+package org.leavesmc.leaves.entity;
+
+import org.bukkit.Bukkit;
+import org.bukkit.Location;
+import org.bukkit.command.CommandSender;
+import org.jetbrains.annotations.NotNull;
Expand All @@ -164,6 +165,10 @@ index 0000000000000000000000000000000000000000..b65e4661f7641c2e0d94c47c7688934f
+
+public interface BotCreator {
+
+ default BotCreator of(String realName, Location location) {
+ return Bukkit.getBotManager().botCreator(realName, location);
+ }
+
+ public BotCreator name(String name);
+
+ public BotCreator skinName(String skinName);
Expand Down

0 comments on commit 87d30fd

Please sign in to comment.