-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting NecroTempus native support. WIP (#132)
* Starting NecroTempus native support. * Implemented action bar support. * Implemented BossBar base. * Now it should work properly * This constructor should not have any throws inside. * An added missing method whose wrap the createBossBar * Now it's accessible * Cleaning and Organizing
- Loading branch information
Showing
14 changed files
with
1,124 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- ../src-base/minecraft/org/bukkit/Bukkit.java | ||
+++ ../src-work/minecraft/org/bukkit/Bukkit.java | ||
@@ -11,6 +11,10 @@ | ||
import java.util.logging.Logger; | ||
|
||
import org.bukkit.Warning.WarningState; | ||
+import org.bukkit.boss.BarColor; | ||
+import org.bukkit.boss.BarFlag; | ||
+import org.bukkit.boss.BarStyle; | ||
+import org.bukkit.boss.BossBar; | ||
import org.bukkit.command.CommandException; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.command.ConsoleCommandSender; | ||
@@ -747,4 +751,12 @@ | ||
public static UnsafeValues getUnsafe() { | ||
return server.getUnsafe(); | ||
} | ||
+ | ||
+ /** | ||
+ * @see Server#createBossBar(String, BarColor, BarStyle, BarFlag...) | ||
+ */ | ||
+ public static BossBar createBossBar(String title, BarColor color, BarStyle style, BarFlag... flags){ | ||
+ return server.createBossBar(title, color, style, flags); | ||
+ } | ||
+ | ||
} |
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
Oops, something went wrong.