Minestom/docs/net/minestom/server/MinecraftServer.html
2020-11-15 23:39:49 +01:00

1227 lines
60 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>MinecraftServer (Minestom 1.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="declaration: package: net.minestom.server, class: MinecraftServer">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
<script type="text/javascript" src="../../../script-dir/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":10,"i39":10,"i40":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!-- -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">net.minestom.server</a></div>
<h1 title="Class MinecraftServer" class="title">Class MinecraftServer</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree">java.lang.Object
<div class="inheritance">net.minestom.server.MinecraftServer</div>
</div>
<section class="description">
<hr>
<pre>public final class <span class="typeNameLabel">MinecraftServer</span>
extends java.lang.Object</pre>
<div class="block">The main server class used to start the server and retrieve all the managers.
<p>
The server needs to be initialized with <a href="#init()"><code>init()</code></a> and started with <a href="#start(java.lang.String,int)"><code>start(String, int)</code></a>.
You should register all of your dimensions, biomes, commands, events, etc... in-between.</div>
</section>
<section class="summary">
<ul class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<li class="blockList">
<section class="fieldSummary"><a id="field.summary">
<!-- -->
</a>
<h2>Field Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROTOCOL_VERSION">PROTOCOL_VERSION</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_COUNT_BLOCK_BATCH">THREAD_COUNT_BLOCK_BATCH</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_COUNT_PARALLEL_CHUNK_SAVING">THREAD_COUNT_PARALLEL_CHUNK_SAVING</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_COUNT_SCHEDULER">THREAD_COUNT_SCHEDULER</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_NAME_BENCHMARK">THREAD_NAME_BENCHMARK</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_NAME_BLOCK_BATCH">THREAD_NAME_BLOCK_BATCH</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_NAME_MAIN_UPDATE">THREAD_NAME_MAIN_UPDATE</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_NAME_PARALLEL_CHUNK_SAVING">THREAD_NAME_PARALLEL_CHUNK_SAVING</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_NAME_SCHEDULER">THREAD_NAME_SCHEDULER</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#THREAD_NAME_TICK">THREAD_NAME_TICK</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TICK_MS">TICK_MS</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TICK_PER_SECOND">TICK_PER_SECOND</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#VERSION_NAME">VERSION_NAME</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li class="blockList">
<section class="constructorSummary"><a id="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">MinecraftServer</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t1" class="tableTab" onclick="show(1);">Static Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>static <a href="advancements/AdvancementManager.html" title="class in net.minestom.server.advancements">AdvancementManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAdvancementManager()">getAdvancementManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling advancements.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>static <a href="benchmark/BenchmarkManager.html" title="class in net.minestom.server.benchmark">BenchmarkManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBenchmarkManager()">getBenchmarkManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling server monitoring.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>static <a href="world/biomes/BiomeManager.html" title="class in net.minestom.server.world.biomes">BiomeManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBiomeManager()">getBiomeManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling biomes.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>static <a href="instance/block/BlockManager.html" title="class in net.minestom.server.instance.block">BlockManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBlockManager()">getBlockManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling <a href="instance/block/CustomBlock.html" title="class in net.minestom.server.instance.block"><code>CustomBlock</code></a> and <a href="instance/block/rule/BlockPlacementRule.html" title="class in net.minestom.server.instance.block.rule"><code>BlockPlacementRule</code></a>.</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBrandName()">getBrandName</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the current server brand name.</div>
</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChunkViewDistance()">getChunkViewDistance</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the chunk view distance of the server.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>static <a href="command/CommandManager.html" title="class in net.minestom.server.command">CommandManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCommandManager()">getCommandManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling commands.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCompressionThreshold()">getCompressionThreshold</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the compression threshold of the server.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>static <a href="network/ConnectionManager.html" title="class in net.minestom.server.network">ConnectionManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getConnectionManager()">getConnectionManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling server connections.</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>static <a href="data/DataManager.html" title="class in net.minestom.server.data">DataManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDataManager()">getDataManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling <a href="data/DataType.html" title="class in net.minestom.server.data"><code>DataType</code></a> used by <a href="data/SerializableData.html" title="interface in net.minestom.server.data"><code>SerializableData</code></a>.</div>
</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>static <a href="world/Difficulty.html" title="enum in net.minestom.server.world">Difficulty</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDifficulty()">getDifficulty</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the server difficulty showed in game option.</div>
</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>static <a href="world/DimensionTypeManager.html" title="class in net.minestom.server.world">DimensionTypeManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDimensionTypeManager()">getDimensionTypeManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling dimensions.</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>static <a href="entity/EntityManager.html" title="class in net.minestom.server.entity">EntityManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEntityManager()">getEntityManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling waiting players.</div>
</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEntityViewDistance()">getEntityViewDistance</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the entity view distance of the server.</div>
</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>static <a href="extensions/ExtensionManager.html" title="class in net.minestom.server.extensions">ExtensionManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getExtensionManager()">getExtensionManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Get the manager handling <a href="extensions/Extension.html" title="class in net.minestom.server.extensions"><code>Extension</code></a>.</div>
</td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code>static <a href="instance/InstanceManager.html" title="class in net.minestom.server.instance">InstanceManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstanceManager()">getInstanceManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling all registered instances.</div>
</td>
</tr>
<tr class="altColor" id="i16">
<td class="colFirst"><code>static <a href="gamedata/loottables/LootTableManager.html" title="class in net.minestom.server.gamedata.loottables">LootTableManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLootTableManager()">getLootTableManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling loot tables.</div>
</td>
</tr>
<tr class="rowColor" id="i17">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxPacketSize()">getMaxPacketSize</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the maximum packet size (in bytes) that a client can send without getting disconnected.</div>
</td>
</tr>
<tr class="altColor" id="i18">
<td class="colFirst"><code>static <a href="network/netty/NettyServer.html" title="class in net.minestom.server.network.netty">NettyServer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNettyServer()">getNettyServer</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the netty server.</div>
</td>
</tr>
<tr class="rowColor" id="i19">
<td class="colFirst"><code>static <a href="listener/manager/PacketListenerManager.html" title="class in net.minestom.server.listener.manager">PacketListenerManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPacketListenerManager()">getPacketListenerManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling all incoming packets</div>
</td>
</tr>
<tr class="altColor" id="i20">
<td class="colFirst"><code>static <a href="network/PacketProcessor.html" title="class in net.minestom.server.network">PacketProcessor</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPacketProcessor()">getPacketProcessor</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the object handling the client packets processing.</div>
</td>
</tr>
<tr class="rowColor" id="i21">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRateLimit()">getRateLimit</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the maximum number of packets a client can send over 1 second.</div>
</td>
</tr>
<tr class="altColor" id="i22">
<td class="colFirst"><code>static <a href="recipe/RecipeManager.html" title="class in net.minestom.server.recipe">RecipeManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRecipeManager()">getRecipeManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling recipes show to the clients.</div>
</td>
</tr>
<tr class="rowColor" id="i23">
<td class="colFirst"><code>static <a href="ping/ResponseDataConsumer.html" title="interface in net.minestom.server.ping">ResponseDataConsumer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getResponseDataConsumer()">getResponseDataConsumer</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the consumer executed to show server-list data.</div>
</td>
</tr>
<tr class="altColor" id="i24">
<td class="colFirst"><code>static <a href="timer/SchedulerManager.html" title="class in net.minestom.server.timer">SchedulerManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSchedulerManager()">getSchedulerManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling scheduled tasks.</div>
</td>
</tr>
<tr class="rowColor" id="i25">
<td class="colFirst"><code>static <a href="storage/StorageManager.html" title="class in net.minestom.server.storage">StorageManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStorageManager()">getStorageManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling storage.</div>
</td>
</tr>
<tr class="altColor" id="i26">
<td class="colFirst"><code>static <a href="gamedata/tags/TagManager.html" title="class in net.minestom.server.gamedata.tags">TagManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTagManager()">getTagManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling tags.</div>
</td>
</tr>
<tr class="rowColor" id="i27">
<td class="colFirst"><code>static <a href="scoreboard/TeamManager.html" title="class in net.minestom.server.scoreboard">TeamManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTeamManager()">getTeamManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling teams.</div>
</td>
</tr>
<tr class="altColor" id="i28">
<td class="colFirst"><code>static <a href="UpdateManager.html" title="class in net.minestom.server">UpdateManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getUpdateManager()">getUpdateManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the manager handling the server ticks.</div>
</td>
</tr>
<tr class="rowColor" id="i29">
<td class="colFirst"><code>static <a href="MinecraftServer.html" title="class in net.minestom.server">MinecraftServer</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#init()">init</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i30">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isStarted()">isStarted</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets if the server is up and running.</div>
</td>
</tr>
<tr class="rowColor" id="i31">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setBrandName(java.lang.String)">setBrandName</a></span>&#8203;(java.lang.String&nbsp;brandName)</code></th>
<td class="colLast">
<div class="block">Changes the server brand name and send the change to all connected players.</div>
</td>
</tr>
<tr class="altColor" id="i32">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setChunkViewDistance(int)">setChunkViewDistance</a></span>&#8203;(int&nbsp;chunkViewDistance)</code></th>
<td class="colLast">
<div class="block">Changes the chunk view distance of the server.</div>
</td>
</tr>
<tr class="rowColor" id="i33">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCompressionThreshold(int)">setCompressionThreshold</a></span>&#8203;(int&nbsp;compressionThreshold)</code></th>
<td class="colLast">
<div class="block">Changes the compression threshold of the server.</div>
</td>
</tr>
<tr class="altColor" id="i34">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDifficulty(net.minestom.server.world.Difficulty)">setDifficulty</a></span>&#8203;(<a href="world/Difficulty.html" title="enum in net.minestom.server.world">Difficulty</a>&nbsp;difficulty)</code></th>
<td class="colLast">
<div class="block">Changes the server difficulty and send the appropriate packet to all connected clients.</div>
</td>
</tr>
<tr class="rowColor" id="i35">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setEntityViewDistance(int)">setEntityViewDistance</a></span>&#8203;(int&nbsp;entityViewDistance)</code></th>
<td class="colLast">
<div class="block">Changes the entity view distance of the server.</div>
</td>
</tr>
<tr class="altColor" id="i36">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxPacketSize(int)">setMaxPacketSize</a></span>&#8203;(int&nbsp;maxPacketSize)</code></th>
<td class="colLast">
<div class="block">Changes the maximum packet size (in bytes) that a client can send without getting disconnected.</div>
</td>
</tr>
<tr class="rowColor" id="i37">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRateLimit(int)">setRateLimit</a></span>&#8203;(int&nbsp;rateLimit)</code></th>
<td class="colLast">
<div class="block">Changes the number of packet a client can send over 1 second without being disconnected.</div>
</td>
</tr>
<tr class="altColor" id="i38">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#start(java.lang.String,int)">start</a></span>&#8203;(java.lang.String&nbsp;address,
int&nbsp;port)</code></th>
<td class="colLast">
<div class="block">Starts the server.</div>
</td>
</tr>
<tr class="rowColor" id="i39">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#start(java.lang.String,int,net.minestom.server.ping.ResponseDataConsumer)">start</a></span>&#8203;(java.lang.String&nbsp;address,
int&nbsp;port,
<a href="ping/ResponseDataConsumer.html" title="interface in net.minestom.server.ping">ResponseDataConsumer</a>&nbsp;responseDataConsumer)</code></th>
<td class="colLast">
<div class="block">Starts the server.</div>
</td>
</tr>
<tr class="altColor" id="i40">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stopCleanly()">stopCleanly</a></span>()</code></th>
<td class="colLast">
<div class="block">Stops this server properly (saves if needed, kicking players, etc.)</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a><code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<li class="blockList">
<section class="fieldDetails"><a id="field.detail">
<!-- -->
</a>
<h2>Field Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="VERSION_NAME">VERSION_NAME</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">VERSION_NAME</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.VERSION_NAME">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="PROTOCOL_VERSION">PROTOCOL_VERSION</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">PROTOCOL_VERSION</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.PROTOCOL_VERSION">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_NAME_BENCHMARK">THREAD_NAME_BENCHMARK</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">THREAD_NAME_BENCHMARK</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_NAME_BENCHMARK">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_NAME_MAIN_UPDATE">THREAD_NAME_MAIN_UPDATE</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">THREAD_NAME_MAIN_UPDATE</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_NAME_MAIN_UPDATE">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_NAME_TICK">THREAD_NAME_TICK</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">THREAD_NAME_TICK</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_NAME_TICK">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_NAME_BLOCK_BATCH">THREAD_NAME_BLOCK_BATCH</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">THREAD_NAME_BLOCK_BATCH</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_NAME_BLOCK_BATCH">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_COUNT_BLOCK_BATCH">THREAD_COUNT_BLOCK_BATCH</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">THREAD_COUNT_BLOCK_BATCH</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_COUNT_BLOCK_BATCH">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_NAME_SCHEDULER">THREAD_NAME_SCHEDULER</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">THREAD_NAME_SCHEDULER</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_NAME_SCHEDULER">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_COUNT_SCHEDULER">THREAD_COUNT_SCHEDULER</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">THREAD_COUNT_SCHEDULER</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_COUNT_SCHEDULER">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_NAME_PARALLEL_CHUNK_SAVING">THREAD_NAME_PARALLEL_CHUNK_SAVING</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">THREAD_NAME_PARALLEL_CHUNK_SAVING</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_NAME_PARALLEL_CHUNK_SAVING">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="THREAD_COUNT_PARALLEL_CHUNK_SAVING">THREAD_COUNT_PARALLEL_CHUNK_SAVING</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">THREAD_COUNT_PARALLEL_CHUNK_SAVING</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.THREAD_COUNT_PARALLEL_CHUNK_SAVING">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="TICK_PER_SECOND">TICK_PER_SECOND</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">TICK_PER_SECOND</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.TICK_PER_SECOND">Constant Field Values</a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="TICK_MS">TICK_MS</a></h3>
<div class="memberSignature"><span class="modifiers">public static final</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">TICK_MS</span></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../constant-values.html#net.minestom.server.MinecraftServer.TICK_MS">Constant Field Values</a></dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li class="blockList">
<section class="constructorDetails"><a id="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="&lt;init&gt;()">MinecraftServer</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="memberName">MinecraftServer</span>()</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li class="blockList">
<section class="methodDetails"><a id="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="init()">init</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="MinecraftServer.html" title="class in net.minestom.server">MinecraftServer</a></span>&nbsp;<span class="memberName">init</span>()</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getBrandName()">getBrandName</a></h3>
<div class="memberSignature"><span class="annotations">@NotNull
</span><span class="modifiers">public static</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">getBrandName</span>()</div>
<div class="block">Gets the current server brand name.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the server brand name</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setBrandName(java.lang.String)">setBrandName</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setBrandName</span>&#8203;(<span class="arguments">@NotNull
java.lang.String&nbsp;brandName)</span></div>
<div class="block">Changes the server brand name and send the change to all connected players.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>brandName</code> - the server brand name</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.NullPointerException</code> - if <code>brandName</code> is null</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getRateLimit()">getRateLimit</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getRateLimit</span>()</div>
<div class="block">Gets the maximum number of packets a client can send over 1 second.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the packet count limit over 1 second, 0 if not enabled</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setRateLimit(int)">setRateLimit</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setRateLimit</span>&#8203;(<span class="arguments">int&nbsp;rateLimit)</span></div>
<div class="block">Changes the number of packet a client can send over 1 second without being disconnected.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rateLimit</code> - the number of packet, 0 to disable</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getMaxPacketSize()">getMaxPacketSize</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getMaxPacketSize</span>()</div>
<div class="block">Gets the maximum packet size (in bytes) that a client can send without getting disconnected.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the maximum packet size</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setMaxPacketSize(int)">setMaxPacketSize</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setMaxPacketSize</span>&#8203;(<span class="arguments">int&nbsp;maxPacketSize)</span></div>
<div class="block">Changes the maximum packet size (in bytes) that a client can send without getting disconnected.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxPacketSize</code> - the new max packet size</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getDifficulty()">getDifficulty</a></h3>
<div class="memberSignature"><span class="annotations">@NotNull
</span><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="world/Difficulty.html" title="enum in net.minestom.server.world">Difficulty</a></span>&nbsp;<span class="memberName">getDifficulty</span>()</div>
<div class="block">Gets the server difficulty showed in game option.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the server difficulty</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setDifficulty(net.minestom.server.world.Difficulty)">setDifficulty</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setDifficulty</span>&#8203;(<span class="arguments">@NotNull
<a href="world/Difficulty.html" title="enum in net.minestom.server.world">Difficulty</a>&nbsp;difficulty)</span></div>
<div class="block">Changes the server difficulty and send the appropriate packet to all connected clients.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>difficulty</code> - the new server difficulty</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getPacketListenerManager()">getPacketListenerManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="listener/manager/PacketListenerManager.html" title="class in net.minestom.server.listener.manager">PacketListenerManager</a></span>&nbsp;<span class="memberName">getPacketListenerManager</span>()</div>
<div class="block">Gets the manager handling all incoming packets</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the packet listener manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getNettyServer()">getNettyServer</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="network/netty/NettyServer.html" title="class in net.minestom.server.network.netty">NettyServer</a></span>&nbsp;<span class="memberName">getNettyServer</span>()</div>
<div class="block">Gets the netty server.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the netty server</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getInstanceManager()">getInstanceManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="instance/InstanceManager.html" title="class in net.minestom.server.instance">InstanceManager</a></span>&nbsp;<span class="memberName">getInstanceManager</span>()</div>
<div class="block">Gets the manager handling all registered instances.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the instance manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getBlockManager()">getBlockManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="instance/block/BlockManager.html" title="class in net.minestom.server.instance.block">BlockManager</a></span>&nbsp;<span class="memberName">getBlockManager</span>()</div>
<div class="block">Gets the manager handling <a href="instance/block/CustomBlock.html" title="class in net.minestom.server.instance.block"><code>CustomBlock</code></a> and <a href="instance/block/rule/BlockPlacementRule.html" title="class in net.minestom.server.instance.block.rule"><code>BlockPlacementRule</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the block manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getEntityManager()">getEntityManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="entity/EntityManager.html" title="class in net.minestom.server.entity">EntityManager</a></span>&nbsp;<span class="memberName">getEntityManager</span>()</div>
<div class="block">Gets the manager handling waiting players.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the entity manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getCommandManager()">getCommandManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="command/CommandManager.html" title="class in net.minestom.server.command">CommandManager</a></span>&nbsp;<span class="memberName">getCommandManager</span>()</div>
<div class="block">Gets the manager handling commands.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the command manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getRecipeManager()">getRecipeManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="recipe/RecipeManager.html" title="class in net.minestom.server.recipe">RecipeManager</a></span>&nbsp;<span class="memberName">getRecipeManager</span>()</div>
<div class="block">Gets the manager handling recipes show to the clients.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the recipe manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getStorageManager()">getStorageManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="storage/StorageManager.html" title="class in net.minestom.server.storage">StorageManager</a></span>&nbsp;<span class="memberName">getStorageManager</span>()</div>
<div class="block">Gets the manager handling storage.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the storage manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getDataManager()">getDataManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="data/DataManager.html" title="class in net.minestom.server.data">DataManager</a></span>&nbsp;<span class="memberName">getDataManager</span>()</div>
<div class="block">Gets the manager handling <a href="data/DataType.html" title="class in net.minestom.server.data"><code>DataType</code></a> used by <a href="data/SerializableData.html" title="interface in net.minestom.server.data"><code>SerializableData</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the data manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getTeamManager()">getTeamManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="scoreboard/TeamManager.html" title="class in net.minestom.server.scoreboard">TeamManager</a></span>&nbsp;<span class="memberName">getTeamManager</span>()</div>
<div class="block">Gets the manager handling teams.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the team manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getSchedulerManager()">getSchedulerManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="timer/SchedulerManager.html" title="class in net.minestom.server.timer">SchedulerManager</a></span>&nbsp;<span class="memberName">getSchedulerManager</span>()</div>
<div class="block">Gets the manager handling scheduled tasks.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the scheduler manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getBenchmarkManager()">getBenchmarkManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="benchmark/BenchmarkManager.html" title="class in net.minestom.server.benchmark">BenchmarkManager</a></span>&nbsp;<span class="memberName">getBenchmarkManager</span>()</div>
<div class="block">Gets the manager handling server monitoring.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the benchmark manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getConnectionManager()">getConnectionManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="network/ConnectionManager.html" title="class in net.minestom.server.network">ConnectionManager</a></span>&nbsp;<span class="memberName">getConnectionManager</span>()</div>
<div class="block">Gets the manager handling server connections.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the connection manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getPacketProcessor()">getPacketProcessor</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="network/PacketProcessor.html" title="class in net.minestom.server.network">PacketProcessor</a></span>&nbsp;<span class="memberName">getPacketProcessor</span>()</div>
<div class="block">Gets the object handling the client packets processing.
<p>
Can be used if you want to convert a buffer to a client packet object.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the packet processor</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="isStarted()">isStarted</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">boolean</span>&nbsp;<span class="memberName">isStarted</span>()</div>
<div class="block">Gets if the server is up and running.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the server is started</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getChunkViewDistance()">getChunkViewDistance</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getChunkViewDistance</span>()</div>
<div class="block">Gets the chunk view distance of the server.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the chunk view distance</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setChunkViewDistance(int)">setChunkViewDistance</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setChunkViewDistance</span>&#8203;(<span class="arguments">int&nbsp;chunkViewDistance)</span></div>
<div class="block">Changes the chunk view distance of the server.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>chunkViewDistance</code> - the new chunk view distance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if <code>chunkViewDistance</code> is not between 2 and 32</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getEntityViewDistance()">getEntityViewDistance</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getEntityViewDistance</span>()</div>
<div class="block">Gets the entity view distance of the server.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the entity view distance</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setEntityViewDistance(int)">setEntityViewDistance</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setEntityViewDistance</span>&#8203;(<span class="arguments">int&nbsp;entityViewDistance)</span></div>
<div class="block">Changes the entity view distance of the server.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>entityViewDistance</code> - the new entity view distance</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if <code>entityViewDistance</code> is not between 0 and 32</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getCompressionThreshold()">getCompressionThreshold</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">int</span>&nbsp;<span class="memberName">getCompressionThreshold</span>()</div>
<div class="block">Gets the compression threshold of the server.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the compression threshold, 0 means that compression is disabled</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setCompressionThreshold(int)">setCompressionThreshold</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setCompressionThreshold</span>&#8203;(<span class="arguments">int&nbsp;compressionThreshold)</span></div>
<div class="block">Changes the compression threshold of the server.
<p>
WARNING: this need to be called before <a href="#start(java.lang.String,int,net.minestom.server.ping.ResponseDataConsumer)"><code>start(String, int, ResponseDataConsumer)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>compressionThreshold</code> - the new compression threshold, 0 to disable compression</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - if this is called after the server started</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getResponseDataConsumer()">getResponseDataConsumer</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="ping/ResponseDataConsumer.html" title="interface in net.minestom.server.ping">ResponseDataConsumer</a></span>&nbsp;<span class="memberName">getResponseDataConsumer</span>()</div>
<div class="block">Gets the consumer executed to show server-list data.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the response data consumer</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getLootTableManager()">getLootTableManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="gamedata/loottables/LootTableManager.html" title="class in net.minestom.server.gamedata.loottables">LootTableManager</a></span>&nbsp;<span class="memberName">getLootTableManager</span>()</div>
<div class="block">Gets the manager handling loot tables.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the loot table manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getDimensionTypeManager()">getDimensionTypeManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="world/DimensionTypeManager.html" title="class in net.minestom.server.world">DimensionTypeManager</a></span>&nbsp;<span class="memberName">getDimensionTypeManager</span>()</div>
<div class="block">Gets the manager handling dimensions.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the dimension manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getBiomeManager()">getBiomeManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="world/biomes/BiomeManager.html" title="class in net.minestom.server.world.biomes">BiomeManager</a></span>&nbsp;<span class="memberName">getBiomeManager</span>()</div>
<div class="block">Gets the manager handling biomes.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the biome manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getAdvancementManager()">getAdvancementManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="advancements/AdvancementManager.html" title="class in net.minestom.server.advancements">AdvancementManager</a></span>&nbsp;<span class="memberName">getAdvancementManager</span>()</div>
<div class="block">Gets the manager handling advancements.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the advancement manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getExtensionManager()">getExtensionManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="extensions/ExtensionManager.html" title="class in net.minestom.server.extensions">ExtensionManager</a></span>&nbsp;<span class="memberName">getExtensionManager</span>()</div>
<div class="block">Get the manager handling <a href="extensions/Extension.html" title="class in net.minestom.server.extensions"><code>Extension</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the extension manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getTagManager()">getTagManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="gamedata/tags/TagManager.html" title="class in net.minestom.server.gamedata.tags">TagManager</a></span>&nbsp;<span class="memberName">getTagManager</span>()</div>
<div class="block">Gets the manager handling tags.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the tag manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getUpdateManager()">getUpdateManager</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType"><a href="UpdateManager.html" title="class in net.minestom.server">UpdateManager</a></span>&nbsp;<span class="memberName">getUpdateManager</span>()</div>
<div class="block">Gets the manager handling the server ticks.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the update manager</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="start(java.lang.String,int,net.minestom.server.ping.ResponseDataConsumer)">start</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">start</span>&#8203;(<span class="arguments">@NotNull
java.lang.String&nbsp;address,
int&nbsp;port,
@Nullable
<a href="ping/ResponseDataConsumer.html" title="interface in net.minestom.server.ping">ResponseDataConsumer</a>&nbsp;responseDataConsumer)</span></div>
<div class="block">Starts the server.
<p>
It should be called after <a href="#init()"><code>init()</code></a> and probably your own initialization code.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>address</code> - the server address</dd>
<dd><code>port</code> - the server port</dd>
<dd><code>responseDataConsumer</code> - the response data consumer, can be null</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalStateException</code> - if called before <a href="#init()"><code>init()</code></a> or if the server is already running</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="start(java.lang.String,int)">start</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">start</span>&#8203;(<span class="arguments">@NotNull
java.lang.String&nbsp;address,
int&nbsp;port)</span></div>
<div class="block">Starts the server.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>address</code> - the server address</dd>
<dd><code>port</code> - the server port</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#start(java.lang.String,int,net.minestom.server.ping.ResponseDataConsumer)"><code>start(String, int, ResponseDataConsumer)</code></a></dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="stopCleanly()">stopCleanly</a></h3>
<div class="memberSignature"><span class="modifiers">public static</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">stopCleanly</span>()</div>
<div class="block">Stops this server properly (saves if needed, kicking players, etc.)</div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</div>
</div>
</body>
</html>