Package net.minecraft.server.dedicated
Class ServerMBean
java.lang.Object
net.minecraft.server.dedicated.ServerMBean
- All Implemented Interfaces:
DynamicMBean
A dynamic management object for a Minecraft Server.
It exposes the average tick time and the historical tick times of the Minecraft Server.
- See Also:
- Mappings:
Namespace Name official arx
intermediary net/minecraft/class_5169
named net/minecraft/server/dedicated/ServerMBean
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
Represents a read-only attribute of the server MBean. -
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
ServerMBean.Entry> private static final Logger
private final MBeanInfo
private final MinecraftServer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attribute) getAttributes
(String[] attributes) private float
Returns the server's current average tick time, in milliseconds.private long[]
Returns the server's historical tick times, in milliseconds.static void
register
(MinecraftServer server) Registers a dynamic MBean for a Minecraft Server.void
setAttribute
(Attribute attribute) setAttributes
(AttributeList attributes)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Larx;a:Lorg/apache/logging/log4j/Logger;
intermediary field_23970
Lnet/minecraft/class_5169;field_23970:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/server/dedicated/ServerMBean;LOGGER:Lorg/apache/logging/log4j/Logger;
-
server
- Mappings:
Namespace Name Mixin selector official b
Larx;b:Lnet/minecraft/server/MinecraftServer;
intermediary field_23971
Lnet/minecraft/class_5169;field_23971:Lnet/minecraft/server/MinecraftServer;
named server
Lnet/minecraft/server/dedicated/ServerMBean;server:Lnet/minecraft/server/MinecraftServer;
-
mBeanInfo
- Mappings:
Namespace Name Mixin selector official c
Larx;c:Ljavax/management/MBeanInfo;
intermediary field_23972
Lnet/minecraft/class_5169;field_23972:Ljavax/management/MBeanInfo;
named mBeanInfo
Lnet/minecraft/server/dedicated/ServerMBean;mBeanInfo:Ljavax/management/MBeanInfo;
-
entries
- Mappings:
Namespace Name Mixin selector official d
Larx;d:Ljava/util/Map;
intermediary field_23973
Lnet/minecraft/class_5169;field_23973:Ljava/util/Map;
named entries
Lnet/minecraft/server/dedicated/ServerMBean;entries:Ljava/util/Map;
-
-
Constructor Details
-
ServerMBean
- Mappings:
Namespace Name Mixin selector official <init>
Larx;<init>(Lnet/minecraft/server/MinecraftServer;)V
intermediary <init>
Lnet/minecraft/class_5169;<init>(Lnet/minecraft/server/MinecraftServer;)V
named <init>
Lnet/minecraft/server/dedicated/ServerMBean;<init>(Lnet/minecraft/server/MinecraftServer;)V
-
-
Method Details
-
register
Registers a dynamic MBean for a Minecraft Server.- Parameters:
server
- the server to have the MBean- Mappings:
Namespace Name Mixin selector official a
Larx;a(Lnet/minecraft/server/MinecraftServer;)V
intermediary method_27181
Lnet/minecraft/class_5169;method_27181(Lnet/minecraft/server/MinecraftServer;)V
named register
Lnet/minecraft/server/dedicated/ServerMBean;register(Lnet/minecraft/server/MinecraftServer;)V
-
getAverageTickTime
private float getAverageTickTime()Returns the server's current average tick time, in milliseconds.- Mappings:
Namespace Name Mixin selector official a
Larx;a()F
intermediary method_27177
Lnet/minecraft/class_5169;method_27177()F
named getAverageTickTime
Lnet/minecraft/server/dedicated/ServerMBean;getAverageTickTime()F
-
getTickTimes
private long[] getTickTimes()Returns the server's historical tick times, in milliseconds.- Mappings:
Namespace Name Mixin selector official b
Larx;b()[J
intermediary method_27182
Lnet/minecraft/class_5169;method_27182()[J
named getTickTimes
Lnet/minecraft/server/dedicated/ServerMBean;getTickTimes()[J
-
getAttribute
- Specified by:
getAttribute
in interfaceDynamicMBean
- Mappings:
Namespace Name Mixin selector official getAttribute
Larx;getAttribute(Ljava/lang/String;)Ljava/lang/Object;
intermediary getAttribute
Lnet/minecraft/class_5169;getAttribute(Ljava/lang/String;)Ljava/lang/Object;
named getAttribute
Lnet/minecraft/server/dedicated/ServerMBean;getAttribute(Ljava/lang/String;)Ljava/lang/Object;
-
setAttribute
- Specified by:
setAttribute
in interfaceDynamicMBean
- Mappings:
Namespace Name Mixin selector official setAttribute
Larx;setAttribute(Ljavax/management/Attribute;)V
intermediary setAttribute
Lnet/minecraft/class_5169;setAttribute(Ljavax/management/Attribute;)V
named setAttribute
Lnet/minecraft/server/dedicated/ServerMBean;setAttribute(Ljavax/management/Attribute;)V
-
getAttributes
- Specified by:
getAttributes
in interfaceDynamicMBean
- Mappings:
Namespace Name Mixin selector official getAttributes
Larx;getAttributes([Ljava/lang/String;)Ljavax/management/AttributeList;
intermediary getAttributes
Lnet/minecraft/class_5169;getAttributes([Ljava/lang/String;)Ljavax/management/AttributeList;
named getAttributes
Lnet/minecraft/server/dedicated/ServerMBean;getAttributes([Ljava/lang/String;)Ljavax/management/AttributeList;
-
setAttributes
- Specified by:
setAttributes
in interfaceDynamicMBean
- Mappings:
Namespace Name Mixin selector official setAttributes
Larx;setAttributes(Ljavax/management/AttributeList;)Ljavax/management/AttributeList;
intermediary setAttributes
Lnet/minecraft/class_5169;setAttributes(Ljavax/management/AttributeList;)Ljavax/management/AttributeList;
named setAttributes
Lnet/minecraft/server/dedicated/ServerMBean;setAttributes(Ljavax/management/AttributeList;)Ljavax/management/AttributeList;
-
invoke
- Specified by:
invoke
in interfaceDynamicMBean
- Mappings:
Namespace Name Mixin selector official invoke
Larx;invoke(Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;
intermediary invoke
Lnet/minecraft/class_5169;invoke(Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;
named invoke
Lnet/minecraft/server/dedicated/ServerMBean;invoke(Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-