mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-09-06 07:48:13 +00:00
4046 lines
424 KiB
HTML
4046 lines
424 KiB
HTML
|
<!DOCTYPE HTML>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<!-- Generated by javadoc (17) -->
|
||
|
<title>Bukkit (Scissors-API 1.18.2-R0.1-SNAPSHOT API)</title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
<meta name="description" content="declaration: package: org.bukkit, class: Bukkit">
|
||
|
<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.min.css" title="Style">
|
||
|
<link rel="stylesheet" type="text/css" href="../../jquery-ui.overrides.css" title="Style">
|
||
|
<script type="text/javascript" src="../../script.js"></script>
|
||
|
<script type="text/javascript" src="../../script-dir/jquery-3.5.1.min.js"></script>
|
||
|
<script type="text/javascript" src="../../script-dir/jquery-ui.min.js"></script>
|
||
|
</head>
|
||
|
<body class="class-declaration-page">
|
||
|
<script type="text/javascript">var evenRowColor = "even-row-color";
|
||
|
var oddRowColor = "odd-row-color";
|
||
|
var tableTab = "table-tab";
|
||
|
var activeTableTab = "active-table-tab";
|
||
|
var pathtoroot = "../../";
|
||
|
loadScripts(document, 'script');</script>
|
||
|
<noscript>
|
||
|
<div>JavaScript is disabled on your browser.</div>
|
||
|
</noscript>
|
||
|
<div class="flex-box">
|
||
|
<header role="banner" class="flex-header">
|
||
|
<nav role="navigation">
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<div class="top-nav" id="navbar-top">
|
||
|
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
||
|
<li><a href="../../index.html">Overview</a></li>
|
||
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
<li class="nav-bar-cell1-rev">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#class">Help</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="sub-nav">
|
||
|
<div>
|
||
|
<ul class="sub-nav-list">
|
||
|
<li>Summary: </li>
|
||
|
<li>Nested | </li>
|
||
|
<li>Field | </li>
|
||
|
<li>Constr | </li>
|
||
|
<li><a href="#method-summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="sub-nav-list">
|
||
|
<li>Detail: </li>
|
||
|
<li>Field | </li>
|
||
|
<li>Constr | </li>
|
||
|
<li><a href="#method-detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
|
||
|
<input type="text" id="search-input" value="search" disabled="disabled">
|
||
|
<input type="reset" id="reset-button" value="reset" disabled="disabled">
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||
|
</header>
|
||
|
<div class="flex-content">
|
||
|
<main role="main">
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<div class="header">
|
||
|
<div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.bukkit</a></div>
|
||
|
<h1 title="Class Bukkit" class="title">Class Bukkit</h1>
|
||
|
</div>
|
||
|
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||
|
<div class="inheritance">org.bukkit.Bukkit</div>
|
||
|
</div>
|
||
|
<section class="class-description" id="class-description">
|
||
|
<hr>
|
||
|
<div class="type-signature"><span class="modifiers">public final class </span><span class="element-name type-name-label">Bukkit</span>
|
||
|
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span></div>
|
||
|
<div class="block">Represents the Bukkit core, for version and Server singleton handling</div>
|
||
|
</section>
|
||
|
<section class="summary">
|
||
|
<ul class="summary-list">
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
<li>
|
||
|
<section class="method-summary" id="method-summary">
|
||
|
<h2>Method Summary</h2>
|
||
|
<div id="method-summary-table">
|
||
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated Methods</button></div>
|
||
|
<div id="method-summary-table.tabpanel" role="tabpanel">
|
||
|
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
|
||
|
<div class="table-header col-first">Modifier and Type</div>
|
||
|
<div class="table-header col-second">Method</div>
|
||
|
<div class="table-header col-last">Description</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#addRecipe(org.bukkit.inventory.Recipe)" class="member-name-link">addRecipe</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a> recipe)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Adds a recipe to the crafting manager.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a><<a href="advancement/Advancement.html" title="interface in org.bukkit.advancement">Advancement</a>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#advancementIterator()" class="member-name-link">advancementIterator</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get an iterator through all advancements.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#banIP(java.lang.String)" class="member-name-link">banIP</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> address)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Bans the specified address from the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#broadcast(java.lang.String,java.lang.String)" class="member-name-link">broadcast</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> message,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> permission)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#broadcast(net.kyori.adventure.text.Component,java.lang.String)"><code>broadcast(net.kyori.adventure.text.Component, String)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#broadcast(net.md_5.bungee.api.chat.BaseComponent...)" class="member-name-link">broadcast</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> net.md_5.bungee.api.chat.BaseComponent... components)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <code>sendMessage</code> methods on <a href="#getServer()"><code>getServer()</code></a> that accept <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>Component</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#broadcast(net.kyori.adventure.text.Component)" class="member-name-link">broadcast</a><wbr>(<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> message)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Broadcast a message to all players.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#broadcast(net.kyori.adventure.text.Component,java.lang.String)" class="member-name-link">broadcast</a><wbr>(<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> message,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> permission)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Broadcasts the specified message to every user with the given
|
||
|
permission name.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#broadcast(net.md_5.bungee.api.chat.BaseComponent)" class="member-name-link">broadcast</a><wbr>(net.md_5.bungee.api.chat.BaseComponent component)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <code>sendMessage</code> methods on <a href="#getServer()"><code>getServer()</code></a> that accept <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>Component</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#broadcastMessage(java.lang.String)" class="member-name-link">broadcastMessage</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> message)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="Server.html#broadcast(net.kyori.adventure.text.Component)"><code>Server.broadcast(net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#clearRecipes()" class="member-name-link">clearRecipes</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Clears the list of crafting recipes.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#craftItem(org.bukkit.inventory.ItemStack%5B%5D,org.bukkit.World,org.bukkit.entity.Player)" class="member-name-link">craftItem</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a>[] craftingMatrix,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a> player)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the crafted item using the list of <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>ItemStack</code></a> provided.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createBlockData(java.lang.String)" class="member-name-link">createBlockData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> data)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance with material and properties
|
||
|
parsed from provided data.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createBlockData(org.bukkit.Material)" class="member-name-link">createBlockData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance for the specified Material, with
|
||
|
all properties initialized to unspecified defaults.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createBlockData(org.bukkit.Material,java.util.function.Consumer)" class="member-name-link">createBlockData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a>> consumer)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance for the specified Material, with
|
||
|
all properties initialized to unspecified defaults.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createBlockData(org.bukkit.Material,java.lang.String)" class="member-name-link">createBlockData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> data)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance for the specified Material, with
|
||
|
all properties initialized to unspecified defaults, except for those
|
||
|
provided in data.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss">KeyedBossBar</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createBossBar(org.bukkit.NamespacedKey,java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)" class="member-name-link">createBossBar</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarColor.html" title="enum class in org.bukkit.boss">BarColor</a> color,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarStyle.html" title="enum class in org.bukkit.boss">BarStyle</a> style,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarFlag.html" title="enum class in org.bukkit.boss">BarFlag</a>... flags)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a boss bar instance to display to players.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BossBar.html" title="interface in org.bukkit.boss">BossBar</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createBossBar(java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)" class="member-name-link">createBossBar</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarColor.html" title="enum class in org.bukkit.boss">BarColor</a> color,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarStyle.html" title="enum class in org.bukkit.boss">BarStyle</a> style,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarFlag.html" title="enum class in org.bukkit.boss">BarFlag</a>... flags)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a boss bar instance to display to players.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="generator/ChunkGenerator.ChunkData.html" title="interface in org.bukkit.generator">ChunkGenerator.ChunkData</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createChunkData(org.bukkit.World)" class="member-name-link">createChunkData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Create a ChunkData for use in a generator.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createCommandSender(java.util.function.Consumer)" class="member-name-link">createCommandSender</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><? super <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>> feedback)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a special <a href="command/CommandSender.html" title="interface in org.bukkit.command"><code>CommandSender</code></a> which redirects command feedback (in the form of chat messages) to the
|
||
|
specified listener.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createExplorerMap(org.bukkit.World,org.bukkit.Location,org.bukkit.StructureType)" class="member-name-link">createExplorerMap</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Location.html" title="class in org.bukkit">Location</a> location,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="StructureType.html" title="class in org.bukkit">StructureType</a> structureType)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Create a new explorer map targeting the closest nearby structure of a
|
||
|
given <a href="StructureType.html" title="class in org.bukkit"><code>StructureType</code></a>.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createExplorerMap(org.bukkit.World,org.bukkit.Location,org.bukkit.StructureType,int,boolean)" class="member-name-link">createExplorerMap</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Location.html" title="class in org.bukkit">Location</a> location,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="StructureType.html" title="class in org.bukkit">StructureType</a> structureType,
|
||
|
int radius,
|
||
|
boolean findUnexplored)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Create a new explorer map targeting the closest nearby structure of a
|
||
|
given <a href="StructureType.html" title="class in org.bukkit"><code>StructureType</code></a>.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createInventory(org.bukkit.inventory.InventoryHolder,int)" class="member-name-link">createInventory</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
int size)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates an empty inventory of type <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a> with the
|
||
|
specified size.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createInventory(org.bukkit.inventory.InventoryHolder,int,java.lang.String)" class="member-name-link">createInventory</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
int size,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,net.kyori.adventure.text.Component)"><code>createInventory(InventoryHolder, InventoryType, net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createInventory(org.bukkit.inventory.InventoryHolder,int,net.kyori.adventure.text.Component)" class="member-name-link">createInventory</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
int size,
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates an empty inventory of type <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a> with the
|
||
|
specified size and title.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType)" class="member-name-link">createInventory</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory">InventoryType</a> type)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates an empty inventory with the specified type.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,java.lang.String)" class="member-name-link">createInventory</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory">InventoryType</a> type,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,net.kyori.adventure.text.Component)"><code>createInventory(InventoryHolder, InventoryType, net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,net.kyori.adventure.text.Component)" class="member-name-link">createInventory</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory">InventoryType</a> type,
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates an empty inventory with the specified type and title.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="map/MapView.html" title="interface in org.bukkit.map">MapView</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createMap(org.bukkit.World)" class="member-name-link">createMap</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Create a new map with an automatically assigned ID.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Merchant.html" title="interface in org.bukkit.inventory">Merchant</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createMerchant(java.lang.String)" class="member-name-link">createMerchant</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#createMerchant(net.kyori.adventure.text.Component)"><code>createMerchant(net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Merchant.html" title="interface in org.bukkit.inventory">Merchant</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createMerchant(net.kyori.adventure.text.Component)" class="member-name-link">createMerchant</a><wbr>(<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates an empty merchant.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createPlayerProfile(java.lang.String)" class="member-name-link">createPlayerProfile</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <a href="#createProfile(java.lang.String)"><code>createProfile(String)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createPlayerProfile(java.util.UUID)" class="member-name-link">createPlayerProfile</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uniqueId)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <a href="#createProfile(java.util.UUID)"><code>createProfile(UUID)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createPlayerProfile(java.util.UUID,java.lang.String)" class="member-name-link">createPlayerProfile</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uniqueId,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <a href="#createProfile(java.util.UUID,java.lang.String)"><code>createProfile(UUID, String)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createProfile(java.lang.String)" class="member-name-link">createProfile</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a PlayerProfile for the specified name, with UUID as null.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createProfile(java.util.UUID)" class="member-name-link">createProfile</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a PlayerProfile for the specified uuid, with name as null.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createProfile(java.util.UUID,java.lang.String)" class="member-name-link">createProfile</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a PlayerProfile for the specified name/uuid
|
||
|
|
||
|
Both UUID and Name can not be null at same time.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createProfileExact(java.util.UUID,java.lang.String)" class="member-name-link">createProfileExact</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates an exact PlayerProfile for the specified name/uuid
|
||
|
|
||
|
Both UUID and Name can not be null at same time.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="generator/ChunkGenerator.ChunkData.html" title="interface in org.bukkit.generator">ChunkGenerator.ChunkData</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#createVanillaChunkData(org.bukkit.World,int,int)" class="member-name-link">createVanillaChunkData</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
int x,
|
||
|
int z)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span>
|
||
|
<div class="deprecation-comment">The new multi-stage worldgen API allows a similar effect by overriding all of the "shouldGenerate..." methods to
|
||
|
return true, and then modifying the chunkdata in a later stage such as surface or bedrock generation.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createWorld(org.bukkit.WorldCreator)" class="member-name-link">createWorld</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="WorldCreator.html" title="class in org.bukkit">WorldCreator</a> creator)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates or loads a world with the given name using the specified
|
||
|
options.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="WorldBorder.html" title="interface in org.bukkit">WorldBorder</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#createWorldBorder()" class="member-name-link">createWorldBorder</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Create a new virtual <a href="WorldBorder.html" title="interface in org.bukkit"><code>WorldBorder</code></a>.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#dispatchCommand(org.bukkit.command.CommandSender,java.lang.String)" class="member-name-link">dispatchCommand</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a> sender,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> commandLine)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Dispatches a command on this server, and executes it if found.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="advancement/Advancement.html" title="interface in org.bukkit.advancement">Advancement</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getAdvancement(org.bukkit.NamespacedKey)" class="member-name-link">getAdvancement</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the advancement specified by this key.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getAllowEnd()" class="member-name-link">getAllowEnd</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether this server allows the End or not.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getAllowFlight()" class="member-name-link">getAllowFlight</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether this server allows flying or not.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getAllowNether()" class="member-name-link">getAllowNether</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether this server allows the Nether or not.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getAmbientSpawnLimit()" class="member-name-link">getAmbientSpawnLimit</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getAnimalSpawnLimit()" class="member-name-link">getAnimalSpawnLimit</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static double</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getAverageTickTime()" class="member-name-link">getAverageTickTime</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the average tick time (in millis)</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BanList.html" title="interface in org.bukkit">BanList</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getBanList(org.bukkit.BanList.Type)" class="member-name-link">getBanList</a><wbr>(<a href="BanList.Type.html" title="enum class in org.bukkit">BanList.Type</a> type)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a ban list for the supplied type.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getBannedPlayers()" class="member-name-link">getBannedPlayers</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a set containing all banned players.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss">KeyedBossBar</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getBossBar(org.bukkit.NamespacedKey)" class="member-name-link">getBossBar</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss"><code>KeyedBossBar</code></a> specified by this key.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a><<a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss">KeyedBossBar</a>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getBossBars()" class="member-name-link">getBossBars</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets an unmodifiable iterator through all persistent bossbars.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getBukkitVersion()" class="member-name-link">getBukkitVersion</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the Bukkit version that this server is running.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[]></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getCommandAliases()" class="member-name-link">getCommandAliases</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a list of command aliases defined in the server properties.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="command/CommandMap.html" title="interface in org.bukkit.command">CommandMap</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getCommandMap()" class="member-name-link">getCommandMap</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the active <a href="command/CommandMap.html" title="interface in org.bukkit.command"><code>CommandMap</code></a></div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static long</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getConnectionThrottle()" class="member-name-link">getConnectionThrottle</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the value of the connection throttle setting.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/ConsoleCommandSender.html" title="interface in org.bukkit.command">ConsoleCommandSender</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getConsoleSender()" class="member-name-link">getConsoleSender</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a <a href="command/ConsoleCommandSender.html" title="interface in org.bukkit.command"><code>ConsoleCommandSender</code></a> that may be used as an input source
|
||
|
for this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getCraftingRecipe(org.bukkit.inventory.ItemStack%5B%5D,org.bukkit.World)" class="member-name-link">getCraftingRecipe</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a>[] craftingMatrix,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory"><code>Recipe</code></a> for the list of ItemStacks provided.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getCurrentTick()" class="member-name-link">getCurrentTick</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="../../io/papermc/paper/datapack/DatapackManager.html" title="interface in io.papermc.paper.datapack">DatapackManager</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDatapackManager()" class="member-name-link">getDatapackManager</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="GameMode.html" title="enum class in org.bukkit">GameMode</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getDefaultGameMode()" class="member-name-link">getDefaultGameMode</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the default <a href="GameMode.html" title="enum class in org.bukkit"><code>GameMode</code></a> for new players.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getEntity(java.util.UUID)" class="member-name-link">getEntity</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets an entity on the server by its UUID</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getGenerateStructures()" class="member-name-link">getGenerateStructures</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get generate-structures setting.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="help/HelpMap.html" title="interface in org.bukkit.help">HelpMap</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getHelpMap()" class="member-name-link">getHelpMap</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the <a href="help/HelpMap.html" title="interface in org.bukkit.help"><code>HelpMap</code></a> providing help topics for this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getHideOnlinePlayers()" class="member-name-link">getHideOnlinePlayers</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether the Server hide online players in server status.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getIdleTimeout()" class="member-name-link">getIdleTimeout</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the idle kick timeout.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getIp()" class="member-name-link">getIp</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the IP that this server is bound to, or empty string if not
|
||
|
specified.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getIPBans()" class="member-name-link">getIPBans</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a set containing all current IPs that are banned.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemFactory.html" title="interface in org.bukkit.inventory">ItemFactory</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getItemFactory()" class="member-name-link">getItemFactory</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the instance of the item factory (for <a href="inventory/meta/ItemMeta.html" title="interface in org.bukkit.inventory.meta"><code>ItemMeta</code></a>).</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html" title="class or interface in java.util.logging" class="external-link">Logger</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getLogger()" class="member-name-link">getLogger</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Returns the primary logger associated with this server instance.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="loot/LootTable.html" title="interface in org.bukkit.loot">LootTable</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getLootTable(org.bukkit.NamespacedKey)" class="member-name-link">getLootTable</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the specified <a href="loot/LootTable.html" title="interface in org.bukkit.loot"><code>LootTable</code></a>.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="map/MapView.html" title="interface in org.bukkit.map">MapView</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getMap(int)" class="member-name-link">getMap</a><wbr>(int id)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Magic value</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMaxPlayers()" class="member-name-link">getMaxPlayers</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the maximum amount of players which can login to this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMaxWorldSize()" class="member-name-link">getMaxWorldSize</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get max world size.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="plugin/messaging/Messenger.html" title="interface in org.bukkit.plugin.messaging">Messenger</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMessenger()" class="member-name-link">getMessenger</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the <a href="plugin/messaging/Messenger.html" title="interface in org.bukkit.plugin.messaging"><code>Messenger</code></a> responsible for this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMinecraftVersion()" class="member-name-link">getMinecraftVersion</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the version of game this server implements</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="../../com/destroystokyo/paper/entity/ai/MobGoals.html" title="interface in com.destroystokyo.paper.entity.ai">MobGoals</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getMobGoals()" class="member-name-link">getMobGoals</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Returns the <a href="../../com/destroystokyo/paper/entity/ai/MobGoals.html" title="interface in com.destroystokyo.paper.entity.ai"><code>MobGoals</code></a> manager</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getMonsterSpawnLimit()" class="member-name-link">getMonsterSpawnLimit</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getMotd()" class="member-name-link">getMotd</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#motd()"><code>motd()</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getName()" class="member-name-link">getName</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the name of this server implementation.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOfflinePlayer(java.lang.String)" class="member-name-link">getOfflinePlayer</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the player by the given name, regardless if they are offline or
|
||
|
online.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOfflinePlayer(java.util.UUID)" class="member-name-link">getOfflinePlayer</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> id)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the player by the given UUID, regardless if they are offline or
|
||
|
online.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOfflinePlayerIfCached(java.lang.String)" class="member-name-link">getOfflinePlayerIfCached</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the player by the given name, regardless if they are offline or
|
||
|
online.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>[]</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOfflinePlayers()" class="member-name-link">getOfflinePlayers</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets every player that has ever played on this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOnlineMode()" class="member-name-link">getOnlineMode</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether the Server is in online mode or not.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><? extends <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOnlinePlayers()" class="member-name-link">getOnlinePlayers</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a view of all currently logged in players.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getOperators()" class="member-name-link">getOperators</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a set containing all player operators.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPermissionMessage()" class="member-name-link">getPermissionMessage</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPlayer(java.lang.String)" class="member-name-link">getPlayer</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a player object by the given username.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPlayer(java.util.UUID)" class="member-name-link">getPlayer</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> id)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the player with the given UUID.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPlayerExact(java.lang.String)" class="member-name-link">getPlayerExact</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the player with the exact given name, case insensitive.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPlayerUniqueId(java.lang.String)" class="member-name-link">getPlayerUniqueId</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> playerName)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the unique ID of the player currently known as the specified player name
|
||
|
In Offline Mode, will return an Offline UUID</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="command/PluginCommand.html" title="class in org.bukkit.command">PluginCommand</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPluginCommand(java.lang.String)" class="member-name-link">getPluginCommand</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a <a href="command/PluginCommand.html" title="class in org.bukkit.command"><code>PluginCommand</code></a> with the given name or alias.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="plugin/PluginManager.html" title="interface in org.bukkit.plugin">PluginManager</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPluginManager()" class="member-name-link">getPluginManager</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the plugin manager for interfacing with plugins.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPluginsFolder()" class="member-name-link">getPluginsFolder</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Returns the de facto plugins directory, generally used for storing plugin jars to be loaded,
|
||
|
as well as their <a href="plugin/Plugin.html#getDataFolder()"><code>data folders</code></a>.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPort()" class="member-name-link">getPort</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the game port that the server runs on.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="potion/PotionBrewer.html" title="interface in org.bukkit.potion">PotionBrewer</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getPotionBrewer()" class="member-name-link">getPotionBrewer</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the potion brewer.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getRecipe(org.bukkit.NamespacedKey)" class="member-name-link">getRecipe</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> recipeKey)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory"><code>Recipe</code></a> for the given key.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a>></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getRecipesFor(org.bukkit.inventory.ItemStack)" class="member-name-link">getRecipesFor</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> result)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get a list of all recipes for a given item.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getResourcePack()" class="member-name-link">getResourcePack</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the server resource pack uri, or empty string if not specified.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getResourcePackHash()" class="member-name-link">getResourcePackHash</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the SHA-1 digest of the server resource pack, or empty string if
|
||
|
not specified.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getResourcePackPrompt()" class="member-name-link">getResourcePackPrompt</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the custom prompt message to be shown when the server resource
|
||
|
pack is required, or empty string if not specified.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="scheduler/BukkitScheduler.html" title="interface in org.bukkit.scheduler">BukkitScheduler</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getScheduler()" class="member-name-link">getScheduler</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the scheduler for managing scheduled events.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="scoreboard/ScoreboardManager.html" title="interface in org.bukkit.scoreboard">ScoreboardManager</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getScoreboardManager()" class="member-name-link">getScoreboardManager</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the instance of the scoreboard manager.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Server.html" title="interface in org.bukkit">Server</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getServer()" class="member-name-link">getServer</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the current <a href="Server.html" title="interface in org.bukkit"><code>Server</code></a> singleton</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="util/CachedServerIcon.html" title="interface in org.bukkit.util">CachedServerIcon</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getServerIcon()" class="member-name-link">getServerIcon</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets an instance of the server's default server-icon.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="plugin/ServicesManager.html" title="interface in org.bukkit.plugin">ServicesManager</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getServicesManager()" class="member-name-link">getServicesManager</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a services manager.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getShutdownMessage()" class="member-name-link">getShutdownMessage</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#shutdownMessage()"><code>shutdownMessage()</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getSimulationDistance()" class="member-name-link">getSimulationDistance</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the simulation distance from this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)" class="member-name-link">getSpawnLimit</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity">SpawnCategory</a> spawnCategory)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets user-specified limit for number of <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> mobs that can spawn in
|
||
|
a chunk.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getSpawnRadius()" class="member-name-link">getSpawnRadius</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the radius, in blocks, around each worlds spawn point to protect.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="structure/StructureManager.html" title="interface in org.bukkit.structure">StructureManager</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getStructureManager()" class="member-name-link">getStructureManager</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the structure manager for loading and saving structures.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T extends <a href="Keyed.html" title="interface in org.bukkit">Keyed</a>><br><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="Tag.html" title="interface in org.bukkit">Tag</a><T></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getTag(java.lang.String,org.bukkit.NamespacedKey,java.lang.Class)" class="member-name-link">getTag</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> registry,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> tag,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><T> clazz)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a tag which has already been defined within the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <T extends <a href="Keyed.html" title="interface in org.bukkit">Keyed</a>><br><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html" title="class or interface in java.lang" class="external-link">Iterable</a><<a href="Tag.html" title="interface in org.bukkit">Tag</a><T>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getTags(java.lang.String,java.lang.Class)" class="member-name-link">getTags</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> registry,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><T> clazz)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a all tags which have been defined within the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getTicksPerAmbientSpawns()" class="member-name-link">getTicksPerAmbientSpawns</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getTicksPerAnimalSpawns()" class="member-name-link">getTicksPerAnimalSpawns</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getTicksPerMonsterSpawns()" class="member-name-link">getTicksPerMonsterSpawns</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)" class="member-name-link">getTicksPerSpawns</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity">SpawnCategory</a> spawnCategory)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the default ticks per <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> spawns value.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getTicksPerWaterAmbientSpawns()" class="member-name-link">getTicksPerWaterAmbientSpawns</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getTicksPerWaterSpawns()" class="member-name-link">getTicksPerWaterSpawns</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getTicksPerWaterUndergroundCreatureSpawns()" class="member-name-link">getTicksPerWaterUndergroundCreatureSpawns</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static @org.jetbrains.annotations.NotNull long[]</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getTickTimes()" class="member-name-link">getTickTimes</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get a sample of the servers last tick times (in nanos)</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static @org.jetbrains.annotations.NotNull double[]</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getTPS()" class="member-name-link">getTPS</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the current server TPS</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="UnsafeValues.html" title="interface in org.bukkit">UnsafeValues</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getUnsafe()" class="member-name-link">getUnsafe</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getUpdateFolder()" class="member-name-link">getUpdateFolder</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the name of the update folder.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getUpdateFolderFile()" class="member-name-link">getUpdateFolderFile</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the update folder.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getVersion()" class="member-name-link">getVersion</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the version string of this server implementation.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getVersionMessage()" class="member-name-link">getVersionMessage</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets message describing the version server is running.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getViewDistance()" class="member-name-link">getViewDistance</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get the view distance from this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Warning.WarningState.html" title="enum class in org.bukkit">Warning.WarningState</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWarningState()" class="member-name-link">getWarningState</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the current warning state for the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getWaterAmbientSpawnLimit()" class="member-name-link">getWaterAmbientSpawnLimit</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getWaterAnimalSpawnLimit()" class="member-name-link">getWaterAnimalSpawnLimit</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static int</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getWaterUndergroundCreatureSpawnLimit()" class="member-name-link">getWaterUndergroundCreatureSpawnLimit</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6">
|
||
|
<div class="block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWhitelistedPlayers()" class="member-name-link">getWhitelistedPlayers</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a list of whitelisted players.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWorld(java.lang.String)" class="member-name-link">getWorld</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the world with the given name.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWorld(java.util.UUID)" class="member-name-link">getWorld</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uid)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the world from the given Unique ID.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWorld(org.bukkit.NamespacedKey)" class="member-name-link">getWorld</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> worldKey)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the world from the given NamespacedKey</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWorldContainer()" class="member-name-link">getWorldContainer</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the folder that contains all of the various <a href="World.html" title="interface in org.bukkit"><code>World</code></a>s.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="World.html" title="interface in org.bukkit">World</a>></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWorlds()" class="member-name-link">getWorlds</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets a list of all worlds on this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getWorldType()" class="member-name-link">getWorldType</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get world type (level-type setting) for default world.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#hasWhitelist()" class="member-name-link">hasWhitelist</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether this server has a whitelist or not.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isHardcore()" class="member-name-link">isHardcore</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether the server is in hardcore mode or not.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isPrimaryThread()" class="member-name-link">isPrimaryThread</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Checks the current thread against the expected primary thread for the
|
||
|
server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isResourcePackRequired()" class="member-name-link">isResourcePackRequired</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether the server resource pack is enforced.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isStopping()" class="member-name-link">isStopping</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Checks if the server is in the process of being shutdown.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#isWhitelistEnforced()" class="member-name-link">isWhitelistEnforced</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets whether the server whitelist is enforced.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="util/CachedServerIcon.html" title="interface in org.bukkit.util">CachedServerIcon</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#loadServerIcon(java.awt.image.BufferedImage)" class="member-name-link">loadServerIcon</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/image/BufferedImage.html" title="class or interface in java.awt.image" class="external-link">BufferedImage</a> image)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Creates a cached server-icon for the specific image.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="util/CachedServerIcon.html" title="interface in org.bukkit.util">CachedServerIcon</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#loadServerIcon(java.io.File)" class="member-name-link">loadServerIcon</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a> file)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Loads an image from a file, and returns a cached image for the specific
|
||
|
server-icon.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a>></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#matchPlayer(java.lang.String)" class="member-name-link">matchPlayer</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Attempts to match any players with the given name, and returns a list
|
||
|
of all possibly matches.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#motd()" class="member-name-link">motd</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the message that is displayed on the server list.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a><<a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a>></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#recipeIterator()" class="member-name-link">recipeIterator</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Get an iterator through the list of crafting recipes.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#reload()" class="member-name-link">reload</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Reloads the server, refreshing settings and plugin information.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#reloadCommandAliases()" class="member-name-link">reloadCommandAliases</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Reload the Command Aliases in commands.yml</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#reloadData()" class="member-name-link">reloadData</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Reload only the Minecraft data for the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#reloadPermissions()" class="member-name-link">reloadPermissions</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Reload the Permissions in permissions.yml</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#reloadWhitelist()" class="member-name-link">reloadWhitelist</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Reloads the whitelist from disk.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#removeBossBar(org.bukkit.NamespacedKey)" class="member-name-link">removeBossBar</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Removes a <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss"><code>KeyedBossBar</code></a> specified by this key.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#removeRecipe(org.bukkit.NamespacedKey)" class="member-name-link">removeRecipe</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Remove a recipe from the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#resetRecipes()" class="member-name-link">resetRecipes</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Resets the list of crafting recipes to the default.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#savePlayers()" class="member-name-link">savePlayers</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Writes loaded players to disk.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#selectEntities(org.bukkit.command.CommandSender,java.lang.String)" class="member-name-link">selectEntities</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a> sender,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> selector)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Selects entities using the given Vanilla selector.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setDefaultGameMode(org.bukkit.GameMode)" class="member-name-link">setDefaultGameMode</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="GameMode.html" title="enum class in org.bukkit">GameMode</a> mode)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Sets the default <a href="GameMode.html" title="enum class in org.bukkit"><code>GameMode</code></a> for new players.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setIdleTimeout(int)" class="member-name-link">setIdleTimeout</a><wbr>(int threshold)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Set the idle kick timeout.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setMaxPlayers(int)" class="member-name-link">setMaxPlayers</a><wbr>(int maxPlayers)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Set the maximum amount of players which can login to this server.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setServer(org.bukkit.Server)" class="member-name-link">setServer</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Server.html" title="interface in org.bukkit">Server</a> server)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Attempts to set the <a href="Server.html" title="interface in org.bukkit"><code>Server</code></a> singleton.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setSpawnRadius(int)" class="member-name-link">setSpawnRadius</a><wbr>(int value)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Sets the radius, in blocks, around each worlds spawn point to protect.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setWhitelist(boolean)" class="member-name-link">setWhitelist</a><wbr>(boolean value)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Sets if the server is whitelisted.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#setWhitelistEnforced(boolean)" class="member-name-link">setWhitelistEnforced</a><wbr>(boolean value)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Sets if the server whitelist is enforced.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#shutdown()" class="member-name-link">shutdown</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Shutdowns the server, stopping everything.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#shutdownMessage()" class="member-name-link">shutdownMessage</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Gets the default message that is displayed when the server is stopped.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="Server.Spigot.html" title="class in org.bukkit">Server.Spigot</a></code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#spigot()" class="member-name-link">spigot</a>()</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#suggestPlayerNamesWhenNullTabCompletions()" class="member-name-link">suggestPlayerNamesWhenNullTabCompletions</a>()</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Checks if player names should be suggested when a command returns <code>null</code> as
|
||
|
their tab completion result.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static void</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#unbanIP(java.lang.String)" class="member-name-link">unbanIP</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> address)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Unbans the specified address from the server.</div>
|
||
|
</div>
|
||
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#unloadWorld(java.lang.String,boolean)" class="member-name-link">unloadWorld</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name,
|
||
|
boolean save)</code></div>
|
||
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Unloads a world with the given name.</div>
|
||
|
</div>
|
||
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static boolean</code></div>
|
||
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#unloadWorld(org.bukkit.World,boolean)" class="member-name-link">unloadWorld</a><wbr>(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
boolean save)</code></div>
|
||
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||
|
<div class="block">Unloads the given world.</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="inherited-list">
|
||
|
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||
|
<code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||
|
</section>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</section>
|
||
|
<section class="details">
|
||
|
<ul class="details-list">
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
<li>
|
||
|
<section class="method-details" id="method-detail">
|
||
|
<h2>Method Details</h2>
|
||
|
<ul class="member-list">
|
||
|
<li>
|
||
|
<section class="detail" id="getServer()">
|
||
|
<h3>getServer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Server.html" title="interface in org.bukkit">Server</a></span> <span class="element-name">getServer</span>()</div>
|
||
|
<div class="block">Gets the current <a href="Server.html" title="interface in org.bukkit"><code>Server</code></a> singleton</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>Server instance being ran</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPluginsFolder()">
|
||
|
<h3>getPluginsFolder</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a></span> <span class="element-name">getPluginsFolder</span>()</div>
|
||
|
<div class="block">Returns the de facto plugins directory, generally used for storing plugin jars to be loaded,
|
||
|
as well as their <a href="plugin/Plugin.html#getDataFolder()"><code>data folders</code></a>.
|
||
|
|
||
|
<p>Plugins should use <a href="plugin/Plugin.html#getDataFolder()"><code>Plugin.getDataFolder()</code></a> rather than traversing this
|
||
|
directory manually when determining the location in which to store their data and configuration files.</p></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>plugins directory</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setServer(org.bukkit.Server)">
|
||
|
<h3>setServer</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setServer</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Server.html" title="interface in org.bukkit">Server</a> server)</span></div>
|
||
|
<div class="block">Attempts to set the <a href="Server.html" title="interface in org.bukkit"><code>Server</code></a> singleton.
|
||
|
<p>
|
||
|
This cannot be done if the Server is already set.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>server</code> - Server instance</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getVersionMessage()">
|
||
|
<h3>getVersionMessage</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getVersionMessage</span>()</div>
|
||
|
<div class="block">Gets message describing the version server is running.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>message describing the version server is running</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getName()">
|
||
|
<h3>getName</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getName</span>()</div>
|
||
|
<div class="block">Gets the name of this server implementation.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>name of this server implementation</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getVersion()">
|
||
|
<h3>getVersion</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getVersion</span>()</div>
|
||
|
<div class="block">Gets the version string of this server implementation.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>version of this server implementation</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getBukkitVersion()">
|
||
|
<h3>getBukkitVersion</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getBukkitVersion</span>()</div>
|
||
|
<div class="block">Gets the Bukkit version that this server is running.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>version of Bukkit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMinecraftVersion()">
|
||
|
<h3>getMinecraftVersion</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getMinecraftVersion</span>()</div>
|
||
|
<div class="block">Gets the version of game this server implements</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>version of game</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOnlinePlayers()">
|
||
|
<h3>getOnlinePlayers</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html" title="class or interface in java.util" class="external-link">Collection</a><? extends <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a>></span> <span class="element-name">getOnlinePlayers</span>()</div>
|
||
|
<div class="block">Gets a view of all currently logged in players. This <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collections.html#unmodifiableCollection(java.util.Collection)" title="class or interface in java.util" class="external-link">view</a> is a reused
|
||
|
object, making some operations like <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html#size()" title="class or interface in java.util" class="external-link"><code>Collection.size()</code></a>
|
||
|
zero-allocation.
|
||
|
<p>
|
||
|
The collection is a view backed by the internal representation, such
|
||
|
that, changes to the internal state of the server will be reflected
|
||
|
immediately. However, the reuse of the returned collection (identity)
|
||
|
is not strictly guaranteed for future or all implementations. Casting
|
||
|
the collection, or relying on interface implementations (like <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link"><code>Serializable</code></a> or <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link"><code>List</code></a>), is deprecated.
|
||
|
<p>
|
||
|
Iteration behavior is undefined outside of self-contained main-thread
|
||
|
uses. Normal and immediate iterator use without consequences that
|
||
|
affect the collection are fully supported. The effects following
|
||
|
(non-exhaustive) <a href="entity/Entity.html#teleport(org.bukkit.Location)"><code>teleportation</code></a>,
|
||
|
<a href="entity/Damageable.html#setHealth(double)"><code>death</code></a>, and <a href="entity/Player.html#kickPlayer(java.lang.String)"><code>kicking</code></a> are undefined. Any use of this collection from
|
||
|
asynchronous threads is unsafe.
|
||
|
<p>
|
||
|
For safe consequential iteration or mimicking the old array behavior,
|
||
|
using <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Collection.html#toArray(T%5B%5D)" title="class or interface in java.util" class="external-link"><code>Collection.toArray(Object[])</code></a> is recommended. For making
|
||
|
snapshots, <a href="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ImmutableList.html#copyOf(java.util.Collection)" title="class or interface in com.google.common.collect" class="external-link"><code>ImmutableList.copyOf(Collection)</code></a> is recommended.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a view of currently online players.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMaxPlayers()">
|
||
|
<h3>getMaxPlayers</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getMaxPlayers</span>()</div>
|
||
|
<div class="block">Get the maximum amount of players which can login to this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the amount of players this server allows</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setMaxPlayers(int)">
|
||
|
<h3>setMaxPlayers</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setMaxPlayers</span><wbr><span class="parameters">(int maxPlayers)</span></div>
|
||
|
<div class="block">Set the maximum amount of players which can login to this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>maxPlayers</code> - the amount of players this server allows</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPort()">
|
||
|
<h3>getPort</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getPort</span>()</div>
|
||
|
<div class="block">Get the game port that the server runs on.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the port number of this server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getViewDistance()">
|
||
|
<h3>getViewDistance</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getViewDistance</span>()</div>
|
||
|
<div class="block">Get the view distance from this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the view distance from this server.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getSimulationDistance()">
|
||
|
<h3>getSimulationDistance</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getSimulationDistance</span>()</div>
|
||
|
<div class="block">Get the simulation distance from this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the simulation distance from this server.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getIp()">
|
||
|
<h3>getIp</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getIp</span>()</div>
|
||
|
<div class="block">Get the IP that this server is bound to, or empty string if not
|
||
|
specified.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the IP string that this server is bound to, otherwise empty
|
||
|
string</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWorldType()">
|
||
|
<h3>getWorldType</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getWorldType</span>()</div>
|
||
|
<div class="block">Get world type (level-type setting) for default world.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the value of level-type (e.g. DEFAULT, FLAT, DEFAULT_1_1)</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getGenerateStructures()">
|
||
|
<h3>getGenerateStructures</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">getGenerateStructures</span>()</div>
|
||
|
<div class="block">Get generate-structures setting.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if structure generation is enabled, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMaxWorldSize()">
|
||
|
<h3>getMaxWorldSize</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getMaxWorldSize</span>()</div>
|
||
|
<div class="block">Get max world size.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the maximum world size as specified for the server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAllowEnd()">
|
||
|
<h3>getAllowEnd</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">getAllowEnd</span>()</div>
|
||
|
<div class="block">Gets whether this server allows the End or not.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>whether this server allows the End or not</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAllowNether()">
|
||
|
<h3>getAllowNether</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">getAllowNether</span>()</div>
|
||
|
<div class="block">Gets whether this server allows the Nether or not.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>whether this server allows the Nether or not</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getResourcePack()">
|
||
|
<h3>getResourcePack</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getResourcePack</span>()</div>
|
||
|
<div class="block">Gets the server resource pack uri, or empty string if not specified.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the server resource pack uri, otherwise empty string</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getResourcePackHash()">
|
||
|
<h3>getResourcePackHash</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getResourcePackHash</span>()</div>
|
||
|
<div class="block">Gets the SHA-1 digest of the server resource pack, or empty string if
|
||
|
not specified.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the SHA-1 digest of the server resource pack, otherwise empty
|
||
|
string</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getResourcePackPrompt()">
|
||
|
<h3>getResourcePackPrompt</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getResourcePackPrompt</span>()</div>
|
||
|
<div class="block">Gets the custom prompt message to be shown when the server resource
|
||
|
pack is required, or empty string if not specified.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the custom prompt message to be shown when the server resource,
|
||
|
otherwise empty string</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="isResourcePackRequired()">
|
||
|
<h3>isResourcePackRequired</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">isResourcePackRequired</span>()</div>
|
||
|
<div class="block">Gets whether the server resource pack is enforced.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>whether the server resource pack is enforced</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="hasWhitelist()">
|
||
|
<h3>hasWhitelist</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">hasWhitelist</span>()</div>
|
||
|
<div class="block">Gets whether this server has a whitelist or not.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>whether this server has a whitelist or not</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setWhitelist(boolean)">
|
||
|
<h3>setWhitelist</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setWhitelist</span><wbr><span class="parameters">(boolean value)</span></div>
|
||
|
<div class="block">Sets if the server is whitelisted.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>value</code> - true for whitelist on, false for off</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="isWhitelistEnforced()">
|
||
|
<h3>isWhitelistEnforced</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">isWhitelistEnforced</span>()</div>
|
||
|
<div class="block">Gets whether the server whitelist is enforced.
|
||
|
|
||
|
If the whitelist is enforced, non-whitelisted players will be
|
||
|
disconnected when the server whitelist is reloaded.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>whether the server whitelist is enforced</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setWhitelistEnforced(boolean)">
|
||
|
<h3>setWhitelistEnforced</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setWhitelistEnforced</span><wbr><span class="parameters">(boolean value)</span></div>
|
||
|
<div class="block">Sets if the server whitelist is enforced.
|
||
|
|
||
|
If the whitelist is enforced, non-whitelisted players will be
|
||
|
disconnected when the server whitelist is reloaded.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>value</code> - true for enforced, false for not</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWhitelistedPlayers()">
|
||
|
<h3>getWhitelistedPlayers</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>></span> <span class="element-name">getWhitelistedPlayers</span>()</div>
|
||
|
<div class="block">Gets a list of whitelisted players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a set containing all whitelisted players</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="reloadWhitelist()">
|
||
|
<h3>reloadWhitelist</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">reloadWhitelist</span>()</div>
|
||
|
<div class="block">Reloads the whitelist from disk.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="broadcastMessage(java.lang.String)">
|
||
|
<h3>broadcastMessage</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">broadcastMessage</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> message)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="Server.html#broadcast(net.kyori.adventure.text.Component)"><code>Server.broadcast(net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Broadcast a message to all players.
|
||
|
<p>
|
||
|
This is the same as calling <a href="#broadcast(java.lang.String,java.lang.String)"><code>broadcast(java.lang.String, java.lang.String)</code></a> to <a href="Server.html#BROADCAST_CHANNEL_USERS"><code>Server.BROADCAST_CHANNEL_USERS</code></a></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>message</code> - the message</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the number of players</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="broadcast(net.md_5.bungee.api.chat.BaseComponent)">
|
||
|
<h3>broadcast</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">broadcast</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
net.md_5.bungee.api.chat.BaseComponent component)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <code>sendMessage</code> methods on <a href="#getServer()"><code>getServer()</code></a> that accept <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>Component</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Sends the component to all online players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>component</code> - the component to send</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="broadcast(net.md_5.bungee.api.chat.BaseComponent...)">
|
||
|
<h3>broadcast</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">broadcast</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> net.md_5.bungee.api.chat.BaseComponent... components)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <code>sendMessage</code> methods on <a href="#getServer()"><code>getServer()</code></a> that accept <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link"><code>Component</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Sends an array of components as a single message to all online players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>components</code> - the components to send</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getUpdateFolder()">
|
||
|
<h3>getUpdateFolder</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getUpdateFolder</span>()</div>
|
||
|
<div class="block">Gets the name of the update folder. The update folder is used to safely
|
||
|
update plugins at the right moment on a plugin load.
|
||
|
<p>
|
||
|
The update folder name is relative to the plugins folder.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the name of the update folder</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getUpdateFolderFile()">
|
||
|
<h3>getUpdateFolderFile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a></span> <span class="element-name">getUpdateFolderFile</span>()</div>
|
||
|
<div class="block">Gets the update folder. The update folder is used to safely update
|
||
|
plugins at the right moment on a plugin load.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the update folder</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getConnectionThrottle()">
|
||
|
<h3>getConnectionThrottle</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">long</span> <span class="element-name">getConnectionThrottle</span>()</div>
|
||
|
<div class="block">Gets the value of the connection throttle setting.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the value of the connection throttle setting</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerAnimalSpawns()">
|
||
|
<h3>getTicksPerAnimalSpawns</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerAnimalSpawns</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets default ticks per animal spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn monsters
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn monsters
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, animal spawning will be disabled. We
|
||
|
recommend using spawn-animals to control this instead.
|
||
|
<p>
|
||
|
Minecraft default: 400.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per animal spawns value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerMonsterSpawns()">
|
||
|
<h3>getTicksPerMonsterSpawns</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerMonsterSpawns</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the default ticks per monster spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn monsters
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn monsters
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, monsters spawning will be disabled. We
|
||
|
recommend using spawn-monsters to control this instead.
|
||
|
<p>
|
||
|
Minecraft default: 1.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per monsters spawn value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerWaterSpawns()">
|
||
|
<h3>getTicksPerWaterSpawns</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerWaterSpawns</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the default ticks per water mob spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn water mobs
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn water mobs
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, water mobs spawning will be disabled.
|
||
|
<p>
|
||
|
Minecraft default: 1.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per water mobs spawn value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerAmbientSpawns()">
|
||
|
<h3>getTicksPerAmbientSpawns</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerAmbientSpawns</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the default ticks per ambient mob spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn ambient mobs
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn ambient mobs
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, ambient mobs spawning will be disabled.
|
||
|
<p>
|
||
|
Minecraft default: 1.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per ambient mobs spawn value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerWaterAmbientSpawns()">
|
||
|
<h3>getTicksPerWaterAmbientSpawns</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerWaterAmbientSpawns</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the default ticks per water ambient mob spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn water ambient mobs
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn water ambient mobs
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, ambient mobs spawning will be disabled.
|
||
|
<p>
|
||
|
Minecraft default: 1.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per water ambient mobs spawn value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerWaterUndergroundCreatureSpawns()">
|
||
|
<h3>getTicksPerWaterUndergroundCreatureSpawns</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerWaterUndergroundCreatureSpawns</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getTicksPerSpawns(org.bukkit.entity.SpawnCategory)"><code>getTicksPerSpawns(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the default ticks per water underground creature spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn water underground creature
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn water underground creature
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, water underground creature spawning will be disabled.
|
||
|
<p>
|
||
|
Minecraft default: 1.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per water underground creature spawn value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTicksPerSpawns(org.bukkit.entity.SpawnCategory)">
|
||
|
<h3>getTicksPerSpawns</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getTicksPerSpawns</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity">SpawnCategory</a> spawnCategory)</span></div>
|
||
|
<div class="block">Gets the default ticks per <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> spawns value.
|
||
|
<p>
|
||
|
<b>Example Usage:</b>
|
||
|
<ul>
|
||
|
<li>A value of 1 will mean the server will attempt to spawn <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> mobs
|
||
|
every tick.
|
||
|
<li>A value of 400 will mean the server will attempt to spawn <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> mobs
|
||
|
every 400th tick.
|
||
|
<li>A value below 0 will be reset back to Minecraft's default.
|
||
|
</ul>
|
||
|
<p>
|
||
|
<b>Note:</b> If set to 0, <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> mobs spawning will be disabled.
|
||
|
<p>
|
||
|
Minecraft default: 1.
|
||
|
<br>
|
||
|
<b>Note: </b> the <a href="entity/SpawnCategory.html#MISC"><code>SpawnCategory.MISC</code></a> are not consider.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>spawnCategory</code> - the category of spawn</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default ticks per <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> mobs spawn value</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPlayer(java.lang.String)">
|
||
|
<h3>getPlayer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a></span> <span class="element-name">getPlayer</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Gets a player object by the given username.
|
||
|
<p>
|
||
|
This method may not return objects for offline players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the name to look up</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a player if one was found, null otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPlayerExact(java.lang.String)">
|
||
|
<h3>getPlayerExact</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a></span> <span class="element-name">getPlayerExact</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Gets the player with the exact given name, case insensitive.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - Exact name of the player to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a player object if one was found, null otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="matchPlayer(java.lang.String)">
|
||
|
<h3>matchPlayer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a>></span> <span class="element-name">matchPlayer</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Attempts to match any players with the given name, and returns a list
|
||
|
of all possibly matches.
|
||
|
<p>
|
||
|
This list is not sorted in any particular order. If an exact match is
|
||
|
found, the returned list will only contain a single result.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the (partial) name to match</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>list of all possible players</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPlayer(java.util.UUID)">
|
||
|
<h3>getPlayer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a></span> <span class="element-name">getPlayer</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> id)</span></div>
|
||
|
<div class="block">Gets the player with the given UUID.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>id</code> - UUID of the player to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a player object if one was found, null otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPlayerUniqueId(java.lang.String)">
|
||
|
<h3>getPlayerUniqueId</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a></span> <span class="element-name">getPlayerUniqueId</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> playerName)</span></div>
|
||
|
<div class="block">Gets the unique ID of the player currently known as the specified player name
|
||
|
In Offline Mode, will return an Offline UUID</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>playerName</code> - the player name to look up the unique ID for</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>A UUID, or null if that player name is not registered with Minecraft and the server is in online mode</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPluginManager()">
|
||
|
<h3>getPluginManager</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="plugin/PluginManager.html" title="interface in org.bukkit.plugin">PluginManager</a></span> <span class="element-name">getPluginManager</span>()</div>
|
||
|
<div class="block">Gets the plugin manager for interfacing with plugins.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a plugin manager for this Server instance</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getScheduler()">
|
||
|
<h3>getScheduler</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="scheduler/BukkitScheduler.html" title="interface in org.bukkit.scheduler">BukkitScheduler</a></span> <span class="element-name">getScheduler</span>()</div>
|
||
|
<div class="block">Gets the scheduler for managing scheduled events.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a scheduling service for this server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getServicesManager()">
|
||
|
<h3>getServicesManager</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="plugin/ServicesManager.html" title="interface in org.bukkit.plugin">ServicesManager</a></span> <span class="element-name">getServicesManager</span>()</div>
|
||
|
<div class="block">Gets a services manager.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>s services manager</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWorlds()">
|
||
|
<h3>getWorlds</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="World.html" title="interface in org.bukkit">World</a>></span> <span class="element-name">getWorlds</span>()</div>
|
||
|
<div class="block">Gets a list of all worlds on this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a list of worlds</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createWorld(org.bukkit.WorldCreator)">
|
||
|
<h3>createWorld</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></span> <span class="element-name">createWorld</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="WorldCreator.html" title="class in org.bukkit">WorldCreator</a> creator)</span></div>
|
||
|
<div class="block">Creates or loads a world with the given name using the specified
|
||
|
options.
|
||
|
<p>
|
||
|
If the world is already loaded, it will just return the equivalent of
|
||
|
getWorld(creator.name()).</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>creator</code> - the options to use when creating the world</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>newly created or loaded world</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="unloadWorld(java.lang.String,boolean)">
|
||
|
<h3>unloadWorld</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">unloadWorld</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name,
|
||
|
boolean save)</span></div>
|
||
|
<div class="block">Unloads a world with the given name.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - Name of the world to unload</dd>
|
||
|
<dd><code>save</code> - whether to save the chunks before unloading</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if successful, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="unloadWorld(org.bukkit.World,boolean)">
|
||
|
<h3>unloadWorld</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">unloadWorld</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
boolean save)</span></div>
|
||
|
<div class="block">Unloads the given world.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>world</code> - the world to unload</dd>
|
||
|
<dd><code>save</code> - whether to save the chunks before unloading</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if successful, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWorld(java.lang.String)">
|
||
|
<h3>getWorld</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></span> <span class="element-name">getWorld</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Gets the world with the given name.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the name of the world to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a world with the given name, or null if none exists</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWorld(java.util.UUID)">
|
||
|
<h3>getWorld</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></span> <span class="element-name">getWorld</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uid)</span></div>
|
||
|
<div class="block">Gets the world from the given Unique ID.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uid</code> - a unique-id of the world to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a world with the given Unique ID, or null if none exists</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWorld(org.bukkit.NamespacedKey)">
|
||
|
<h3>getWorld</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="World.html" title="interface in org.bukkit">World</a></span> <span class="element-name">getWorld</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> worldKey)</span></div>
|
||
|
<div class="block">Gets the world from the given NamespacedKey</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>worldKey</code> - the NamespacedKey of the world to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a world with the given NamespacedKey, or null if none exists</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createWorldBorder()">
|
||
|
<h3>createWorldBorder</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="WorldBorder.html" title="interface in org.bukkit">WorldBorder</a></span> <span class="element-name">createWorldBorder</span>()</div>
|
||
|
<div class="block">Create a new virtual <a href="WorldBorder.html" title="interface in org.bukkit"><code>WorldBorder</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the created world border instance</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list-long">
|
||
|
<li><a href="entity/Player.html#setWorldBorder(org.bukkit.WorldBorder)"><code>Player.setWorldBorder(WorldBorder)</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMap(int)">
|
||
|
<h3>getMap</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="map/MapView.html" title="interface in org.bukkit.map">MapView</a></span> <span class="element-name">getMap</span><wbr><span class="parameters">(int id)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Magic value</div>
|
||
|
</div>
|
||
|
<div class="block">Gets the map from the given item ID.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>id</code> - the id of the map to get</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a map view if it exists, or null otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createMap(org.bukkit.World)">
|
||
|
<h3>createMap</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="map/MapView.html" title="interface in org.bukkit.map">MapView</a></span> <span class="element-name">createMap</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world)</span></div>
|
||
|
<div class="block">Create a new map with an automatically assigned ID.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>world</code> - the world the map will belong to</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a newly created map view</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createExplorerMap(org.bukkit.World,org.bukkit.Location,org.bukkit.StructureType)">
|
||
|
<h3>createExplorerMap</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></span> <span class="element-name">createExplorerMap</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Location.html" title="class in org.bukkit">Location</a> location,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="StructureType.html" title="class in org.bukkit">StructureType</a> structureType)</span></div>
|
||
|
<div class="block">Create a new explorer map targeting the closest nearby structure of a
|
||
|
given <a href="StructureType.html" title="class in org.bukkit"><code>StructureType</code></a>.
|
||
|
<br>
|
||
|
This method uses implementation default values for radius and
|
||
|
findUnexplored (usually 100, true).</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>world</code> - the world the map will belong to</dd>
|
||
|
<dd><code>location</code> - the origin location to find the nearest structure</dd>
|
||
|
<dd><code>structureType</code> - the type of structure to find</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a newly created item stack</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list-long">
|
||
|
<li><a href="World.html#locateNearestStructure(org.bukkit.Location,org.bukkit.StructureType,int,boolean)"><code>World.locateNearestStructure(org.bukkit.Location, org.bukkit.StructureType, int, boolean)</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createExplorerMap(org.bukkit.World,org.bukkit.Location,org.bukkit.StructureType,int,boolean)">
|
||
|
<h3>createExplorerMap</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></span> <span class="element-name">createExplorerMap</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Location.html" title="class in org.bukkit">Location</a> location,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="StructureType.html" title="class in org.bukkit">StructureType</a> structureType,
|
||
|
int radius,
|
||
|
boolean findUnexplored)</span></div>
|
||
|
<div class="block">Create a new explorer map targeting the closest nearby structure of a
|
||
|
given <a href="StructureType.html" title="class in org.bukkit"><code>StructureType</code></a>.
|
||
|
<br>
|
||
|
This method uses implementation default values for radius and
|
||
|
findUnexplored (usually 100, true).</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>world</code> - the world the map will belong to</dd>
|
||
|
<dd><code>location</code> - the origin location to find the nearest structure</dd>
|
||
|
<dd><code>structureType</code> - the type of structure to find</dd>
|
||
|
<dd><code>radius</code> - radius to search, see World#locateNearestStructure for more
|
||
|
information</dd>
|
||
|
<dd><code>findUnexplored</code> - whether to find unexplored structures</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the newly created item stack</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list-long">
|
||
|
<li><a href="World.html#locateNearestStructure(org.bukkit.Location,org.bukkit.StructureType,int,boolean)"><code>World.locateNearestStructure(org.bukkit.Location, org.bukkit.StructureType, int, boolean)</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="reload()">
|
||
|
<h3>reload</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">reload</span>()</div>
|
||
|
<div class="block">Reloads the server, refreshing settings and plugin information.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="reloadData()">
|
||
|
<h3>reloadData</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">reloadData</span>()</div>
|
||
|
<div class="block">Reload only the Minecraft data for the server. This includes custom
|
||
|
advancements and loot tables.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getLogger()">
|
||
|
<h3>getLogger</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html" title="class or interface in java.util.logging" class="external-link">Logger</a></span> <span class="element-name">getLogger</span>()</div>
|
||
|
<div class="block">Returns the primary logger associated with this server instance.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>Logger associated with this server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPluginCommand(java.lang.String)">
|
||
|
<h3>getPluginCommand</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="command/PluginCommand.html" title="class in org.bukkit.command">PluginCommand</a></span> <span class="element-name">getPluginCommand</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Gets a <a href="command/PluginCommand.html" title="class in org.bukkit.command"><code>PluginCommand</code></a> with the given name or alias.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the name of the command to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a plugin command if found, null otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="savePlayers()">
|
||
|
<h3>savePlayers</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">savePlayers</span>()</div>
|
||
|
<div class="block">Writes loaded players to disk.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="dispatchCommand(org.bukkit.command.CommandSender,java.lang.String)">
|
||
|
<h3>dispatchCommand</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">dispatchCommand</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a> sender,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> commandLine)</span>
|
||
|
throws <span class="exceptions"><a href="command/CommandException.html" title="class in org.bukkit.command">CommandException</a></span></div>
|
||
|
<div class="block">Dispatches a command on this server, and executes it if found.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>sender</code> - the apparent sender of the command</dd>
|
||
|
<dd><code>commandLine</code> - the command + arguments. Example: <code>test abc
|
||
|
123</code></dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>returns false if no target is found</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="command/CommandException.html" title="class in org.bukkit.command">CommandException</a></code> - thrown when the executor for the given command
|
||
|
fails with an unhandled exception</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="addRecipe(org.bukkit.inventory.Recipe)">
|
||
|
<h3>addRecipe</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Contract</a>("null -> false")
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">addRecipe</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a> recipe)</span></div>
|
||
|
<div class="block">Adds a recipe to the crafting manager.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>recipe</code> - the recipe to add</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if the recipe was added, false if it wasn't for some
|
||
|
reason</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getRecipesFor(org.bukkit.inventory.ItemStack)">
|
||
|
<h3>getRecipesFor</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a>></span> <span class="element-name">getRecipesFor</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a> result)</span></div>
|
||
|
<div class="block">Get a list of all recipes for a given item. The stack size is ignored
|
||
|
in comparisons. If the durability is -1, it will match any data value.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>result</code> - the item to match against recipe results</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a list of recipes with the given result</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getRecipe(org.bukkit.NamespacedKey)">
|
||
|
<h3>getRecipe</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a></span> <span class="element-name">getRecipe</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> recipeKey)</span></div>
|
||
|
<div class="block">Get the <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory"><code>Recipe</code></a> for the given key.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>recipeKey</code> - the key of the recipe to return</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the recipe for the given key or null.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getCraftingRecipe(org.bukkit.inventory.ItemStack[],org.bukkit.World)">
|
||
|
<h3>getCraftingRecipe</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a></span> <span class="element-name">getCraftingRecipe</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a>[] craftingMatrix,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world)</span></div>
|
||
|
<div class="block">Get the <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory"><code>Recipe</code></a> for the list of ItemStacks provided.
|
||
|
|
||
|
<p>The list is formatted as a crafting matrix where the index follow
|
||
|
the pattern below:</p>
|
||
|
|
||
|
<pre>
|
||
|
[ 0 1 2 ]
|
||
|
[ 3 4 5 ]
|
||
|
[ 6 7 8 ]
|
||
|
</pre>
|
||
|
|
||
|
<p>NOTE: This method will not modify the provided ItemStack array, for that, use
|
||
|
<a href="#craftItem(org.bukkit.inventory.ItemStack%5B%5D,org.bukkit.World,org.bukkit.entity.Player)"><code>craftItem(ItemStack[], World, Player)</code></a>.</p></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>craftingMatrix</code> - list of items to be crafted from.
|
||
|
Must not contain more than 9 items.</dd>
|
||
|
<dd><code>world</code> - The world the crafting takes place in.</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the <a href="inventory/Recipe.html" title="interface in org.bukkit.inventory"><code>Recipe</code></a> resulting from the given crafting matrix.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="craftItem(org.bukkit.inventory.ItemStack[],org.bukkit.World,org.bukkit.entity.Player)">
|
||
|
<h3>craftItem</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a></span> <span class="element-name">craftItem</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory">ItemStack</a>[] craftingMatrix,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="entity/Player.html" title="interface in org.bukkit.entity">Player</a> player)</span></div>
|
||
|
<div class="block">Get the crafted item using the list of <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>ItemStack</code></a> provided.
|
||
|
|
||
|
<p>The list is formatted as a crafting matrix where the index follow
|
||
|
the pattern below:</p>
|
||
|
|
||
|
<pre>
|
||
|
[ 0 1 2 ]
|
||
|
[ 3 4 5 ]
|
||
|
[ 6 7 8 ]
|
||
|
</pre>
|
||
|
|
||
|
<p>The <a href="World.html" title="interface in org.bukkit"><code>World</code></a> and <a href="entity/Player.html" title="interface in org.bukkit.entity"><code>Player</code></a> arguments are required to fulfill the Bukkit Crafting
|
||
|
events.</p>
|
||
|
|
||
|
<p>Calls <a href="event/inventory/PrepareItemCraftEvent.html" title="class in org.bukkit.event.inventory"><code>PrepareItemCraftEvent</code></a> to imitate the <a href="entity/Player.html" title="interface in org.bukkit.entity"><code>Player</code></a>
|
||
|
initiating the crafting event.</p></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>craftingMatrix</code> - list of items to be crafted from.
|
||
|
Must not contain more than 9 items.</dd>
|
||
|
<dd><code>world</code> - The world the crafting takes place in.</dd>
|
||
|
<dd><code>player</code> - The player to imitate the crafting event on.</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>ItemStack</code></a> resulting from the given crafting matrix, if no recipe is found
|
||
|
an ItemStack of <a href="Material.html#AIR"><code>Material.AIR</code></a> is returned.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="recipeIterator()">
|
||
|
<h3>recipeIterator</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a><<a href="inventory/Recipe.html" title="interface in org.bukkit.inventory">Recipe</a>></span> <span class="element-name">recipeIterator</span>()</div>
|
||
|
<div class="block">Get an iterator through the list of crafting recipes.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>an iterator</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="clearRecipes()">
|
||
|
<h3>clearRecipes</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">clearRecipes</span>()</div>
|
||
|
<div class="block">Clears the list of crafting recipes.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="resetRecipes()">
|
||
|
<h3>resetRecipes</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">resetRecipes</span>()</div>
|
||
|
<div class="block">Resets the list of crafting recipes to the default.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="removeRecipe(org.bukkit.NamespacedKey)">
|
||
|
<h3>removeRecipe</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">removeRecipe</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</span></div>
|
||
|
<div class="block">Remove a recipe from the server.
|
||
|
|
||
|
<b>Note that removing a recipe may cause permanent loss of data
|
||
|
associated with that recipe (eg whether it has been discovered by
|
||
|
players).</b></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>key</code> - NamespacedKey of recipe to remove.</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>True if recipe was removed</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getCommandAliases()">
|
||
|
<h3>getCommandAliases</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" class="external-link">Map</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>,<wbr><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>[]></span> <span class="element-name">getCommandAliases</span>()</div>
|
||
|
<div class="block">Gets a list of command aliases defined in the server properties.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a map of aliases to command names</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getSpawnRadius()">
|
||
|
<h3>getSpawnRadius</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getSpawnRadius</span>()</div>
|
||
|
<div class="block">Gets the radius, in blocks, around each worlds spawn point to protect.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>spawn radius, or 0 if none</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setSpawnRadius(int)">
|
||
|
<h3>setSpawnRadius</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setSpawnRadius</span><wbr><span class="parameters">(int value)</span></div>
|
||
|
<div class="block">Sets the radius, in blocks, around each worlds spawn point to protect.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>value</code> - new spawn radius, or 0 if none</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getHideOnlinePlayers()">
|
||
|
<h3>getHideOnlinePlayers</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">getHideOnlinePlayers</span>()</div>
|
||
|
<div class="block">Gets whether the Server hide online players in server status.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if the server hide online players, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOnlineMode()">
|
||
|
<h3>getOnlineMode</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">getOnlineMode</span>()</div>
|
||
|
<div class="block">Gets whether the Server is in online mode or not.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if the server authenticates clients, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAllowFlight()">
|
||
|
<h3>getAllowFlight</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">getAllowFlight</span>()</div>
|
||
|
<div class="block">Gets whether this server allows flying or not.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if the server allows flight, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="isHardcore()">
|
||
|
<h3>isHardcore</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">isHardcore</span>()</div>
|
||
|
<div class="block">Gets whether the server is in hardcore mode or not.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if the server mode is hardcore, false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="shutdown()">
|
||
|
<h3>shutdown</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">shutdown</span>()</div>
|
||
|
<div class="block">Shutdowns the server, stopping everything.</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="broadcast(net.kyori.adventure.text.Component)">
|
||
|
<h3>broadcast</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">broadcast</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> message)</span></div>
|
||
|
<div class="block">Broadcast a message to all players.
|
||
|
<p>
|
||
|
This is the same as calling <a href="#broadcast(net.kyori.adventure.text.Component,java.lang.String)"><code>broadcast(net.kyori.adventure.text.Component, java.lang.String)</code></a> with the <a href="Server.html#BROADCAST_CHANNEL_USERS"><code>Server.BROADCAST_CHANNEL_USERS</code></a> permission.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>message</code> - the message</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the number of players</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="broadcast(net.kyori.adventure.text.Component,java.lang.String)">
|
||
|
<h3>broadcast</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">broadcast</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> message,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> permission)</span></div>
|
||
|
<div class="block">Broadcasts the specified message to every user with the given
|
||
|
permission name.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>message</code> - message to broadcast</dd>
|
||
|
<dd><code>permission</code> - the required permission <a href="permissions/Permissible.html" title="interface in org.bukkit.permissions"><code>permissibles</code></a> must have to receive the broadcast</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>number of message recipients</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="broadcast(java.lang.String,java.lang.String)">
|
||
|
<h3>broadcast</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">broadcast</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> message,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> permission)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#broadcast(net.kyori.adventure.text.Component,java.lang.String)"><code>broadcast(net.kyori.adventure.text.Component, String)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Broadcasts the specified message to every user with the given
|
||
|
permission name.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>message</code> - message to broadcast</dd>
|
||
|
<dd><code>permission</code> - the required permission <a href="permissions/Permissible.html" title="interface in org.bukkit.permissions"><code>permissibles</code></a> must have to receive the broadcast</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>number of message recipients</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOfflinePlayer(java.lang.String)">
|
||
|
<h3>getOfflinePlayer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a></span> <span class="element-name">getOfflinePlayer</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Gets the player by the given name, regardless if they are offline or
|
||
|
online.
|
||
|
<p>
|
||
|
This method may involve a blocking web request to get the UUID for the
|
||
|
given name.
|
||
|
<p>
|
||
|
This will return an object even if the player does not exist. To this
|
||
|
method, all players will exist.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the name the player to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>an offline player</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list-long">
|
||
|
<li><a href="#getOfflinePlayer(java.util.UUID)"><code>getOfflinePlayer(java.util.UUID)</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOfflinePlayerIfCached(java.lang.String)">
|
||
|
<h3>getOfflinePlayerIfCached</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a></span> <span class="element-name">getOfflinePlayerIfCached</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Gets the player by the given name, regardless if they are offline or
|
||
|
online.
|
||
|
<p>
|
||
|
This will not make a web request to get the UUID for the given name,
|
||
|
thus this method will not block. However this method will return
|
||
|
<code>null</code> if the player is not cached.
|
||
|
</p></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the name of the player to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>an offline player if cached, <code>null</code> otherwise</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list-long">
|
||
|
<li><a href="#getOfflinePlayer(java.lang.String)"><code>getOfflinePlayer(String)</code></a></li>
|
||
|
<li><a href="#getOfflinePlayer(java.util.UUID)"><code>getOfflinePlayer(java.util.UUID)</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOfflinePlayer(java.util.UUID)">
|
||
|
<h3>getOfflinePlayer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a></span> <span class="element-name">getOfflinePlayer</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> id)</span></div>
|
||
|
<div class="block">Gets the player by the given UUID, regardless if they are offline or
|
||
|
online.
|
||
|
<p>
|
||
|
This will return an object even if the player does not exist. To this
|
||
|
method, all players will exist.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>id</code> - the UUID of the player to retrieve</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>an offline player</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createPlayerProfile(java.util.UUID,java.lang.String)">
|
||
|
<h3>createPlayerProfile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile">PlayerProfile</a></span> <span class="element-name">createPlayerProfile</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uniqueId,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <a href="#createProfile(java.util.UUID,java.lang.String)"><code>createProfile(UUID, String)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Creates a new <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile"><code>PlayerProfile</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uniqueId</code> - the unique id</dd>
|
||
|
<dd><code>name</code> - the name</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the new PlayerProfile</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if both the unique id is
|
||
|
<code>null</code> and the name is <code>null</code> or blank</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createPlayerProfile(java.util.UUID)">
|
||
|
<h3>createPlayerProfile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile">PlayerProfile</a></span> <span class="element-name">createPlayerProfile</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uniqueId)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <a href="#createProfile(java.util.UUID)"><code>createProfile(UUID)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Creates a new <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile"><code>PlayerProfile</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uniqueId</code> - the unique id</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the new PlayerProfile</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the unique id is <code>null</code></dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createPlayerProfile(java.lang.String)">
|
||
|
<h3>createPlayerProfile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile">PlayerProfile</a></span> <span class="element-name">createPlayerProfile</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">use <a href="#createProfile(java.lang.String)"><code>createProfile(String)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Creates a new <a href="profile/PlayerProfile.html" title="interface in org.bukkit.profile"><code>PlayerProfile</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - the name</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the new PlayerProfile</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the name is <code>null</code> or
|
||
|
blank</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getIPBans()">
|
||
|
<h3>getIPBans</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>></span> <span class="element-name">getIPBans</span>()</div>
|
||
|
<div class="block">Gets a set containing all current IPs that are banned.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a set containing banned IP addresses</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="banIP(java.lang.String)">
|
||
|
<h3>banIP</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">banIP</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> address)</span></div>
|
||
|
<div class="block">Bans the specified address from the server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>address</code> - the IP address to ban</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="unbanIP(java.lang.String)">
|
||
|
<h3>unbanIP</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">unbanIP</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> address)</span></div>
|
||
|
<div class="block">Unbans the specified address from the server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>address</code> - the IP address to unban</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getBannedPlayers()">
|
||
|
<h3>getBannedPlayers</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>></span> <span class="element-name">getBannedPlayers</span>()</div>
|
||
|
<div class="block">Gets a set containing all banned players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a set containing banned players</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getBanList(org.bukkit.BanList.Type)">
|
||
|
<h3>getBanList</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="BanList.html" title="interface in org.bukkit">BanList</a></span> <span class="element-name">getBanList</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="BanList.Type.html" title="enum class in org.bukkit">BanList.Type</a> type)</span></div>
|
||
|
<div class="block">Gets a ban list for the supplied type.
|
||
|
<p>
|
||
|
Bans by name are no longer supported and this method will return
|
||
|
null when trying to request them. The replacement is bans by UUID.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>type</code> - the type of list to fetch, cannot be null</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a ban list of the specified type</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOperators()">
|
||
|
<h3>getOperators</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html" title="class or interface in java.util" class="external-link">Set</a><<a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>></span> <span class="element-name">getOperators</span>()</div>
|
||
|
<div class="block">Gets a set containing all player operators.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a set containing player operators</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getDefaultGameMode()">
|
||
|
<h3>getDefaultGameMode</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="GameMode.html" title="enum class in org.bukkit">GameMode</a></span> <span class="element-name">getDefaultGameMode</span>()</div>
|
||
|
<div class="block">Gets the default <a href="GameMode.html" title="enum class in org.bukkit"><code>GameMode</code></a> for new players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default game mode</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setDefaultGameMode(org.bukkit.GameMode)">
|
||
|
<h3>setDefaultGameMode</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setDefaultGameMode</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="GameMode.html" title="enum class in org.bukkit">GameMode</a> mode)</span></div>
|
||
|
<div class="block">Sets the default <a href="GameMode.html" title="enum class in org.bukkit"><code>GameMode</code></a> for new players.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>mode</code> - the new game mode</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getConsoleSender()">
|
||
|
<h3>getConsoleSender</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/ConsoleCommandSender.html" title="interface in org.bukkit.command">ConsoleCommandSender</a></span> <span class="element-name">getConsoleSender</span>()</div>
|
||
|
<div class="block">Gets a <a href="command/ConsoleCommandSender.html" title="interface in org.bukkit.command"><code>ConsoleCommandSender</code></a> that may be used as an input source
|
||
|
for this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a console command sender</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createCommandSender(java.util.function.Consumer)">
|
||
|
<h3>createCommandSender</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a></span> <span class="element-name">createCommandSender</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><? super <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a>> feedback)</span></div>
|
||
|
<div class="block">Creates a special <a href="command/CommandSender.html" title="interface in org.bukkit.command"><code>CommandSender</code></a> which redirects command feedback (in the form of chat messages) to the
|
||
|
specified listener. The returned sender will have the same effective permissions as <a href="#getConsoleSender()"><code>getConsoleSender()</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>feedback</code> - feedback listener</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a command sender</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWorldContainer()">
|
||
|
<h3>getWorldContainer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a></span> <span class="element-name">getWorldContainer</span>()</div>
|
||
|
<div class="block">Gets the folder that contains all of the various <a href="World.html" title="interface in org.bukkit"><code>World</code></a>s.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>folder that contains all worlds</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getOfflinePlayers()">
|
||
|
<h3>getOfflinePlayers</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="OfflinePlayer.html" title="interface in org.bukkit">OfflinePlayer</a>[]</span> <span class="element-name">getOfflinePlayers</span>()</div>
|
||
|
<div class="block">Gets every player that has ever played on this server.
|
||
|
<p>
|
||
|
<b>This method can be expensive as it loads all the player data files from the disk.</b></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>an array containing all previous players</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMessenger()">
|
||
|
<h3>getMessenger</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="plugin/messaging/Messenger.html" title="interface in org.bukkit.plugin.messaging">Messenger</a></span> <span class="element-name">getMessenger</span>()</div>
|
||
|
<div class="block">Gets the <a href="plugin/messaging/Messenger.html" title="interface in org.bukkit.plugin.messaging"><code>Messenger</code></a> responsible for this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>messenger responsible for this server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getHelpMap()">
|
||
|
<h3>getHelpMap</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="help/HelpMap.html" title="interface in org.bukkit.help">HelpMap</a></span> <span class="element-name">getHelpMap</span>()</div>
|
||
|
<div class="block">Gets the <a href="help/HelpMap.html" title="interface in org.bukkit.help"><code>HelpMap</code></a> providing help topics for this server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a help map for this server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType)">
|
||
|
<h3>createInventory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></span> <span class="element-name">createInventory</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory">InventoryType</a> type)</span></div>
|
||
|
<div class="block">Creates an empty inventory with the specified type. If the type
|
||
|
is <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a>, the new inventory has a size of 27;
|
||
|
otherwise the new inventory has the normal size for its type.
|
||
|
<br>
|
||
|
<a href="event/inventory/InventoryType.html#WORKBENCH"><code>InventoryType.WORKBENCH</code></a> will not process crafting recipes if
|
||
|
created with this method. Use
|
||
|
<a href="entity/HumanEntity.html#openWorkbench(org.bukkit.Location,boolean)"><code>HumanEntity.openWorkbench(Location, boolean)</code></a> instead.
|
||
|
<br>
|
||
|
<a href="event/inventory/InventoryType.html#ENCHANTING"><code>InventoryType.ENCHANTING</code></a> will not process <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>ItemStack</code></a>s
|
||
|
for possible enchanting results. Use
|
||
|
<a href="entity/HumanEntity.html#openEnchanting(org.bukkit.Location,boolean)"><code>HumanEntity.openEnchanting(Location, boolean)</code></a> instead.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>owner</code> - the holder of the inventory, or null to indicate no holder</dd>
|
||
|
<dd><code>type</code> - the type of inventory to create</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new inventory</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory"><code>InventoryType</code></a> cannot be
|
||
|
viewed.</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list">
|
||
|
<li><a href="event/inventory/InventoryType.html#isCreatable()"><code>InventoryType.isCreatable()</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,net.kyori.adventure.text.Component)">
|
||
|
<h3>createInventory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></span> <span class="element-name">createInventory</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory">InventoryType</a> type,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</span></div>
|
||
|
<div class="block">Creates an empty inventory with the specified type and title. If the type
|
||
|
is <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a>, the new inventory has a size of 27;
|
||
|
otherwise the new inventory has the normal size for its type.<br>
|
||
|
It should be noted that some inventory types do not support titles and
|
||
|
may not render with said titles on the Minecraft client.
|
||
|
<br>
|
||
|
<a href="event/inventory/InventoryType.html#WORKBENCH"><code>InventoryType.WORKBENCH</code></a> will not process crafting recipes if
|
||
|
created with this method. Use
|
||
|
<a href="entity/HumanEntity.html#openWorkbench(org.bukkit.Location,boolean)"><code>HumanEntity.openWorkbench(Location, boolean)</code></a> instead.
|
||
|
<br>
|
||
|
<a href="event/inventory/InventoryType.html#ENCHANTING"><code>InventoryType.ENCHANTING</code></a> will not process <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>ItemStack</code></a>s
|
||
|
for possible enchanting results. Use
|
||
|
<a href="entity/HumanEntity.html#openEnchanting(org.bukkit.Location,boolean)"><code>HumanEntity.openEnchanting(Location, boolean)</code></a> instead.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>owner</code> - The holder of the inventory; can be null if there's no holder.</dd>
|
||
|
<dd><code>type</code> - The type of inventory to create.</dd>
|
||
|
<dd><code>title</code> - The title of the inventory, to be displayed when it is viewed.</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>The new inventory.</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory"><code>InventoryType</code></a> cannot be
|
||
|
viewed.</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list">
|
||
|
<li><a href="event/inventory/InventoryType.html#isCreatable()"><code>InventoryType.isCreatable()</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,java.lang.String)">
|
||
|
<h3>createInventory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></span> <span class="element-name">createInventory</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory">InventoryType</a> type,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,net.kyori.adventure.text.Component)"><code>createInventory(InventoryHolder, InventoryType, net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Creates an empty inventory with the specified type and title. If the type
|
||
|
is <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a>, the new inventory has a size of 27;
|
||
|
otherwise the new inventory has the normal size for its type.<br>
|
||
|
It should be noted that some inventory types do not support titles and
|
||
|
may not render with said titles on the Minecraft client.
|
||
|
<br>
|
||
|
<a href="event/inventory/InventoryType.html#WORKBENCH"><code>InventoryType.WORKBENCH</code></a> will not process crafting recipes if
|
||
|
created with this method. Use
|
||
|
<a href="entity/HumanEntity.html#openWorkbench(org.bukkit.Location,boolean)"><code>HumanEntity.openWorkbench(Location, boolean)</code></a> instead.
|
||
|
<br>
|
||
|
<a href="event/inventory/InventoryType.html#ENCHANTING"><code>InventoryType.ENCHANTING</code></a> will not process <a href="inventory/ItemStack.html" title="class in org.bukkit.inventory"><code>ItemStack</code></a>s
|
||
|
for possible enchanting results. Use
|
||
|
<a href="entity/HumanEntity.html#openEnchanting(org.bukkit.Location,boolean)"><code>HumanEntity.openEnchanting(Location, boolean)</code></a> instead.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>owner</code> - The holder of the inventory; can be null if there's no holder.</dd>
|
||
|
<dd><code>type</code> - The type of inventory to create.</dd>
|
||
|
<dd><code>title</code> - The title of the inventory, to be displayed when it is viewed.</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>The new inventory.</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the <a href="event/inventory/InventoryType.html" title="enum class in org.bukkit.event.inventory"><code>InventoryType</code></a> cannot be
|
||
|
viewed.</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list">
|
||
|
<li><a href="event/inventory/InventoryType.html#isCreatable()"><code>InventoryType.isCreatable()</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createInventory(org.bukkit.inventory.InventoryHolder,int)">
|
||
|
<h3>createInventory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></span> <span class="element-name">createInventory</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
int size)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||
|
<div class="block">Creates an empty inventory of type <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a> with the
|
||
|
specified size.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>owner</code> - the holder of the inventory, or null to indicate no holder</dd>
|
||
|
<dd><code>size</code> - a multiple of 9 as the size of inventory to create</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new inventory</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the size is not a multiple of 9</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createInventory(org.bukkit.inventory.InventoryHolder,int,net.kyori.adventure.text.Component)">
|
||
|
<h3>createInventory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></span> <span class="element-name">createInventory</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
int size,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||
|
<div class="block">Creates an empty inventory of type <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a> with the
|
||
|
specified size and title.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>owner</code> - the holder of the inventory, or null to indicate no holder</dd>
|
||
|
<dd><code>size</code> - a multiple of 9 as the size of inventory to create</dd>
|
||
|
<dd><code>title</code> - the title of the inventory, displayed when inventory is
|
||
|
viewed</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new inventory</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the size is not a multiple of 9</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createInventory(org.bukkit.inventory.InventoryHolder,int,java.lang.String)">
|
||
|
<h3>createInventory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Inventory.html" title="interface in org.bukkit.inventory">Inventory</a></span> <span class="element-name">createInventory</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="inventory/InventoryHolder.html" title="interface in org.bukkit.inventory">InventoryHolder</a> owner,
|
||
|
int size,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#createInventory(org.bukkit.inventory.InventoryHolder,org.bukkit.event.inventory.InventoryType,net.kyori.adventure.text.Component)"><code>createInventory(InventoryHolder, InventoryType, net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Creates an empty inventory of type <a href="event/inventory/InventoryType.html#CHEST"><code>InventoryType.CHEST</code></a> with the
|
||
|
specified size and title.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>owner</code> - the holder of the inventory, or null to indicate no holder</dd>
|
||
|
<dd><code>size</code> - a multiple of 9 as the size of inventory to create</dd>
|
||
|
<dd><code>title</code> - the title of the inventory, displayed when inventory is
|
||
|
viewed</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new inventory</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the size is not a multiple of 9</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createMerchant(net.kyori.adventure.text.Component)">
|
||
|
<h3>createMerchant</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Merchant.html" title="interface in org.bukkit.inventory">Merchant</a></span> <span class="element-name">createMerchant</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a> title)</span></div>
|
||
|
<div class="block">Creates an empty merchant.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>title</code> - the title of the corresponding merchant inventory, displayed
|
||
|
when the merchant inventory is viewed</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new merchant</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createMerchant(java.lang.String)">
|
||
|
<h3>createMerchant</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/Merchant.html" title="interface in org.bukkit.inventory">Merchant</a></span> <span class="element-name">createMerchant</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#createMerchant(net.kyori.adventure.text.Component)"><code>createMerchant(net.kyori.adventure.text.Component)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Creates an empty merchant.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>title</code> - the title of the corresponding merchant inventory, displayed
|
||
|
when the merchant inventory is viewed</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new merchant</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMonsterSpawnLimit()">
|
||
|
<h3>getMonsterSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getMonsterSpawnLimit</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets user-specified limit for number of monsters that can spawn in a
|
||
|
chunk.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the monster spawn limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAnimalSpawnLimit()">
|
||
|
<h3>getAnimalSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getAnimalSpawnLimit</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets user-specified limit for number of animals that can spawn in a
|
||
|
chunk.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the animal spawn limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWaterAnimalSpawnLimit()">
|
||
|
<h3>getWaterAnimalSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getWaterAnimalSpawnLimit</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets user-specified limit for number of water animals that can spawn in
|
||
|
a chunk.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the water animal spawn limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWaterAmbientSpawnLimit()">
|
||
|
<h3>getWaterAmbientSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getWaterAmbientSpawnLimit</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets user-specified limit for number of water ambient mobs that can spawn
|
||
|
in a chunk.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the water ambient spawn limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWaterUndergroundCreatureSpawnLimit()">
|
||
|
<h3>getWaterUndergroundCreatureSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getWaterUndergroundCreatureSpawnLimit</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Get user-specified limit for number of water creature underground that can spawn
|
||
|
in a chunk.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the water underground creature limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAmbientSpawnLimit()">
|
||
|
<h3>getAmbientSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getAmbientSpawnLimit</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">Deprecated in favor of <a href="#getSpawnLimit(org.bukkit.entity.SpawnCategory)"><code>getSpawnLimit(SpawnCategory)</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets user-specified limit for number of ambient mobs that can spawn in
|
||
|
a chunk.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the ambient spawn limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getSpawnLimit(org.bukkit.entity.SpawnCategory)">
|
||
|
<h3>getSpawnLimit</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getSpawnLimit</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity">SpawnCategory</a> spawnCategory)</span></div>
|
||
|
<div class="block">Gets user-specified limit for number of <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> mobs that can spawn in
|
||
|
a chunk.
|
||
|
|
||
|
<b>Note: the <a href="entity/SpawnCategory.html#MISC"><code>SpawnCategory.MISC</code></a> are not consider.</b></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>spawnCategory</code> - the category spawn</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the <a href="entity/SpawnCategory.html" title="enum class in org.bukkit.entity"><code>SpawnCategory</code></a> spawn limit</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="isPrimaryThread()">
|
||
|
<h3>isPrimaryThread</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">isPrimaryThread</span>()</div>
|
||
|
<div class="block">Checks the current thread against the expected primary thread for the
|
||
|
server.
|
||
|
<p>
|
||
|
<b>Note:</b> this method should not be used to indicate the current
|
||
|
synchronized state of the runtime. A current thread matching the main
|
||
|
thread indicates that it is synchronized, but a mismatch <b>does not
|
||
|
preclude</b> the same assumption.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if the current thread matches the expected primary thread,
|
||
|
false otherwise</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="motd()">
|
||
|
<h3>motd</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span> <span class="element-name">motd</span>()</div>
|
||
|
<div class="block">Gets the message that is displayed on the server list.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the server's MOTD</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMotd()">
|
||
|
<h3>getMotd</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getMotd</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#motd()"><code>motd()</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the message that is displayed on the server list.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the servers MOTD</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="shutdownMessage()">
|
||
|
<h3>shutdownMessage</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/text/Component.html" title="class or interface in net.kyori.adventure.text" class="external-link">Component</a></span> <span class="element-name">shutdownMessage</span>()</div>
|
||
|
<div class="block">Gets the default message that is displayed when the server is stopped.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the shutdown message</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getShutdownMessage()">
|
||
|
<h3>getShutdownMessage</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getShutdownMessage</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
|
||
|
<div class="deprecation-comment">in favour of <a href="#shutdownMessage()"><code>shutdownMessage()</code></a></div>
|
||
|
</div>
|
||
|
<div class="block">Gets the default message that is displayed when the server is stopped.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the shutdown message</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getWarningState()">
|
||
|
<h3>getWarningState</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Warning.WarningState.html" title="enum class in org.bukkit">Warning.WarningState</a></span> <span class="element-name">getWarningState</span>()</div>
|
||
|
<div class="block">Gets the current warning state for the server.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the configured warning state</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getItemFactory()">
|
||
|
<h3>getItemFactory</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="inventory/ItemFactory.html" title="interface in org.bukkit.inventory">ItemFactory</a></span> <span class="element-name">getItemFactory</span>()</div>
|
||
|
<div class="block">Gets the instance of the item factory (for <a href="inventory/meta/ItemMeta.html" title="interface in org.bukkit.inventory.meta"><code>ItemMeta</code></a>).</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the item factory</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list">
|
||
|
<li><a href="inventory/ItemFactory.html" title="interface in org.bukkit.inventory"><code>ItemFactory</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getScoreboardManager()">
|
||
|
<h3>getScoreboardManager</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="scoreboard/ScoreboardManager.html" title="interface in org.bukkit.scoreboard">ScoreboardManager</a></span> <span class="element-name">getScoreboardManager</span>()</div>
|
||
|
<div class="block">Gets the instance of the scoreboard manager.
|
||
|
<p>
|
||
|
This will only exist after the first world has loaded.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the scoreboard manager or null if no worlds are loaded.</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getServerIcon()">
|
||
|
<h3>getServerIcon</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="util/CachedServerIcon.html" title="interface in org.bukkit.util">CachedServerIcon</a></span> <span class="element-name">getServerIcon</span>()</div>
|
||
|
<div class="block">Gets an instance of the server's default server-icon.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default server-icon; null values may be used by the
|
||
|
implementation to indicate no defined icon, but this behavior is
|
||
|
not guaranteed</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="loadServerIcon(java.io.File)">
|
||
|
<h3>loadServerIcon</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="util/CachedServerIcon.html" title="interface in org.bukkit.util">CachedServerIcon</a></span> <span class="element-name">loadServerIcon</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html" title="class or interface in java.io" class="external-link">File</a> file)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a>,
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">Exception</a></span></div>
|
||
|
<div class="block">Loads an image from a file, and returns a cached image for the specific
|
||
|
server-icon.
|
||
|
<p>
|
||
|
Size and type are implementation defined. An incompatible file is
|
||
|
guaranteed to throw an implementation-defined <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link"><code>Exception</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>file</code> - the file to load the from</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a cached server-icon that can be used for a <a href="event/server/ServerListPingEvent.html#setServerIcon(org.bukkit.util.CachedServerIcon)"><code>ServerListPingEvent.setServerIcon(CachedServerIcon)</code></a></dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if image is null</dd>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">Exception</a></code> - if the image does not meet current server server-icon
|
||
|
specifications</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="loadServerIcon(java.awt.image.BufferedImage)">
|
||
|
<h3>loadServerIcon</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="util/CachedServerIcon.html" title="interface in org.bukkit.util">CachedServerIcon</a></span> <span class="element-name">loadServerIcon</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/image/BufferedImage.html" title="class or interface in java.awt.image" class="external-link">BufferedImage</a> image)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a>,
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">Exception</a></span></div>
|
||
|
<div class="block">Creates a cached server-icon for the specific image.
|
||
|
<p>
|
||
|
Size and type are implementation defined. An incompatible file is
|
||
|
guaranteed to throw an implementation-defined <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link"><code>Exception</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>image</code> - the image to use</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a cached server-icon that can be used for a <a href="event/server/ServerListPingEvent.html#setServerIcon(org.bukkit.util.CachedServerIcon)"><code>ServerListPingEvent.setServerIcon(CachedServerIcon)</code></a></dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if image is null</dd>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">Exception</a></code> - if the image does not meet current server
|
||
|
server-icon specifications</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="setIdleTimeout(int)">
|
||
|
<h3>setIdleTimeout</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">setIdleTimeout</span><wbr><span class="parameters">(int threshold)</span></div>
|
||
|
<div class="block">Set the idle kick timeout. Any players idle for the specified amount of
|
||
|
time will be automatically kicked.
|
||
|
<p>
|
||
|
A value of 0 will disable the idle kick timeout.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>threshold</code> - the idle timeout in minutes</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getIdleTimeout()">
|
||
|
<h3>getIdleTimeout</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getIdleTimeout</span>()</div>
|
||
|
<div class="block">Gets the idle kick timeout.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the idle timeout in minutes</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createChunkData(org.bukkit.World)">
|
||
|
<h3>createChunkData</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="generator/ChunkGenerator.ChunkData.html" title="interface in org.bukkit.generator">ChunkGenerator.ChunkData</a></span> <span class="element-name">createChunkData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world)</span></div>
|
||
|
<div class="block">Create a ChunkData for use in a generator.
|
||
|
|
||
|
See <a href="generator/ChunkGenerator.html#generateChunkData(org.bukkit.World,java.util.Random,int,int,org.bukkit.generator.ChunkGenerator.BiomeGrid)"><code>ChunkGenerator.generateChunkData(org.bukkit.World, java.util.Random, int, int, org.bukkit.generator.ChunkGenerator.BiomeGrid)</code></a></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>world</code> - the world to create the ChunkData for</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new ChunkData for the world</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createVanillaChunkData(org.bukkit.World,int,int)">
|
||
|
<h3>createVanillaChunkData</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html#forRemoval()" title="class or interface in java.lang" class="external-link">forRemoval</a>=true)
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="generator/ChunkGenerator.ChunkData.html" title="interface in org.bukkit.generator">ChunkGenerator.ChunkData</a></span> <span class="element-name">createVanillaChunkData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="World.html" title="interface in org.bukkit">World</a> world,
|
||
|
int x,
|
||
|
int z)</span></div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated, for removal: This API element is subject to removal in a future version.</span>
|
||
|
<div class="deprecation-comment">The new multi-stage worldgen API allows a similar effect by overriding all of the "shouldGenerate..." methods to
|
||
|
return true, and then modifying the chunkdata in a later stage such as surface or bedrock generation.</div>
|
||
|
</div>
|
||
|
<div class="block">Create a ChunkData for use in a generator, that is populated by the vanilla generator for that world</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>world</code> - the world to create the ChunkData for</dd>
|
||
|
<dd><code>x</code> - the x coordinate of the chunk</dd>
|
||
|
<dd><code>z</code> - the z coordinate of the chunk</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a new ChunkData for the world</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createBossBar(java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)">
|
||
|
<h3>createBossBar</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BossBar.html" title="interface in org.bukkit.boss">BossBar</a></span> <span class="element-name">createBossBar</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarColor.html" title="enum class in org.bukkit.boss">BarColor</a> color,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarStyle.html" title="enum class in org.bukkit.boss">BarStyle</a> style,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarFlag.html" title="enum class in org.bukkit.boss">BarFlag</a>... flags)</span></div>
|
||
|
<div class="block">Creates a boss bar instance to display to players. The progress
|
||
|
defaults to 1.0</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>title</code> - the title of the boss bar</dd>
|
||
|
<dd><code>color</code> - the color of the boss bar</dd>
|
||
|
<dd><code>style</code> - the style of the boss bar</dd>
|
||
|
<dd><code>flags</code> - an optional list of flags to set on the boss bar</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the created boss bar</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createBossBar(org.bukkit.NamespacedKey,java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)">
|
||
|
<h3>createBossBar</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss">KeyedBossBar</a></span> <span class="element-name">createBossBar</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> title,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarColor.html" title="enum class in org.bukkit.boss">BarColor</a> color,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarStyle.html" title="enum class in org.bukkit.boss">BarStyle</a> style,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="boss/BarFlag.html" title="enum class in org.bukkit.boss">BarFlag</a>... flags)</span></div>
|
||
|
<div class="block">Creates a boss bar instance to display to players. The progress defaults
|
||
|
to 1.0.
|
||
|
<br>
|
||
|
This instance is added to the persistent storage of the server and will
|
||
|
be editable by commands and restored after restart.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>key</code> - the key of the boss bar that is used to access the boss bar</dd>
|
||
|
<dd><code>title</code> - the title of the boss bar</dd>
|
||
|
<dd><code>color</code> - the color of the boss bar</dd>
|
||
|
<dd><code>style</code> - the style of the boss bar</dd>
|
||
|
<dd><code>flags</code> - an optional list of flags to set on the boss bar</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the created boss bar</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getBossBars()">
|
||
|
<h3>getBossBars</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a><<a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss">KeyedBossBar</a>></span> <span class="element-name">getBossBars</span>()</div>
|
||
|
<div class="block">Gets an unmodifiable iterator through all persistent bossbars.
|
||
|
<ul>
|
||
|
<li><b>not</b> bound to a <a href="entity/Boss.html" title="interface in org.bukkit.entity"><code>Boss</code></a></li>
|
||
|
<li>
|
||
|
<b>not</b> created using
|
||
|
<a href="#createBossBar(java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)"><code>createBossBar(String, BarColor, BarStyle, BarFlag...)</code></a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
e.g. bossbars created using the bossbar command</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a bossbar iterator</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getBossBar(org.bukkit.NamespacedKey)">
|
||
|
<h3>getBossBar</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss">KeyedBossBar</a></span> <span class="element-name">getBossBar</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</span></div>
|
||
|
<div class="block">Gets the <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss"><code>KeyedBossBar</code></a> specified by this key.
|
||
|
<ul>
|
||
|
<li><b>not</b> bound to a <a href="entity/Boss.html" title="interface in org.bukkit.entity"><code>Boss</code></a></li>
|
||
|
<li>
|
||
|
<b>not</b> created using
|
||
|
<a href="#createBossBar(java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)"><code>createBossBar(String, BarColor, BarStyle, BarFlag...)</code></a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
e.g. bossbars created using the bossbar command</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>key</code> - unique bossbar key</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>bossbar or null if not exists</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="removeBossBar(org.bukkit.NamespacedKey)">
|
||
|
<h3>removeBossBar</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">removeBossBar</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</span></div>
|
||
|
<div class="block">Removes a <a href="boss/KeyedBossBar.html" title="interface in org.bukkit.boss"><code>KeyedBossBar</code></a> specified by this key.
|
||
|
<ul>
|
||
|
<li><b>not</b> bound to a <a href="entity/Boss.html" title="interface in org.bukkit.entity"><code>Boss</code></a></li>
|
||
|
<li>
|
||
|
<b>not</b> created using
|
||
|
<a href="#createBossBar(java.lang.String,org.bukkit.boss.BarColor,org.bukkit.boss.BarStyle,org.bukkit.boss.BarFlag...)"><code>createBossBar(String, BarColor, BarStyle, BarFlag...)</code></a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
e.g. bossbars created using the bossbar command</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>key</code> - unique bossbar key</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if removal succeeded or false</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getEntity(java.util.UUID)">
|
||
|
<h3>getEntity</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a></span> <span class="element-name">getEntity</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid)</span></div>
|
||
|
<div class="block">Gets an entity on the server by its UUID</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uuid</code> - the UUID of the entity</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the entity with the given UUID, or null if it isn't found</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTPS()">
|
||
|
<h3>getTPS</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">@org.jetbrains.annotations.NotNull double[]</span> <span class="element-name">getTPS</span>()</div>
|
||
|
<div class="block">Gets the current server TPS</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>current server TPS (1m, 5m, 15m in Paper-Server)</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTickTimes()">
|
||
|
<h3>getTickTimes</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type">@org.jetbrains.annotations.NotNull long[]</span> <span class="element-name">getTickTimes</span>()</div>
|
||
|
<div class="block">Get a sample of the servers last tick times (in nanos)</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>A sample of the servers last tick times (in nanos)</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAverageTickTime()">
|
||
|
<h3>getAverageTickTime</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">double</span> <span class="element-name">getAverageTickTime</span>()</div>
|
||
|
<div class="block">Get the average tick time (in millis)</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>Average tick time (in millis)</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getAdvancement(org.bukkit.NamespacedKey)">
|
||
|
<h3>getAdvancement</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="advancement/Advancement.html" title="interface in org.bukkit.advancement">Advancement</a></span> <span class="element-name">getAdvancement</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</span></div>
|
||
|
<div class="block">Get the advancement specified by this key.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>key</code> - unique advancement key</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>advancement or null if not exists</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="advancementIterator()">
|
||
|
<h3>advancementIterator</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</a><<a href="advancement/Advancement.html" title="interface in org.bukkit.advancement">Advancement</a>></span> <span class="element-name">advancementIterator</span>()</div>
|
||
|
<div class="block">Get an iterator through all advancements. Advancements cannot be removed
|
||
|
from this iterator,</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>an advancement iterator</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createBlockData(org.bukkit.Material)">
|
||
|
<h3>createBlockData</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></span> <span class="element-name">createBlockData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material)</span></div>
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance for the specified Material, with
|
||
|
all properties initialized to unspecified defaults.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>material</code> - the material</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>new data instance</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createBlockData(org.bukkit.Material,java.util.function.Consumer)">
|
||
|
<h3>createBlockData</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></span> <span class="element-name">createBlockData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/function/Consumer.html" title="class or interface in java.util.function" class="external-link">Consumer</a><<a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a>> consumer)</span></div>
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance for the specified Material, with
|
||
|
all properties initialized to unspecified defaults.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>material</code> - the material</dd>
|
||
|
<dd><code>consumer</code> - consumer to run on new instance before returning</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>new data instance</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createBlockData(java.lang.String)">
|
||
|
<h3>createBlockData</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></span> <span class="element-name">createBlockData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> data)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance with material and properties
|
||
|
parsed from provided data.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>data</code> - data string</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>new data instance</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the specified data is not valid</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createBlockData(org.bukkit.Material,java.lang.String)">
|
||
|
<h3>createBlockData</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Contract</a>("null, null -> fail")
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data">BlockData</a></span> <span class="element-name">createBlockData</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="Material.html" title="enum class in org.bukkit">Material</a> material,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> data)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||
|
<div class="block">Creates a new <a href="block/data/BlockData.html" title="interface in org.bukkit.block.data"><code>BlockData</code></a> instance for the specified Material, with
|
||
|
all properties initialized to unspecified defaults, except for those
|
||
|
provided in data.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>material</code> - the material</dd>
|
||
|
<dd><code>data</code> - data string</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>new data instance</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the specified data is not valid</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTag(java.lang.String,org.bukkit.NamespacedKey,java.lang.Class)">
|
||
|
<h3>getTag</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T extends <a href="Keyed.html" title="interface in org.bukkit">Keyed</a>></span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="Tag.html" title="interface in org.bukkit">Tag</a><T></span> <span class="element-name">getTag</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> registry,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> tag,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><T> clazz)</span></div>
|
||
|
<div class="block">Gets a tag which has already been defined within the server. Plugins are
|
||
|
suggested to use the concrete tags in <a href="Tag.html" title="interface in org.bukkit"><code>Tag</code></a> rather than this method
|
||
|
which makes no guarantees about which tags are available, and may also be
|
||
|
less performant due to lack of caching.
|
||
|
<br>
|
||
|
Tags will be searched for in an implementation specific manner, but a
|
||
|
path consisting of namespace/tags/registry/key is expected.
|
||
|
<br>
|
||
|
Server implementations are allowed to handle only the registries
|
||
|
indicated in <a href="Tag.html" title="interface in org.bukkit"><code>Tag</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Type Parameters:</dt>
|
||
|
<dd><code>T</code> - type of the tag</dd>
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>registry</code> - the tag registry to look at</dd>
|
||
|
<dd><code>tag</code> - the name of the tag</dd>
|
||
|
<dd><code>clazz</code> - the class of the tag entries</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the tag or null</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getTags(java.lang.String,java.lang.Class)">
|
||
|
<h3>getTags</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="type-parameters"><T extends <a href="Keyed.html" title="interface in org.bukkit">Keyed</a>></span>
|
||
|
<span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Iterable.html" title="class or interface in java.lang" class="external-link">Iterable</a><<a href="Tag.html" title="interface in org.bukkit">Tag</a><T>></span> <span class="element-name">getTags</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> registry,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><T> clazz)</span></div>
|
||
|
<div class="block">Gets a all tags which have been defined within the server.
|
||
|
<br>
|
||
|
Server implementations are allowed to handle only the registries
|
||
|
indicated in <a href="Tag.html" title="interface in org.bukkit"><code>Tag</code></a>.
|
||
|
<br>
|
||
|
No guarantees are made about the mutability of the returned iterator.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Type Parameters:</dt>
|
||
|
<dd><code>T</code> - type of the tag</dd>
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>registry</code> - the tag registry to look at</dd>
|
||
|
<dd><code>clazz</code> - the class of the tag entries</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>all defined tags</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getLootTable(org.bukkit.NamespacedKey)">
|
||
|
<h3>getLootTable</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="loot/LootTable.html" title="interface in org.bukkit.loot">LootTable</a></span> <span class="element-name">getLootTable</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="NamespacedKey.html" title="class in org.bukkit">NamespacedKey</a> key)</span></div>
|
||
|
<div class="block">Gets the specified <a href="loot/LootTable.html" title="interface in org.bukkit.loot"><code>LootTable</code></a>.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>key</code> - the name of the LootTable</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the LootTable, or null if no LootTable is found with that name</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="selectEntities(org.bukkit.command.CommandSender,java.lang.String)">
|
||
|
<h3>selectEntities</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/List.html" title="class or interface in java.util" class="external-link">List</a><<a href="entity/Entity.html" title="interface in org.bukkit.entity">Entity</a>></span> <span class="element-name">selectEntities</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="command/CommandSender.html" title="interface in org.bukkit.command">CommandSender</a> sender,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> selector)</span>
|
||
|
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||
|
<div class="block">Selects entities using the given Vanilla selector.
|
||
|
<br>
|
||
|
No guarantees are made about the selector format, other than they match
|
||
|
the Vanilla format for the active Minecraft version.
|
||
|
<br>
|
||
|
Usually a selector will start with '@', unless selecting a Player in
|
||
|
which case it may simply be the Player's name or UUID.
|
||
|
<br>
|
||
|
Note that in Vanilla, elevated permissions are usually required to use
|
||
|
'@' selectors, but this method should not check such permissions from the
|
||
|
sender.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>sender</code> - the sender to execute as, must be provided</dd>
|
||
|
<dd><code>selector</code> - the selection string</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>a list of the selected entities. The list will not be null, but
|
||
|
no further guarantees are made.</dd>
|
||
|
<dt>Throws:</dt>
|
||
|
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the selector is malformed in any way
|
||
|
or a parameter is null</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getStructureManager()">
|
||
|
<h3>getStructureManager</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="structure/StructureManager.html" title="interface in org.bukkit.structure">StructureManager</a></span> <span class="element-name">getStructureManager</span>()</div>
|
||
|
<div class="block">Gets the structure manager for loading and saving structures.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the structure manager</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getUnsafe()">
|
||
|
<h3>getUnsafe</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="UnsafeValues.html" title="interface in org.bukkit">UnsafeValues</a></span> <span class="element-name">getUnsafe</span>()</div>
|
||
|
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the unsafe values instance</dd>
|
||
|
<dt>See Also:</dt>
|
||
|
<dd>
|
||
|
<ul class="see-list">
|
||
|
<li><a href="UnsafeValues.html" title="interface in org.bukkit"><code>UnsafeValues</code></a></li>
|
||
|
</ul>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getCommandMap()">
|
||
|
<h3>getCommandMap</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="command/CommandMap.html" title="interface in org.bukkit.command">CommandMap</a></span> <span class="element-name">getCommandMap</span>()</div>
|
||
|
<div class="block">Gets the active <a href="command/CommandMap.html" title="interface in org.bukkit.command"><code>CommandMap</code></a></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the active command map</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="reloadPermissions()">
|
||
|
<h3>reloadPermissions</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">void</span> <span class="element-name">reloadPermissions</span>()</div>
|
||
|
<div class="block">Reload the Permissions in permissions.yml</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="reloadCommandAliases()">
|
||
|
<h3>reloadCommandAliases</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">reloadCommandAliases</span>()</div>
|
||
|
<div class="block">Reload the Command Aliases in commands.yml</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>Whether the reload was successful</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="suggestPlayerNamesWhenNullTabCompletions()">
|
||
|
<h3>suggestPlayerNamesWhenNullTabCompletions</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">suggestPlayerNamesWhenNullTabCompletions</span>()</div>
|
||
|
<div class="block">Checks if player names should be suggested when a command returns <code>null</code> as
|
||
|
their tab completion result.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if player names should be suggested</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPermissionMessage()">
|
||
|
<h3>getPermissionMessage</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">getPermissionMessage</span>()</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the default no permission message used on the server</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createProfile(java.util.UUID)">
|
||
|
<h3>createProfile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></span> <span class="element-name">createProfile</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid)</span></div>
|
||
|
<div class="block">Creates a PlayerProfile for the specified uuid, with name as null.
|
||
|
|
||
|
If a player with the passed uuid exists on the server at the time of creation, the returned player profile will
|
||
|
be populated with the properties of said player (including their uuid and name).</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uuid</code> - UUID to create profile for</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>A PlayerProfile object</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createProfile(java.lang.String)">
|
||
|
<h3>createProfile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></span> <span class="element-name">createProfile</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Creates a PlayerProfile for the specified name, with UUID as null.
|
||
|
|
||
|
If a player with the passed name exists on the server at the time of creation, the returned player profile will
|
||
|
be populated with the properties of said player (including their uuid and name).
|
||
|
<p>
|
||
|
E.g. if the player 'jeb_' is currently playing on the server, calling <code>createProfile("JEB_")</code> will
|
||
|
yield a profile with the name 'jeb_', their uuid and their textures.
|
||
|
To bypass this pre-population on a case-insensitive name match, see <a href="#createProfileExact(java.util.UUID,java.lang.String)"><code>createProfileExact(UUID, String)</code></a>.
|
||
|
<p></div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>name</code> - Name to create profile for</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>A PlayerProfile object</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createProfile(java.util.UUID,java.lang.String)">
|
||
|
<h3>createProfile</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></span> <span class="element-name">createProfile</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Creates a PlayerProfile for the specified name/uuid
|
||
|
|
||
|
Both UUID and Name can not be null at same time. One must be supplied.
|
||
|
If a player with the passed uuid or name exists on the server at the time of creation, the returned player
|
||
|
profile will be populated with the properties of said player (including their uuid and name).
|
||
|
<p>
|
||
|
E.g. if the player 'jeb_' is currently playing on the server, calling <code>createProfile(null, "JEB_")</code> will
|
||
|
yield a profile with the name 'jeb_', their uuid and their textures.
|
||
|
To bypass this pre-population on an case-insensitive name match, see <a href="#createProfileExact(java.util.UUID,java.lang.String)"><code>createProfileExact(UUID, String)</code></a>.
|
||
|
<p>
|
||
|
|
||
|
The name comparison will compare the <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html#toLowerCase()" title="class or interface in java.lang" class="external-link"><code>String.toLowerCase()</code></a> version of both the passed name parameter and
|
||
|
a players name to honour the case-insensitive nature of a mojang profile lookup.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uuid</code> - UUID to create profile for</dd>
|
||
|
<dd><code>name</code> - Name to create profile for</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>A PlayerProfile object</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="createProfileExact(java.util.UUID,java.lang.String)">
|
||
|
<h3>createProfileExact</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="../../com/destroystokyo/paper/profile/PlayerProfile.html" title="interface in com.destroystokyo.paper.profile">PlayerProfile</a></span> <span class="element-name">createProfileExact</span><wbr><span class="parameters">(<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/UUID.html" title="class or interface in java.util" class="external-link">UUID</a> uuid,
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a>
|
||
|
<a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html" title="class or interface in org.jetbrains.annotations" class="external-link">@Nullable</a> <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||
|
<div class="block">Creates an exact PlayerProfile for the specified name/uuid
|
||
|
|
||
|
Both UUID and Name can not be null at same time. One must be supplied.
|
||
|
If a player with the passed uuid or name exists on the server at the time of creation, the returned player
|
||
|
profile will be populated with the properties of said player.
|
||
|
<p>
|
||
|
Compared to <a href="#createProfile(java.util.UUID,java.lang.String)"><code>createProfile(UUID, String)</code></a>, this method will never mutate the passed uuid or name.
|
||
|
If a player with either the same uuid or a matching name (case-insensitive) is found on the server, their
|
||
|
properties, such as textures, will be pre-populated in the profile, however the passed uuid and name stay intact.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Parameters:</dt>
|
||
|
<dd><code>uuid</code> - UUID to create profile for</dd>
|
||
|
<dd><code>name</code> - Name to create profile for</dd>
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>A PlayerProfile object</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getCurrentTick()">
|
||
|
<h3>getCurrentTick</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">int</span> <span class="element-name">getCurrentTick</span>()</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="isStopping()">
|
||
|
<h3>isStopping</h3>
|
||
|
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type">boolean</span> <span class="element-name">isStopping</span>()</div>
|
||
|
<div class="block">Checks if the server is in the process of being shutdown.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>true if server is in the process of being shutdown</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getMobGoals()">
|
||
|
<h3>getMobGoals</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="../../com/destroystokyo/paper/entity/ai/MobGoals.html" title="interface in com.destroystokyo.paper.entity.ai">MobGoals</a></span> <span class="element-name">getMobGoals</span>()</div>
|
||
|
<div class="block">Returns the <a href="../../com/destroystokyo/paper/entity/ai/MobGoals.html" title="interface in com.destroystokyo.paper.entity.ai"><code>MobGoals</code></a> manager</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the mob goals manager</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getDatapackManager()">
|
||
|
<h3>getDatapackManager</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="../../io/papermc/paper/datapack/DatapackManager.html" title="interface in io.papermc.paper.datapack">DatapackManager</a></span> <span class="element-name">getDatapackManager</span>()</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the datapack manager</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="getPotionBrewer()">
|
||
|
<h3>getPotionBrewer</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="potion/PotionBrewer.html" title="interface in org.bukkit.potion">PotionBrewer</a></span> <span class="element-name">getPotionBrewer</span>()</div>
|
||
|
<div class="block">Gets the potion brewer.</div>
|
||
|
<dl class="notes">
|
||
|
<dt>Returns:</dt>
|
||
|
<dd>the potion brewer</dd>
|
||
|
</dl>
|
||
|
</section>
|
||
|
</li>
|
||
|
<li>
|
||
|
<section class="detail" id="spigot()">
|
||
|
<h3>spigot</h3>
|
||
|
<div class="member-signature"><span class="annotations"><a href="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html" title="class or interface in org.jetbrains.annotations" class="external-link">@NotNull</a>
|
||
|
</span><span class="modifiers">public static</span> <span class="return-type"><a href="Server.Spigot.html" title="class in org.bukkit">Server.Spigot</a></span> <span class="element-name">spigot</span>()</div>
|
||
|
</section>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</section>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</section>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
</main>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|