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

772 lines
40 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Team (Minestom 1.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="declaration: package: net.minestom.server.scoreboard, class: Team">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../script-dir/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../script-dir/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../script-dir/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../script-dir/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../script-dir/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../../../../script-dir/jquery-ui.js"></script>
</head>
<body class="class-declaration">
<script type="text/javascript">var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flexBox">
<header role="banner" class="flexHeader">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<div class="navListSearch"><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="skipNav"><a id="skip.navbar.top">
<!-- -->
</a></div>
</nav>
</header>
<div class="flexContent">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">net.minestom.server.scoreboard</a></div>
<h1 title="Class Team" class="title">Class Team</h1>
</div>
<div class="contentContainer">
<div class="inheritance" title="Inheritance Tree">java.lang.Object
<div class="inheritance">net.minestom.server.scoreboard.Team</div>
</div>
<section class="description">
<hr>
<pre>public class <span class="typeNameLabel">Team</span>
extends java.lang.Object</pre>
<div class="block">This object represents a team on a scoreboard that has a common display theme and other properties.</div>
</section>
<section class="summary">
<ul class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<li class="blockList">
<section class="constructorSummary"><a id="constructor.summary">
<!-- -->
</a>
<h2>Constructor Summary</h2>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<thead>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colSecond" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.String)">Team</a></span>&#8203;(java.lang.String&nbsp;teamName)</code></th>
<td class="colLast">
<div class="block">Default constructor to creates a team.</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li class="blockList">
<section class="methodSummary"><a id="method.summary">
<!-- -->
</a>
<h2>Method Summary</h2>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<thead>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMember(java.lang.String)">addMember</a></span>&#8203;(java.lang.String&nbsp;member)</code></th>
<td class="colLast">
<div class="block">Adds a member to the <a href="Team.html" title="class in net.minestom.server.scoreboard"><code>Team</code></a>.</div>
</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../network/packet/server/play/TeamsPacket.html" title="class in net.minestom.server.network.packet.server.play">TeamsPacket</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTeamDestructionPacket()">createTeamDestructionPacket</a></span>()</code></th>
<td class="colLast">
<div class="block">Creates an destruction packet to remove the team.</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../network/packet/server/play/TeamsPacket.html" title="class in net.minestom.server.network.packet.server.play">TeamsPacket</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTeamsCreationPacket()">createTeamsCreationPacket</a></span>()</code></th>
<td class="colLast">
<div class="block">Creates the creation packet to add a team.</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.CollisionRule</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCollisionRule()">getCollisionRule</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the collision rule of the team.</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>java.lang.String[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEntities()">getEntities</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>byte</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFriendlyFlags()">getFriendlyFlags</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the friendly flags of the team.</div>
</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>java.util.Set&lt;java.lang.String&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMembers()">getMembers</a></span>()</code></th>
<td class="colLast">
<div class="block">Obtains an unmodifiable <code>Set</code> of registered players who are on the team.</div>
</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code><a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.NameTagVisibility</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNameTagVisibility()">getNameTagVisibility</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the tag visibility of the team.</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPrefix()">getPrefix</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the prefix of the team.</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSuffix()">getSuffix</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the suffix of the team.</div>
</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code><a href="../chat/ChatColor.html" title="class in net.minestom.server.chat">ChatColor</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTeamColor()">getTeamColor</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the color of the team.</div>
</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTeamDisplayName()">getTeamDisplayName</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the display name of the team.</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTeamName()">getTeamName</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the registry name of the team.</div>
</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeMember(java.lang.String)">removeMember</a></span>&#8203;(java.lang.String&nbsp;member)</code></th>
<td class="colLast">
<div class="block">Removes a member from the <a href="Team.html" title="class in net.minestom.server.scoreboard"><code>Team</code></a>.</div>
</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendUpdatePacket()">sendUpdatePacket</a></span>()</code></th>
<td class="colLast">
<div class="block">Sends an <a href="../network/packet/server/play/TeamsPacket.Action.html#UPDATE_TEAM_INFO"><code>TeamsPacket.Action.UPDATE_TEAM_INFO</code></a> packet.</div>
</td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCollisionRule(net.minestom.server.network.packet.server.play.TeamsPacket.CollisionRule)">setCollisionRule</a></span>&#8203;(<a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.CollisionRule</a>&nbsp;rule)</code></th>
<td class="colLast">
<div class="block">Changes the <a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play"><code>TeamsPacket.CollisionRule</code></a> of the team.</div>
</td>
</tr>
<tr class="altColor" id="i16">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFriendlyFlags(byte)">setFriendlyFlags</a></span>&#8203;(byte&nbsp;flag)</code></th>
<td class="colLast">
<div class="block">Changes the friendly flags of the team.</div>
</td>
</tr>
<tr class="rowColor" id="i17">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setNameTagVisibility(net.minestom.server.network.packet.server.play.TeamsPacket.NameTagVisibility)">setNameTagVisibility</a></span>&#8203;(<a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.NameTagVisibility</a>&nbsp;visibility)</code></th>
<td class="colLast">
<div class="block">Changes the <a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play"><code>TeamsPacket.NameTagVisibility</code></a> of the team.</div>
</td>
</tr>
<tr class="altColor" id="i18">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPrefix(net.minestom.server.chat.ColoredText)">setPrefix</a></span>&#8203;(<a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;prefix)</code></th>
<td class="colLast">
<div class="block">Changes the prefix of the team.</div>
</td>
</tr>
<tr class="rowColor" id="i19">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSuffix(net.minestom.server.chat.ColoredText)">setSuffix</a></span>&#8203;(<a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;suffix)</code></th>
<td class="colLast">
<div class="block">Changes the suffix of the team.</div>
</td>
</tr>
<tr class="altColor" id="i20">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTeamColor(net.minestom.server.chat.ChatColor)">setTeamColor</a></span>&#8203;(<a href="../chat/ChatColor.html" title="class in net.minestom.server.chat">ChatColor</a>&nbsp;color)</code></th>
<td class="colLast">
<div class="block">Changes the color of the team.</div>
</td>
</tr>
<tr class="rowColor" id="i21">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTeamDisplayName(net.minestom.server.chat.ColoredText)">setTeamDisplayName</a></span>&#8203;(<a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;teamDisplayName)</code></th>
<td class="colLast">
<div class="block">Changes the display name of the team.</div>
</td>
</tr>
<tr class="altColor" id="i22">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateCollisionRule(net.minestom.server.network.packet.server.play.TeamsPacket.CollisionRule)">updateCollisionRule</a></span>&#8203;(<a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.CollisionRule</a>&nbsp;collisionRule)</code></th>
<td class="colLast">
<div class="block">Changes the collision rule of the team and sends an update packet.</div>
</td>
</tr>
<tr class="rowColor" id="i23">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateFriendlyFlags(byte)">updateFriendlyFlags</a></span>&#8203;(byte&nbsp;flag)</code></th>
<td class="colLast">
<div class="block">Changes the friendly flags of the team and sends an update packet.</div>
</td>
</tr>
<tr class="altColor" id="i24">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateNameTagVisibility(net.minestom.server.network.packet.server.play.TeamsPacket.NameTagVisibility)">updateNameTagVisibility</a></span>&#8203;(<a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.NameTagVisibility</a>&nbsp;nameTagVisibility)</code></th>
<td class="colLast">
<div class="block">Changes the <a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play"><code>TeamsPacket.NameTagVisibility</code></a> of the team and sends an update packet.</div>
</td>
</tr>
<tr class="rowColor" id="i25">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updatePrefix(net.minestom.server.chat.ColoredText)">updatePrefix</a></span>&#8203;(<a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;prefix)</code></th>
<td class="colLast">
<div class="block">Changes the prefix of the team and sends an update packet.</div>
</td>
</tr>
<tr class="altColor" id="i26">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateSuffix(net.minestom.server.chat.ColoredText)">updateSuffix</a></span>&#8203;(<a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;suffix)</code></th>
<td class="colLast">
<div class="block">Changes the suffix of the team and sends an update packet.</div>
</td>
</tr>
<tr class="rowColor" id="i27">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateTeamColor(net.minestom.server.chat.ChatColor)">updateTeamColor</a></span>&#8203;(<a href="../chat/ChatColor.html" title="class in net.minestom.server.chat">ChatColor</a>&nbsp;teamColor)</code></th>
<td class="colLast">
<div class="block">Changes the color of the team and sends an update packet.</div>
</td>
</tr>
<tr class="altColor" id="i28">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updateTeamDisplayName(net.minestom.server.chat.ColoredText)">updateTeamDisplayName</a></span>&#8203;(<a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;teamDisplayName)</code></th>
<td class="colLast">
<div class="block">Changes the display name of the team and sends an update packet.</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="inheritedList">
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a><code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<li class="blockList">
<section class="constructorDetails"><a id="constructor.detail">
<!-- -->
</a>
<h2>Constructor Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="&lt;init&gt;(java.lang.String)">Team</a></h3>
<div class="memberSignature"><span class="modifiers">protected</span>&nbsp;<span class="memberName">Team</span>&#8203;(<span class="arguments">java.lang.String&nbsp;teamName)</span></div>
<div class="block">Default constructor to creates a team.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>teamName</code> - The registry name for the team</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li class="blockList">
<section class="methodDetails"><a id="method.detail">
<!-- -->
</a>
<h2>Method Details</h2>
<ul class="blockList">
<li class="blockList">
<section class="detail">
<h3><a id="addMember(java.lang.String)">addMember</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">addMember</span>&#8203;(<span class="arguments">java.lang.String&nbsp;member)</span></div>
<div class="block">Adds a member to the <a href="Team.html" title="class in net.minestom.server.scoreboard"><code>Team</code></a>.
<br>
This member can be a <a href="../entity/Player.html" title="class in net.minestom.server.entity"><code>Player</code></a> or an <a href="../entity/LivingEntity.html" title="class in net.minestom.server.entity"><code>LivingEntity</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>member</code> - The member to be added</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="removeMember(java.lang.String)">removeMember</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">removeMember</span>&#8203;(<span class="arguments">java.lang.String&nbsp;member)</span></div>
<div class="block">Removes a member from the <a href="Team.html" title="class in net.minestom.server.scoreboard"><code>Team</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>member</code> - The member to be removed</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setTeamDisplayName(net.minestom.server.chat.ColoredText)">setTeamDisplayName</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setTeamDisplayName</span>&#8203;(<span class="arguments"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;teamDisplayName)</span></div>
<div class="block">Changes the display name of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>teamDisplayName</code> - The new display name</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updateTeamDisplayName(net.minestom.server.chat.ColoredText)">updateTeamDisplayName</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updateTeamDisplayName</span>&#8203;(<span class="arguments"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;teamDisplayName)</span></div>
<div class="block">Changes the display name of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>teamDisplayName</code> - The new display name</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setNameTagVisibility(net.minestom.server.network.packet.server.play.TeamsPacket.NameTagVisibility)">setNameTagVisibility</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setNameTagVisibility</span>&#8203;(<span class="arguments"><a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.NameTagVisibility</a>&nbsp;visibility)</span></div>
<div class="block">Changes the <a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play"><code>TeamsPacket.NameTagVisibility</code></a> of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>visibility</code> - The new tag visibility</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updateNameTagVisibility(net.minestom.server.network.packet.server.play.TeamsPacket.NameTagVisibility)">updateNameTagVisibility</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updateNameTagVisibility</span>&#8203;(<span class="arguments"><a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.NameTagVisibility</a>&nbsp;nameTagVisibility)</span></div>
<div class="block">Changes the <a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play"><code>TeamsPacket.NameTagVisibility</code></a> of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nameTagVisibility</code> - The new tag visibility</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setCollisionRule(net.minestom.server.network.packet.server.play.TeamsPacket.CollisionRule)">setCollisionRule</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setCollisionRule</span>&#8203;(<span class="arguments"><a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.CollisionRule</a>&nbsp;rule)</span></div>
<div class="block">Changes the <a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play"><code>TeamsPacket.CollisionRule</code></a> of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rule</code> - The new rule</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updateCollisionRule(net.minestom.server.network.packet.server.play.TeamsPacket.CollisionRule)">updateCollisionRule</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updateCollisionRule</span>&#8203;(<span class="arguments"><a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.CollisionRule</a>&nbsp;collisionRule)</span></div>
<div class="block">Changes the collision rule of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>collisionRule</code> - The new collision rule</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setTeamColor(net.minestom.server.chat.ChatColor)">setTeamColor</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setTeamColor</span>&#8203;(<span class="arguments"><a href="../chat/ChatColor.html" title="class in net.minestom.server.chat">ChatColor</a>&nbsp;color)</span></div>
<div class="block">Changes the color of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>color</code> - The new team color</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updateTeamColor(net.minestom.server.chat.ChatColor)">updateTeamColor</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updateTeamColor</span>&#8203;(<span class="arguments"><a href="../chat/ChatColor.html" title="class in net.minestom.server.chat">ChatColor</a>&nbsp;teamColor)</span></div>
<div class="block">Changes the color of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>teamColor</code> - The new team color</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setPrefix(net.minestom.server.chat.ColoredText)">setPrefix</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setPrefix</span>&#8203;(<span class="arguments"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;prefix)</span></div>
<div class="block">Changes the prefix of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>prefix</code> - The new prefix</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updatePrefix(net.minestom.server.chat.ColoredText)">updatePrefix</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updatePrefix</span>&#8203;(<span class="arguments"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;prefix)</span></div>
<div class="block">Changes the prefix of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>prefix</code> - The new prefix</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setSuffix(net.minestom.server.chat.ColoredText)">setSuffix</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setSuffix</span>&#8203;(<span class="arguments"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;suffix)</span></div>
<div class="block">Changes the suffix of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>suffix</code> - The new suffix</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updateSuffix(net.minestom.server.chat.ColoredText)">updateSuffix</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updateSuffix</span>&#8203;(<span class="arguments"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a>&nbsp;suffix)</span></div>
<div class="block">Changes the suffix of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>suffix</code> - The new suffix</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="setFriendlyFlags(byte)">setFriendlyFlags</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">setFriendlyFlags</span>&#8203;(<span class="arguments">byte&nbsp;flag)</span></div>
<div class="block">Changes the friendly flags of the team.
<br><br>
<b>Warning:</b> This is only changed on the <b>server side</b>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flag</code> - The new friendly flag</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="updateFriendlyFlags(byte)">updateFriendlyFlags</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">updateFriendlyFlags</span>&#8203;(<span class="arguments">byte&nbsp;flag)</span></div>
<div class="block">Changes the friendly flags of the team and sends an update packet.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flag</code> - The new friendly flag</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getTeamName()">getTeamName</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">java.lang.String</span>&nbsp;<span class="memberName">getTeamName</span>()</div>
<div class="block">Gets the registry name of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the registry name</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="createTeamsCreationPacket()">createTeamsCreationPacket</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../network/packet/server/play/TeamsPacket.html" title="class in net.minestom.server.network.packet.server.play">TeamsPacket</a></span>&nbsp;<span class="memberName">createTeamsCreationPacket</span>()</div>
<div class="block">Creates the creation packet to add a team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the packet to add the team</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="createTeamDestructionPacket()">createTeamDestructionPacket</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../network/packet/server/play/TeamsPacket.html" title="class in net.minestom.server.network.packet.server.play">TeamsPacket</a></span>&nbsp;<span class="memberName">createTeamDestructionPacket</span>()</div>
<div class="block">Creates an destruction packet to remove the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the packet to remove the team</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getMembers()">getMembers</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">java.util.Set&lt;java.lang.String&gt;</span>&nbsp;<span class="memberName">getMembers</span>()</div>
<div class="block">Obtains an unmodifiable <code>Set</code> of registered players who are on the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an unmodifiable <code>Set</code> of registered players</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getTeamDisplayName()">getTeamDisplayName</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a></span>&nbsp;<span class="memberName">getTeamDisplayName</span>()</div>
<div class="block">Gets the display name of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the display name</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getFriendlyFlags()">getFriendlyFlags</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">byte</span>&nbsp;<span class="memberName">getFriendlyFlags</span>()</div>
<div class="block">Gets the friendly flags of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the friendly flags</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getNameTagVisibility()">getNameTagVisibility</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../network/packet/server/play/TeamsPacket.NameTagVisibility.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.NameTagVisibility</a></span>&nbsp;<span class="memberName">getNameTagVisibility</span>()</div>
<div class="block">Gets the tag visibility of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the tag visibility</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getCollisionRule()">getCollisionRule</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../network/packet/server/play/TeamsPacket.CollisionRule.html" title="enum in net.minestom.server.network.packet.server.play">TeamsPacket.CollisionRule</a></span>&nbsp;<span class="memberName">getCollisionRule</span>()</div>
<div class="block">Gets the collision rule of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the collision rule</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getTeamColor()">getTeamColor</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../chat/ChatColor.html" title="class in net.minestom.server.chat">ChatColor</a></span>&nbsp;<span class="memberName">getTeamColor</span>()</div>
<div class="block">Gets the color of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the team color</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getPrefix()">getPrefix</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a></span>&nbsp;<span class="memberName">getPrefix</span>()</div>
<div class="block">Gets the prefix of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the team prefix</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getSuffix()">getSuffix</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType"><a href="../chat/ColoredText.html" title="class in net.minestom.server.chat">ColoredText</a></span>&nbsp;<span class="memberName">getSuffix</span>()</div>
<div class="block">Gets the suffix of the team.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the suffix team</dd>
</dl>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="getEntities()">getEntities</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">java.lang.String[]</span>&nbsp;<span class="memberName">getEntities</span>()</div>
</section>
</li>
<li class="blockList">
<section class="detail">
<h3><a id="sendUpdatePacket()">sendUpdatePacket</a></h3>
<div class="memberSignature"><span class="modifiers">public</span>&nbsp;<span class="returnType">void</span>&nbsp;<span class="memberName">sendUpdatePacket</span>()</div>
<div class="block">Sends an <a href="../network/packet/server/play/TeamsPacket.Action.html#UPDATE_TEAM_INFO"><code>TeamsPacket.Action.UPDATE_TEAM_INFO</code></a> packet.</div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
</div>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</div>
</div>
</body>
</html>