mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Deprecate Bukkit#getLogger (#10388)
* Deprecate Bukkit#getLogger * fix typo in MaterialSetTags * change to Internal and squash into other patch * improve api note message --------- Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
This commit is contained in:
parent
e1e5a33da4
commit
8a2bd44f1f
@ -518,7 +518,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ /**
|
+ /**
|
||||||
+ * Covers the variants of a redstone torch.
|
+ * Covers the variants of a redstone torch.
|
||||||
+ */
|
+ */
|
||||||
+ public static final MaterialSetTag REDSTONE_TORCH = new MaterialSetTag(keyFor("restone_torch"))
|
+ public static final MaterialSetTag REDSTONE_TORCH = new MaterialSetTag(keyFor("redstone_torch"))
|
||||||
+ .add(Material.REDSTONE_TORCH, Material.REDSTONE_WALL_TORCH)
|
+ .add(Material.REDSTONE_TORCH, Material.REDSTONE_WALL_TORCH)
|
||||||
+ .ensureSize("REDSTONE_TORCH", 2).lock();
|
+ .ensureSize("REDSTONE_TORCH", 2).lock();
|
||||||
+
|
+
|
||||||
|
@ -54,6 +54,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@Nullable
|
@Nullable
|
||||||
public static MapView getMap(int id) {
|
public static MapView getMap(int id) {
|
||||||
return server.getMap(id);
|
return server.getMap(id);
|
||||||
|
@@ -0,0 +0,0 @@ public final class Bukkit {
|
||||||
|
* Returns the primary logger associated with this server instance.
|
||||||
|
*
|
||||||
|
* @return Logger associated with this server
|
||||||
|
+ * @see org.bukkit.plugin.Plugin#getSLF4JLogger()
|
||||||
|
+ * @apiNote This logger is for the Minecraft server software, not for specific plugins. You should
|
||||||
|
+ * use a logger for a specific plugin, either via {@link org.bukkit.plugin.Plugin#getSLF4JLogger()}
|
||||||
|
+ * or {@link org.bukkit.plugin.Plugin#getLogger()} or create a specific logger for a class via slf4j.
|
||||||
|
+ * That way, log messages contain contextual information about the source of the message.
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
+ @org.jetbrains.annotations.ApiStatus.Internal // Paper - internalize Bukkit#getLogger
|
||||||
|
public static Logger getLogger() {
|
||||||
|
return server.getLogger();
|
||||||
|
}
|
||||||
@@ -0,0 +0,0 @@ public final class Bukkit {
|
@@ -0,0 +0,0 @@ public final class Bukkit {
|
||||||
* @param name the name the player to retrieve
|
* @param name the name the player to retrieve
|
||||||
* @return an offline player
|
* @return an offline player
|
||||||
@ -533,6 +548,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@Nullable
|
@Nullable
|
||||||
public MapView getMap(int id);
|
public MapView getMap(int id);
|
||||||
|
|
||||||
|
@@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
||||||
|
* Returns the primary logger associated with this server instance.
|
||||||
|
*
|
||||||
|
* @return Logger associated with this server
|
||||||
|
+ * @see org.bukkit.plugin.Plugin#getSLF4JLogger()
|
||||||
|
+ * @apiNote This logger is for the Minecraft server software, not for specific plugins. You should
|
||||||
|
+ * use a logger for a specific plugin, either via {@link org.bukkit.plugin.Plugin#getSLF4JLogger()}
|
||||||
|
+ * or {@link org.bukkit.plugin.Plugin#getLogger()} or create a specific logger for a class via slf4j.
|
||||||
|
+ * That way, log messages contain contextual information about the source of the message.
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
+ @org.jetbrains.annotations.ApiStatus.Internal // Paper - internalize Bukkit#getLogger
|
||||||
|
public Logger getLogger();
|
||||||
|
|
||||||
|
/**
|
||||||
@@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
@@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
||||||
* @param name the name the player to retrieve
|
* @param name the name the player to retrieve
|
||||||
* @return an offline player
|
* @return an offline player
|
||||||
|
Loading…
Reference in New Issue
Block a user