mirror of
https://github.com/AtlasMediaGroup/Scissors-Website.git
synced 2024-12-30 13:47:38 +00:00
723 lines
64 KiB
HTML
723 lines
64 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (17) -->
|
|
<title>GameRule (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: GameRule">
|
|
<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><a href="#field-summary">Field</a> | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method-summary">Method</a></li>
|
|
</ul>
|
|
<ul class="sub-nav-list">
|
|
<li>Detail: </li>
|
|
<li><a href="#field-detail">Field</a> | </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 GameRule" class="title">Class GameRule<T></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.GameRule<T></div>
|
|
</div>
|
|
<section class="class-description" id="class-description">
|
|
<dl class="notes">
|
|
<dt>Type Parameters:</dt>
|
|
<dd><code>T</code> - type of rule (Boolean or Integer)</dd>
|
|
</dl>
|
|
<dl class="notes">
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html" title="class or interface in net.kyori.adventure.translation" class="external-link">Translatable</a></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<div class="type-signature"><span class="modifiers">public final class </span><span class="element-name type-name-label">GameRule<T></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>
|
|
implements <a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html" title="class or interface in net.kyori.adventure.translation" class="external-link">Translatable</a></span></div>
|
|
<div class="block">GameRules dictate certain behavior within Minecraft itself
|
|
<br>
|
|
For more information please visit the
|
|
<a href="https://minecraft.gamepedia.com/Commands/gamerule">Minecraft
|
|
Wiki</a></div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<li>
|
|
<section class="field-summary" id="field-summary">
|
|
<h2>Field Summary</h2>
|
|
<div class="caption"><span>Fields</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifier and Type</div>
|
|
<div class="table-header col-second">Field</div>
|
|
<div class="table-header col-last">Description</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#ANNOUNCE_ADVANCEMENTS" class="member-name-link">ANNOUNCE_ADVANCEMENTS</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Toggles the announcing of advancements.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#COMMAND_BLOCK_OUTPUT" class="member-name-link">COMMAND_BLOCK_OUTPUT</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether command blocks should notify admins when they perform commands.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DISABLE_ELYTRA_MOVEMENT_CHECK" class="member-name-link">DISABLE_ELYTRA_MOVEMENT_CHECK</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether the server should skip checking player speed when the player is
|
|
wearing elytra.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DISABLE_RAIDS" class="member-name-link">DISABLE_RAIDS</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether pillager raids are enabled or not.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DO_DAYLIGHT_CYCLE" class="member-name-link">DO_DAYLIGHT_CYCLE</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether time progresses from the current moment.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DO_ENTITY_DROPS" class="member-name-link">DO_ENTITY_DROPS</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether entities that are not mobs should have drops.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DO_FIRE_TICK" class="member-name-link">DO_FIRE_TICK</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether fire should spread and naturally extinguish.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DO_IMMEDIATE_RESPAWN" class="member-name-link">DO_IMMEDIATE_RESPAWN</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether clients will respawn immediately after death or not.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DO_INSOMNIA" class="member-name-link">DO_INSOMNIA</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether phantoms will appear without sleeping or not.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DO_LIMITED_CRAFTING" class="member-name-link">DO_LIMITED_CRAFTING</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether players should only be able to craft recipes they've unlocked
|
|
first.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DO_MOB_LOOT" class="member-name-link">DO_MOB_LOOT</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether mobs should drop items.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DO_MOB_SPAWNING" class="member-name-link">DO_MOB_SPAWNING</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether mobs should naturally spawn.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DO_PATROL_SPAWNING" class="member-name-link">DO_PATROL_SPAWNING</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether patrols should naturally spawn.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DO_TILE_DROPS" class="member-name-link">DO_TILE_DROPS</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether blocks should have drops.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DO_TRADER_SPAWNING" class="member-name-link">DO_TRADER_SPAWNING</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether traders should naturally spawn.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#DO_WEATHER_CYCLE" class="member-name-link">DO_WEATHER_CYCLE</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether the weather will change from the current moment.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#DROWNING_DAMAGE" class="member-name-link">DROWNING_DAMAGE</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether drowning damage is enabled or not.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#FALL_DAMAGE" class="member-name-link">FALL_DAMAGE</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether fall damage is enabled or not.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#FIRE_DAMAGE" class="member-name-link">FIRE_DAMAGE</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether fire damage is enabled or not.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#FORGIVE_DEAD_PLAYERS" class="member-name-link">FORGIVE_DEAD_PLAYERS</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether mobs should cease being angry at a player once they die.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#FREEZE_DAMAGE" class="member-name-link">FREEZE_DAMAGE</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether freeze damage is enabled or not.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#KEEP_INVENTORY" class="member-name-link">KEEP_INVENTORY</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether the player should keep items in their inventory after death.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#LOG_ADMIN_COMMANDS" class="member-name-link">LOG_ADMIN_COMMANDS</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether to log admin commands to server log.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#MAX_COMMAND_CHAIN_LENGTH" class="member-name-link">MAX_COMMAND_CHAIN_LENGTH</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Determines the number at which the chain of command blocks act as a
|
|
"chain."
|
|
<br>
|
|
This is the maximum amount of command blocks that can be activated in a
|
|
single tick from a single chain.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#MAX_ENTITY_CRAMMING" class="member-name-link">MAX_ENTITY_CRAMMING</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">The maximum number of other pushable entities a mob or player can push,
|
|
before taking suffocation damage.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#MOB_GRIEFING" class="member-name-link">MOB_GRIEFING</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether mobs can pick up items or change blocks.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#NATURAL_REGENERATION" class="member-name-link">NATURAL_REGENERATION</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether players can regenerate health naturally through their hunger bar.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#PLAYERS_SLEEPING_PERCENTAGE" class="member-name-link">PLAYERS_SLEEPING_PERCENTAGE</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">The percentage of online players which must be sleeping for the night to
|
|
advance.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#RANDOM_TICK_SPEED" class="member-name-link">RANDOM_TICK_SPEED</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">How often a random block tick occurs (such as plant growth, leaf decay,
|
|
etc.) per chunk section per game tick.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#REDUCED_DEBUG_INFO" class="member-name-link">REDUCED_DEBUG_INFO</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether the debug screen shows all or reduced information.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#SEND_COMMAND_FEEDBACK" class="member-name-link">SEND_COMMAND_FEEDBACK</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether the feedback from commands executed by a player should show up in
|
|
chat.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#SHOW_DEATH_MESSAGES" class="member-name-link">SHOW_DEATH_MESSAGES</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether a message appears in chat when a player dies.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#SPAWN_RADIUS" class="member-name-link">SPAWN_RADIUS</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">The number of blocks outward from the world spawn coordinates that a
|
|
player will spawn in when first joining a server or when dying without a
|
|
spawnpoint.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#SPECTATORS_GENERATE_CHUNKS" class="member-name-link">SPECTATORS_GENERATE_CHUNKS</a></code></div>
|
|
<div class="col-last odd-row-color">
|
|
<div class="block">Whether players in spectator mode can generate chunks.</div>
|
|
</div>
|
|
<div class="col-first even-row-color"><code>static final <a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#UNIVERSAL_ANGER" class="member-name-link">UNIVERSAL_ANGER</a></code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Whether mobs will target all player entities once angered.</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<!-- ========== 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-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance 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></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-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#equals(java.lang.Object)" class="member-name-link">equals</a><wbr>(<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> obj)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 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="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="GameRule.html" title="class in org.bukkit">GameRule</a><?></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getByName(java.lang.String)" class="member-name-link">getByName</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> rule)</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 <a href="GameRule.html" title="class in org.bukkit"><code>GameRule</code></a> by its name.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://javadoc.io/doc/org.jetbrains/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-tab2 method-summary-table-tab4"><code><a href="#getName()" class="member-name-link">getName</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Get the name of this GameRule.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://javadoc.io/doc/org.jetbrains/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><<a href="GameRule.html" title="type parameter in GameRule">T</a>></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getType()" class="member-name-link">getType</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Get the type of this rule.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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-tab2 method-summary-table-tab4"><code><a href="#toString()" class="member-name-link">toString</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://javadoc.io/doc/org.jetbrains/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-tab2 method-summary-table-tab4"><code><a href="#translationKey()" class="member-name-link">translationKey</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Gets the translation 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="GameRule.html" title="class in org.bukkit">GameRule</a><?>[]</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#values()" class="member-name-link">values</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 immutable collection of <a href="GameRule.html" title="class in org.bukkit"><code>GameRule</code></a>s.</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#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#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">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<li>
|
|
<section class="field-details" id="field-detail">
|
|
<h2>Field Details</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="ANNOUNCE_ADVANCEMENTS">
|
|
<h3>ANNOUNCE_ADVANCEMENTS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">ANNOUNCE_ADVANCEMENTS</span></div>
|
|
<div class="block">Toggles the announcing of advancements.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="COMMAND_BLOCK_OUTPUT">
|
|
<h3>COMMAND_BLOCK_OUTPUT</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">COMMAND_BLOCK_OUTPUT</span></div>
|
|
<div class="block">Whether command blocks should notify admins when they perform commands.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DISABLE_ELYTRA_MOVEMENT_CHECK">
|
|
<h3>DISABLE_ELYTRA_MOVEMENT_CHECK</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DISABLE_ELYTRA_MOVEMENT_CHECK</span></div>
|
|
<div class="block">Whether the server should skip checking player speed when the player is
|
|
wearing elytra.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_DAYLIGHT_CYCLE">
|
|
<h3>DO_DAYLIGHT_CYCLE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_DAYLIGHT_CYCLE</span></div>
|
|
<div class="block">Whether time progresses from the current moment.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_ENTITY_DROPS">
|
|
<h3>DO_ENTITY_DROPS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_ENTITY_DROPS</span></div>
|
|
<div class="block">Whether entities that are not mobs should have drops.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_FIRE_TICK">
|
|
<h3>DO_FIRE_TICK</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_FIRE_TICK</span></div>
|
|
<div class="block">Whether fire should spread and naturally extinguish.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_LIMITED_CRAFTING">
|
|
<h3>DO_LIMITED_CRAFTING</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_LIMITED_CRAFTING</span></div>
|
|
<div class="block">Whether players should only be able to craft recipes they've unlocked
|
|
first.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_MOB_LOOT">
|
|
<h3>DO_MOB_LOOT</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_MOB_LOOT</span></div>
|
|
<div class="block">Whether mobs should drop items.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_MOB_SPAWNING">
|
|
<h3>DO_MOB_SPAWNING</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_MOB_SPAWNING</span></div>
|
|
<div class="block">Whether mobs should naturally spawn.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_TILE_DROPS">
|
|
<h3>DO_TILE_DROPS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_TILE_DROPS</span></div>
|
|
<div class="block">Whether blocks should have drops.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_WEATHER_CYCLE">
|
|
<h3>DO_WEATHER_CYCLE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_WEATHER_CYCLE</span></div>
|
|
<div class="block">Whether the weather will change from the current moment.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="KEEP_INVENTORY">
|
|
<h3>KEEP_INVENTORY</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">KEEP_INVENTORY</span></div>
|
|
<div class="block">Whether the player should keep items in their inventory after death.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="LOG_ADMIN_COMMANDS">
|
|
<h3>LOG_ADMIN_COMMANDS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">LOG_ADMIN_COMMANDS</span></div>
|
|
<div class="block">Whether to log admin commands to server log.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="MOB_GRIEFING">
|
|
<h3>MOB_GRIEFING</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">MOB_GRIEFING</span></div>
|
|
<div class="block">Whether mobs can pick up items or change blocks.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="NATURAL_REGENERATION">
|
|
<h3>NATURAL_REGENERATION</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">NATURAL_REGENERATION</span></div>
|
|
<div class="block">Whether players can regenerate health naturally through their hunger bar.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="REDUCED_DEBUG_INFO">
|
|
<h3>REDUCED_DEBUG_INFO</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">REDUCED_DEBUG_INFO</span></div>
|
|
<div class="block">Whether the debug screen shows all or reduced information.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="SEND_COMMAND_FEEDBACK">
|
|
<h3>SEND_COMMAND_FEEDBACK</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">SEND_COMMAND_FEEDBACK</span></div>
|
|
<div class="block">Whether the feedback from commands executed by a player should show up in
|
|
chat. Also affects the default behavior of whether command blocks store
|
|
their output text.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="SHOW_DEATH_MESSAGES">
|
|
<h3>SHOW_DEATH_MESSAGES</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">SHOW_DEATH_MESSAGES</span></div>
|
|
<div class="block">Whether a message appears in chat when a player dies.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="SPECTATORS_GENERATE_CHUNKS">
|
|
<h3>SPECTATORS_GENERATE_CHUNKS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">SPECTATORS_GENERATE_CHUNKS</span></div>
|
|
<div class="block">Whether players in spectator mode can generate chunks.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DISABLE_RAIDS">
|
|
<h3>DISABLE_RAIDS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DISABLE_RAIDS</span></div>
|
|
<div class="block">Whether pillager raids are enabled or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_INSOMNIA">
|
|
<h3>DO_INSOMNIA</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_INSOMNIA</span></div>
|
|
<div class="block">Whether phantoms will appear without sleeping or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_IMMEDIATE_RESPAWN">
|
|
<h3>DO_IMMEDIATE_RESPAWN</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_IMMEDIATE_RESPAWN</span></div>
|
|
<div class="block">Whether clients will respawn immediately after death or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DROWNING_DAMAGE">
|
|
<h3>DROWNING_DAMAGE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DROWNING_DAMAGE</span></div>
|
|
<div class="block">Whether drowning damage is enabled or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="FALL_DAMAGE">
|
|
<h3>FALL_DAMAGE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">FALL_DAMAGE</span></div>
|
|
<div class="block">Whether fall damage is enabled or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="FIRE_DAMAGE">
|
|
<h3>FIRE_DAMAGE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">FIRE_DAMAGE</span></div>
|
|
<div class="block">Whether fire damage is enabled or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="FREEZE_DAMAGE">
|
|
<h3>FREEZE_DAMAGE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">FREEZE_DAMAGE</span></div>
|
|
<div class="block">Whether freeze damage is enabled or not.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_PATROL_SPAWNING">
|
|
<h3>DO_PATROL_SPAWNING</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_PATROL_SPAWNING</span></div>
|
|
<div class="block">Whether patrols should naturally spawn.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="DO_TRADER_SPAWNING">
|
|
<h3>DO_TRADER_SPAWNING</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">DO_TRADER_SPAWNING</span></div>
|
|
<div class="block">Whether traders should naturally spawn.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="FORGIVE_DEAD_PLAYERS">
|
|
<h3>FORGIVE_DEAD_PLAYERS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">FORGIVE_DEAD_PLAYERS</span></div>
|
|
<div class="block">Whether mobs should cease being angry at a player once they die.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="UNIVERSAL_ANGER">
|
|
<h3>UNIVERSAL_ANGER</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Boolean.html" title="class or interface in java.lang" class="external-link">Boolean</a>></span> <span class="element-name">UNIVERSAL_ANGER</span></div>
|
|
<div class="block">Whether mobs will target all player entities once angered.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="RANDOM_TICK_SPEED">
|
|
<h3>RANDOM_TICK_SPEED</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></span> <span class="element-name">RANDOM_TICK_SPEED</span></div>
|
|
<div class="block">How often a random block tick occurs (such as plant growth, leaf decay,
|
|
etc.) per chunk section per game tick. 0 will disable random ticks,
|
|
higher numbers will increase random ticks.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="SPAWN_RADIUS">
|
|
<h3>SPAWN_RADIUS</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></span> <span class="element-name">SPAWN_RADIUS</span></div>
|
|
<div class="block">The number of blocks outward from the world spawn coordinates that a
|
|
player will spawn in when first joining a server or when dying without a
|
|
spawnpoint.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="MAX_ENTITY_CRAMMING">
|
|
<h3>MAX_ENTITY_CRAMMING</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></span> <span class="element-name">MAX_ENTITY_CRAMMING</span></div>
|
|
<div class="block">The maximum number of other pushable entities a mob or player can push,
|
|
before taking suffocation damage.
|
|
<br>
|
|
Setting to 0 disables this rule.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="MAX_COMMAND_CHAIN_LENGTH">
|
|
<h3>MAX_COMMAND_CHAIN_LENGTH</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></span> <span class="element-name">MAX_COMMAND_CHAIN_LENGTH</span></div>
|
|
<div class="block">Determines the number at which the chain of command blocks act as a
|
|
"chain."
|
|
<br>
|
|
This is the maximum amount of command blocks that can be activated in a
|
|
single tick from a single chain.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="PLAYERS_SLEEPING_PERCENTAGE">
|
|
<h3>PLAYERS_SLEEPING_PERCENTAGE</h3>
|
|
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="GameRule.html" title="class in org.bukkit">GameRule</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html" title="class or interface in java.lang" class="external-link">Integer</a>></span> <span class="element-name">PLAYERS_SLEEPING_PERCENTAGE</span></div>
|
|
<div class="block">The percentage of online players which must be sleeping for the night to
|
|
advance.</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<li>
|
|
<section class="method-details" id="method-detail">
|
|
<h2>Method Details</h2>
|
|
<ul class="member-list">
|
|
<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</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">Get the name of this GameRule.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the name of this GameRule</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getType()">
|
|
<h3>getType</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</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/Class.html" title="class or interface in java.lang" class="external-link">Class</a><<a href="GameRule.html" title="type parameter in GameRule">T</a>></span> <span class="element-name">getType</span>()</div>
|
|
<div class="block">Get the type of this rule.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>the rule type; Integer or Boolean</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="equals(java.lang.Object)">
|
|
<h3>equals</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">equals</span><wbr><span class="parameters">(<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> obj)</span></div>
|
|
<dl class="notes">
|
|
<dt>Overrides:</dt>
|
|
<dd><code><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></code> in class <code><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></code></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="toString()">
|
|
<h3>toString</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><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">toString</span>()</div>
|
|
<dl class="notes">
|
|
<dt>Overrides:</dt>
|
|
<dd><code><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></code> in class <code><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></code></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getByName(java.lang.String)">
|
|
<h3>getByName</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="GameRule.html" title="class in org.bukkit">GameRule</a><?></span> <span class="element-name">getByName</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> rule)</span></div>
|
|
<div class="block">Get a <a href="GameRule.html" title="class in org.bukkit"><code>GameRule</code></a> by its name.</div>
|
|
<dl class="notes">
|
|
<dt>Parameters:</dt>
|
|
<dd><code>rule</code> - the name of the GameRule</dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the <a href="GameRule.html" title="class in org.bukkit"><code>GameRule</code></a> or null if no GameRule matches the given
|
|
name</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="values()">
|
|
<h3>values</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="GameRule.html" title="class in org.bukkit">GameRule</a><?>[]</span> <span class="element-name">values</span>()</div>
|
|
<div class="block">Get an immutable collection of <a href="GameRule.html" title="class in org.bukkit"><code>GameRule</code></a>s.</div>
|
|
<dl class="notes">
|
|
<dt>Returns:</dt>
|
|
<dd>an immutable collection containing all registered GameRules.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="translationKey()">
|
|
<h3>translationKey</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</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">translationKey</span>()</div>
|
|
<div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()" title="class or interface in net.kyori.adventure.translation" class="external-link">net.kyori.adventure.translation.Translatable</a></code></span></div>
|
|
<div class="block">Gets the translation key.</div>
|
|
<dl class="notes">
|
|
<dt>Specified by:</dt>
|
|
<dd><code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html#translationKey()" title="class or interface in net.kyori.adventure.translation" class="external-link">translationKey</a></code> in interface <code><a href="https://jd.adventure.kyori.net/api/4.11.0/net/kyori/adventure/translation/Translatable.html" title="class or interface in net.kyori.adventure.translation" class="external-link">Translatable</a></code></dd>
|
|
<dt>Returns:</dt>
|
|
<dd>the translation key</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|