mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-07 19:31:37 +01:00
558 lines
34 KiB
HTML
558 lines
34 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc -->
|
|
<title>EquipmentHandler (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.inventory, interface: EquipmentHandler">
|
|
<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":6,"i1":6,"i2":18,"i3":18,"i4":6,"i5":18,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":18,"i13":6,"i14":6,"i15":6,"i16":18,"i17":18,"i18":18};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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> <a href="package-summary.html">net.minestom.server.inventory</a></div>
|
|
<h1 title="Interface EquipmentHandler" class="title">Interface EquipmentHandler</h1>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<section class="description">
|
|
<dl>
|
|
<dt>All Known Implementing Classes:</dt>
|
|
<dd><code><a href="../entity/type/decoration/EntityArmorStand.html" title="class in net.minestom.server.entity.type.decoration">EntityArmorStand</a></code>, <code><a href="../entity/type/ambient/EntityBat.html" title="class in net.minestom.server.entity.type.ambient">EntityBat</a></code>, <code><a href="../entity/type/animal/EntityBee.html" title="class in net.minestom.server.entity.type.animal">EntityBee</a></code>, <code><a href="../entity/type/monster/EntityBlaze.html" title="class in net.minestom.server.entity.type.monster">EntityBlaze</a></code>, <code><a href="../entity/type/animal/EntityCat.html" title="class in net.minestom.server.entity.type.animal">EntityCat</a></code>, <code><a href="../entity/type/monster/EntityCaveSpider.html" title="class in net.minestom.server.entity.type.monster">EntityCaveSpider</a></code>, <code><a href="../entity/type/animal/EntityChicken.html" title="class in net.minestom.server.entity.type.animal">EntityChicken</a></code>, <code><a href="../entity/type/animal/EntityCow.html" title="class in net.minestom.server.entity.type.animal">EntityCow</a></code>, <code><a href="../entity/EntityCreature.html" title="class in net.minestom.server.entity">EntityCreature</a></code>, <code><a href="../entity/type/monster/EntityCreeper.html" title="class in net.minestom.server.entity.type.monster">EntityCreeper</a></code>, <code><a href="../entity/type/animal/EntityDolphin.html" title="class in net.minestom.server.entity.type.animal">EntityDolphin</a></code>, <code><a href="../entity/type/monster/EntityEndermite.html" title="class in net.minestom.server.entity.type.monster">EntityEndermite</a></code>, <code><a href="../entity/type/animal/EntityFox.html" title="class in net.minestom.server.entity.type.animal">EntityFox</a></code>, <code><a href="../entity/type/monster/EntityGhast.html" title="class in net.minestom.server.entity.type.monster">EntityGhast</a></code>, <code><a href="../entity/type/monster/EntityGiant.html" title="class in net.minestom.server.entity.type.monster">EntityGiant</a></code>, <code><a href="../entity/type/monster/EntityGuardian.html" title="class in net.minestom.server.entity.type.monster">EntityGuardian</a></code>, <code><a href="../entity/type/other/EntityIronGolem.html" title="class in net.minestom.server.entity.type.other">EntityIronGolem</a></code>, <code><a href="../entity/type/animal/EntityMooshroom.html" title="class in net.minestom.server.entity.type.animal">EntityMooshroom</a></code>, <code><a href="../entity/type/animal/EntityOcelot.html" title="class in net.minestom.server.entity.type.animal">EntityOcelot</a></code>, <code><a href="../entity/type/animal/EntityPanda.html" title="class in net.minestom.server.entity.type.animal">EntityPanda</a></code>, <code><a href="../entity/type/monster/EntityPhantom.html" title="class in net.minestom.server.entity.type.monster">EntityPhantom</a></code>, <code><a href="../entity/type/animal/EntityPig.html" title="class in net.minestom.server.entity.type.animal">EntityPig</a></code>, <code><a href="../entity/type/animal/EntityPolarBear.html" title="class in net.minestom.server.entity.type.animal">EntityPolarBear</a></code>, <code><a href="../entity/type/animal/EntityRabbit.html" title="class in net.minestom.server.entity.type.animal">EntityRabbit</a></code>, <code><a href="../entity/type/monster/EntitySilverfish.html" title="class in net.minestom.server.entity.type.monster">EntitySilverfish</a></code>, <code><a href="../entity/type/monster/EntitySlime.html" title="class in net.minestom.server.entity.type.monster">EntitySlime</a></code>, <code><a href="../entity/type/other/EntitySnowman.html" title="class in net.minestom.server.entity.type.other">EntitySnowman</a></code>, <code><a href="../entity/type/monster/EntitySpider.html" title="class in net.minestom.server.entity.type.monster">EntitySpider</a></code>, <code><a href="../entity/type/monster/EntityWitch.html" title="class in net.minestom.server.entity.type.monster">EntityWitch</a></code>, <code><a href="../entity/type/monster/EntityZombie.html" title="class in net.minestom.server.entity.type.monster">EntityZombie</a></code>, <code><a href="../entity/type/monster/EntityZombifiedPiglin.html" title="class in net.minestom.server.entity.type.monster">EntityZombifiedPiglin</a></code>, <code><a href="../entity/fakeplayer/FakePlayer.html" title="class in net.minestom.server.entity.fakeplayer">FakePlayer</a></code>, <code><a href="../entity/LivingEntity.html" title="class in net.minestom.server.entity">LivingEntity</a></code>, <code><a href="../entity/Player.html" title="class in net.minestom.server.entity">Player</a></code>, <code><a href="PlayerInventory.html" title="class in net.minestom.server.inventory">PlayerInventory</a></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">EquipmentHandler</span></pre>
|
|
<div class="block">Represents an <a href="../entity/Entity.html" title="class in net.minestom.server.entity"><code>Entity</code></a> which can have <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in hands and armor slots.</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="blockList">
|
|
<!-- ========== 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="t3" class="tableTab" onclick="show(4);">Abstract Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t5" class="tableTab" onclick="show(16);">Default 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><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBoots()">getBoots</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the boots.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i1">
|
|
<td class="colFirst"><code><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChestplate()">getChestplate</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the chestplate.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i2">
|
|
<td class="colFirst"><code>default <a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEquipment(net.minestom.server.network.packet.server.play.EntityEquipmentPacket.Slot)">getEquipment</a></span>​(<a href="../network/packet/server/play/EntityEquipmentPacket.Slot.html" title="enum in net.minestom.server.network.packet.server.play">EntityEquipmentPacket.Slot</a> slot)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the equipment in a specific slot.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i3">
|
|
<td class="colFirst"><code>default <a href="../network/packet/server/play/EntityEquipmentPacket.html" title="class in net.minestom.server.network.packet.server.play">EntityEquipmentPacket</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEquipmentsPacket()">getEquipmentsPacket</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the packet with all the equipments.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i4">
|
|
<td class="colFirst"><code><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHelmet()">getHelmet</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the helmet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i5">
|
|
<td class="colFirst"><code>default <a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getItemInHand(net.minestom.server.entity.Player.Hand)">getItemInHand</a></span>​(<a href="../entity/Player.Hand.html" title="enum in net.minestom.server.entity">Player.Hand</a> hand)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in the specific hand.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i6">
|
|
<td class="colFirst"><code><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getItemInMainHand()">getItemInMainHand</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in main hand.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i7">
|
|
<td class="colFirst"><code><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getItemInOffHand()">getItemInOffHand</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in off hand.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i8">
|
|
<td class="colFirst"><code><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLeggings()">getLeggings</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Gets the leggings.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i9">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setBoots(net.minestom.server.item.ItemStack)">setBoots</a></span>​(<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the boots.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i10">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setChestplate(net.minestom.server.item.ItemStack)">setChestplate</a></span>​(<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the chestplate.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i11">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHelmet(net.minestom.server.item.ItemStack)">setHelmet</a></span>​(<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the helmet.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i12">
|
|
<td class="colFirst"><code>default void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setItemInHand(net.minestom.server.entity.Player.Hand,net.minestom.server.item.ItemStack)">setItemInHand</a></span>​(<a href="../entity/Player.Hand.html" title="enum in net.minestom.server.entity">Player.Hand</a> hand,
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> stack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in the specific hand.</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="#setItemInMainHand(net.minestom.server.item.ItemStack)">setItemInMainHand</a></span>​(<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the main hand <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</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="#setItemInOffHand(net.minestom.server.item.ItemStack)">setItemInOffHand</a></span>​(<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the off hand <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a>.</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="#setLeggings(net.minestom.server.item.ItemStack)">setLeggings</a></span>​(<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the leggings.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i16">
|
|
<td class="colFirst"><code>default void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncEquipment(net.minestom.server.network.packet.server.play.EntityEquipmentPacket.Slot)">syncEquipment</a></span>​(<a href="../network/packet/server/play/EntityEquipmentPacket.Slot.html" title="enum in net.minestom.server.network.packet.server.play">EntityEquipmentPacket.Slot</a> slot)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sends a specific equipment to viewers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i17">
|
|
<td class="colFirst"><code>default void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncEquipments()">syncEquipments</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sends all the equipments to all viewers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i18">
|
|
<td class="colFirst"><code>default void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncEquipments(net.minestom.server.network.player.PlayerConnection)">syncEquipments</a></span>​(<a href="../network/player/PlayerConnection.html" title="class in net.minestom.server.network.player">PlayerConnection</a> connection)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sends all the equipments to a <a href="../network/player/PlayerConnection.html" title="class in net.minestom.server.network.player"><code>PlayerConnection</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="details">
|
|
<ul class="blockList">
|
|
<!-- ============ 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="getItemInMainHand()">getItemInMainHand</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getItemInMainHand</span>()</div>
|
|
<div class="block">Gets the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in main hand.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in main hand</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setItemInMainHand(net.minestom.server.item.ItemStack)">setItemInMainHand</a></h3>
|
|
<div class="memberSignature"><span class="returnType">void</span> <span class="memberName">setItemInMainHand</span>​(<span class="arguments">@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</span></div>
|
|
<div class="block">Changes the main hand <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the main hand <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getItemInOffHand()">getItemInOffHand</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getItemInOffHand</span>()</div>
|
|
<div class="block">Gets the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in off hand.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the item in off hand</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setItemInOffHand(net.minestom.server.item.ItemStack)">setItemInOffHand</a></h3>
|
|
<div class="memberSignature"><span class="returnType">void</span> <span class="memberName">setItemInOffHand</span>​(<span class="arguments">@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</span></div>
|
|
<div class="block">Changes the off hand <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the off hand <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getItemInHand(net.minestom.server.entity.Player.Hand)">getItemInHand</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="modifiers">default</span> <span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getItemInHand</span>​(<span class="arguments">@NotNull
|
|
<a href="../entity/Player.Hand.html" title="enum in net.minestom.server.entity">Player.Hand</a> hand)</span></div>
|
|
<div class="block">Gets the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in the specific hand.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>hand</code> - the Hand to get the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> from</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in <code>hand</code></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setItemInHand(net.minestom.server.entity.Player.Hand,net.minestom.server.item.ItemStack)">setItemInHand</a></h3>
|
|
<div class="memberSignature"><span class="modifiers">default</span> <span class="returnType">void</span> <span class="memberName">setItemInHand</span>​(<span class="arguments">@NotNull
|
|
<a href="../entity/Player.Hand.html" title="enum in net.minestom.server.entity">Player.Hand</a> hand,
|
|
@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> stack)</span></div>
|
|
<div class="block">Changes the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> in the specific hand.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>hand</code> - the hand to set the item to</dd>
|
|
<dd><code>stack</code> - the <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a> to set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getHelmet()">getHelmet</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getHelmet</span>()</div>
|
|
<div class="block">Gets the helmet.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the helmet</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setHelmet(net.minestom.server.item.ItemStack)">setHelmet</a></h3>
|
|
<div class="memberSignature"><span class="returnType">void</span> <span class="memberName">setHelmet</span>​(<span class="arguments">@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</span></div>
|
|
<div class="block">Changes the helmet.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the helmet</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getChestplate()">getChestplate</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getChestplate</span>()</div>
|
|
<div class="block">Gets the chestplate.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the chestplate</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setChestplate(net.minestom.server.item.ItemStack)">setChestplate</a></h3>
|
|
<div class="memberSignature"><span class="returnType">void</span> <span class="memberName">setChestplate</span>​(<span class="arguments">@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</span></div>
|
|
<div class="block">Changes the chestplate.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the chestplate</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getLeggings()">getLeggings</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getLeggings</span>()</div>
|
|
<div class="block">Gets the leggings.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the leggings</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setLeggings(net.minestom.server.item.ItemStack)">setLeggings</a></h3>
|
|
<div class="memberSignature"><span class="returnType">void</span> <span class="memberName">setLeggings</span>​(<span class="arguments">@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</span></div>
|
|
<div class="block">Changes the leggings.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the leggings</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getBoots()">getBoots</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getBoots</span>()</div>
|
|
<div class="block">Gets the boots.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the boots</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="setBoots(net.minestom.server.item.ItemStack)">setBoots</a></h3>
|
|
<div class="memberSignature"><span class="returnType">void</span> <span class="memberName">setBoots</span>​(<span class="arguments">@NotNull
|
|
<a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a> itemStack)</span></div>
|
|
<div class="block">Changes the boots.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the boots</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getEquipment(net.minestom.server.network.packet.server.play.EntityEquipmentPacket.Slot)">getEquipment</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@NotNull
|
|
</span><span class="modifiers">default</span> <span class="returnType"><a href="../item/ItemStack.html" title="class in net.minestom.server.item">ItemStack</a></span> <span class="memberName">getEquipment</span>​(<span class="arguments">@NotNull
|
|
<a href="../network/packet/server/play/EntityEquipmentPacket.Slot.html" title="enum in net.minestom.server.network.packet.server.play">EntityEquipmentPacket.Slot</a> slot)</span></div>
|
|
<div class="block">Gets the equipment in a specific slot.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>slot</code> - the equipment to get the item from</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the equipment <a href="../item/ItemStack.html" title="class in net.minestom.server.item"><code>ItemStack</code></a></dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="syncEquipments(net.minestom.server.network.player.PlayerConnection)">syncEquipments</a></h3>
|
|
<div class="memberSignature"><span class="modifiers">default</span> <span class="returnType">void</span> <span class="memberName">syncEquipments</span>​(<span class="arguments">@NotNull
|
|
<a href="../network/player/PlayerConnection.html" title="class in net.minestom.server.network.player">PlayerConnection</a> connection)</span></div>
|
|
<div class="block">Sends all the equipments to a <a href="../network/player/PlayerConnection.html" title="class in net.minestom.server.network.player"><code>PlayerConnection</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>connection</code> - the connection to send the equipments to</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="syncEquipments()">syncEquipments</a></h3>
|
|
<div class="memberSignature"><span class="modifiers">default</span> <span class="returnType">void</span> <span class="memberName">syncEquipments</span>()</div>
|
|
<div class="block">Sends all the equipments to all viewers.</div>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="syncEquipment(net.minestom.server.network.packet.server.play.EntityEquipmentPacket.Slot)">syncEquipment</a></h3>
|
|
<div class="memberSignature"><span class="modifiers">default</span> <span class="returnType">void</span> <span class="memberName">syncEquipment</span>​(<span class="arguments">@NotNull
|
|
<a href="../network/packet/server/play/EntityEquipmentPacket.Slot.html" title="enum in net.minestom.server.network.packet.server.play">EntityEquipmentPacket.Slot</a> slot)</span></div>
|
|
<div class="block">Sends a specific equipment to viewers.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>slot</code> - the slot of the equipment</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li class="blockList">
|
|
<section class="detail">
|
|
<h3><a id="getEquipmentsPacket()">getEquipmentsPacket</a></h3>
|
|
<div class="memberSignature"><span class="annotations">@Nullable
|
|
</span><span class="modifiers">default</span> <span class="returnType"><a href="../network/packet/server/play/EntityEquipmentPacket.html" title="class in net.minestom.server.network.packet.server.play">EntityEquipmentPacket</a></span> <span class="memberName">getEquipmentsPacket</span>()</div>
|
|
<div class="block">Gets the packet with all the equipments.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the packet with the equipments, null if all equipments are air</dd>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalStateException</code> - if 'this' is not an <a href="../entity/Entity.html" title="class in net.minestom.server.entity"><code>Entity</code></a></dd>
|
|
</dl>
|
|
</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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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>
|