mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
2292 lines
100 KiB
HTML
2292 lines
100 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (11.0.20) on Thu May 29 16:24:46 EDT 2025 -->
|
|
<title>IPlayer</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2025-05-29">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../jquery/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="../../../../jquery/jszip/dist/jszip.min.js"></script>
|
|
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
|
|
<!--[if IE]>
|
|
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript" src="../../../../jquery/jquery-3.6.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../../jquery/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="IPlayer";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6,"i59":6,"i60":6,"i61":6,"i62":6,"i63":6,"i64":6,"i65":6,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":6,"i72":6,"i73":6,"i74":6,"i75":6,"i76":6,"i77":6,"i78":6,"i79":6,"i80":6,"i81":6,"i82":6,"i83":6,"i84":6,"i85":6,"i86":6,"i87":6,"i88":6,"i89":6,"i90":6,"i91":6,"i92":6,"i93":6};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
var pathtoroot = "../../../../";
|
|
var useModuleDirectories = true;
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<div class="fixedNav">
|
|
<!-- ========= 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-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<ul class="navListSearch">
|
|
<li><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<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>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">noppes.npcs.api.entity</a></div>
|
|
<h2 title="Interface IPlayer" class="title">Interface IPlayer<T extends net.minecraft.entity.player.EntityPlayerMP></h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Superinterfaces:</dt>
|
|
<dd><code><a href="IAnimatable.html" title="interface in noppes.npcs.api.entity">IAnimatable</a></code>, <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><T></code>, <code><a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a><T></code></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>All Known Subinterfaces:</dt>
|
|
<dd><code><a href="IDBCPlayer.html" title="interface in noppes.npcs.api.entity">IDBCPlayer</a></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">IPlayer<T extends net.minecraft.entity.player.EntityPlayerMP></span>
|
|
extends <a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a><T>, <a href="IAnimatable.html" title="interface in noppes.npcs.api.entity">IAnimatable</a></pre>
|
|
<div class="block">Represents a player in the game with methods for managing dialogs, quests,
|
|
inventory, sound, and more.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<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>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addFactionPoints(int,int)">addFactionPoints</a></span>​(int faction,
|
|
int points)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#blocking()">blocking</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks if the player is currently blocking.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canHarvestBlock(noppes.npcs.api.IBlock)">canHarvestBlock</a></span>​(<a href="../IBlock.html" title="interface in noppes.npcs.api">IBlock</a> block)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks if the player can harvest the specified block.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearInventory()">clearInventory</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Clears the player's entire inventory, including main and armor slots.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearItemInUse()">clearItemInUse</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Clears the currently in-use item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#closeGui()">closeGui</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Closes the currently open GUI for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#closeOverlay(int)">closeOverlay</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Closes the custom overlay with the specified identifier.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#conqueredEnd()">conqueredEnd</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has conquered the End dimension.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#continueSounds()">continueSounds</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Resumes paused sounds for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#disableMouseInput(long,int...)">disableMouseInput</a></span>​(long time,
|
|
int... buttonIds)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Disables mouse input for the specified time and buttons for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dropOneItem(boolean)">dropOneItem</a></span>​(boolean dropStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Drops one item from the player's inventory.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#finishQuest(int)">finishQuest</a></span>​(int id)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#finishQuest(noppes.npcs.api.handler.data.IQuest)">finishQuest</a></span>​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Add the quest from finished quest list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a>[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getActiveQuests()">getActiveQuests</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns an array of quests that the player is actively undertaking.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code><a href="../handler/data/IAnimationData.html" title="interface in noppes.npcs.api.handler.data">IAnimationData</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAnimationData()">getAnimationData</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's animation data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code><a href="../handler/data/IPlayerAttributes.html" title="interface in noppes.npcs.api.handler.data">IPlayerAttributes</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAttributes()">getAttributes</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's item attribute combination</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code><a href="../gui/ICustomGui.html" title="interface in noppes.npcs.api.gui">ICustomGui</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCustomGui()">getCustomGui</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the custom GUI currently open for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="../handler/IPlayerData.html" title="interface in noppes.npcs.api.handler">IPlayerData</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getData()">getData</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's associated data (quest, faction, timers, etc.).</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code><a href="IDBCPlayer.html" title="interface in noppes.npcs.api.entity">IDBCPlayer</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDBCPlayer()">getDBCPlayer</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's DBC (database) data, if available.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDisplayName()">getDisplayName</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getExpLevel()">getExpLevel</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFactionPoints(int)">getFactionPoints</a></span>​(int faction)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code><a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a>[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFinishedQuests()">getFinishedQuests</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns an array of quests that the player has finished.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHunger()">getHunger</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code><a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a>[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInventory()">getInventory</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code><a href="../handler/data/IMagicData.html" title="interface in noppes.npcs.api.handler.data">IMagicData</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMagicData()">getMagicData</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's magic-related data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMode()">getMode</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getName()">getName</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code><a href="../IContainer.html" title="interface in noppes.npcs.api">IContainer</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOpenContainer()">getOpenContainer</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the container (GUI) that the player currently has open, if any.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code><a href="../handler/IOverlayHandler.html" title="interface in noppes.npcs.api.handler">IOverlayHandler</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOverlays()">getOverlays</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's overlay handler which manages custom overlays.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code><a href="../IPixelmonPlayerData.html" title="interface in noppes.npcs.api">IPixelmonPlayerData</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPixelmonData()">getPixelmonData</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Requires Pixelmon to be installed.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSaturation()">getSaturation</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code><a href="../IScreenSize.html" title="interface in noppes.npcs.api">IScreenSize</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScreenSize()">getScreenSize</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's screen size information.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code><a href="../ITimers.html" title="interface in noppes.npcs.api">ITimers</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTimers()">getTimers</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the player's timers.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getType()">getType</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the entity type identifier for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i35" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#giveItem(java.lang.String,int,int)">giveItem</a></span>​(java.lang.String id,
|
|
int damage,
|
|
int amount)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i36" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#giveItem(noppes.npcs.api.item.IItemStack,int)">giveItem</a></span>​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
int amount)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasAchievement(java.lang.String)">hasAchievement</a></span>​(java.lang.String achievement)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i38" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasActiveQuest(int)">hasActiveQuest</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has an active quest with the given ID.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i39" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasActiveQuest(noppes.npcs.api.handler.data.IQuest)">hasActiveQuest</a></span>​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has an active quest matching the specified quest.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i40" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasBukkitPermission(java.lang.String)">hasBukkitPermission</a></span>​(java.lang.String permission)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i41" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasFinishedQuest(int)">hasFinishedQuest</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has finished the quest with the given ID.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i42" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasFinishedQuest(noppes.npcs.api.handler.data.IQuest)">hasFinishedQuest</a></span>​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has finished the specified quest.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i43" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasReadDialog(int)">hasReadDialog</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has read the dialog with the specified ID.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i44" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasReadDialog(noppes.npcs.api.handler.data.IDialog)">hasReadDialog</a></span>​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the player has read the specified dialog.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i45" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#interactWith(noppes.npcs.api.entity.IEntity)">interactWith</a></span>​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Interacts with the specified entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i46" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#inventoryItemCount(noppes.npcs.api.item.IItemStack,boolean,boolean)">inventoryItemCount</a></span>​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
boolean ignoreNBT,
|
|
boolean ignoreDamage)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i47" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isScriptingDev()">isScriptingDev</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks if the player is flagged as a scripting developer.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i48" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#kick(java.lang.String)">kick</a></span>​(java.lang.String reason)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Kicks the player from the server with the specified reason.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i49" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mountEntity(net.minecraft.entity.Entity)">mountEntity</a></span>​(net.minecraft.entity.Entity ridingEntity)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Mounts the specified entity onto the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i50" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pauseSounds()">pauseSounds</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Pauses all sounds currently playing for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i51" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#playSound(int,noppes.npcs.api.handler.data.ISound)">playSound</a></span>​(int id,
|
|
<a href="../handler/data/ISound.html" title="interface in noppes.npcs.api.handler.data">ISound</a> sound)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Plays the specified sound with an identifier for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i52" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#playSound(java.lang.String,float,float)">playSound</a></span>​(java.lang.String name,
|
|
float volume,
|
|
float pitch)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Plays the specified sound at the given volume and pitch for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i53" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#playSound(noppes.npcs.api.handler.data.ISound)">playSound</a></span>​(<a href="../handler/data/ISound.html" title="interface in noppes.npcs.api.handler.data">ISound</a> sound)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Plays the specified sound for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i54" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readDialog(int)">readDialog</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Marks the dialog with the specified ID as read for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i55" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#readDialog(noppes.npcs.api.handler.data.IDialog)">readDialog</a></span>​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Marks the specified dialog as read for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i56" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeAllItems(noppes.npcs.api.item.IItemStack,boolean,boolean)">removeAllItems</a></span>​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
boolean ignoreNBT,
|
|
boolean ignoreDamage)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i57" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeItem(java.lang.String,int,int)">removeItem</a></span>​(java.lang.String id,
|
|
int damage,
|
|
int amount)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i58" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeItem(noppes.npcs.api.item.IItemStack,int,boolean,boolean)">removeItem</a></span>​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
int amount,
|
|
boolean ignoreNBT,
|
|
boolean ignoreDamage)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i59" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeQuest(int)">removeQuest</a></span>​(int id)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i60" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeQuest(noppes.npcs.api.handler.data.IQuest)">removeQuest</a></span>​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Removes the quest from active and finished quest list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i61" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resetSpawnpoint()">resetSpawnpoint</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Resets the player's spawnpoint to the default spawn.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i62" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sendMessage(java.lang.String)">sendMessage</a></span>​(java.lang.String message)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sends a chat message to the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i63" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setConqueredEnd(boolean)">setConqueredEnd</a></span>​(boolean conqueredEnd)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets whether the player has conquered the End dimension.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i64" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDimension(int)">setDimension</a></span>​(int dimension)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Changes the player's dimension by teleporting them to their current position in the specified dimension.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i65" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setExpLevel(int)">setExpLevel</a></span>​(int level)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i66" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFactionPoints(int,int)">setFactionPoints</a></span>​(int faction,
|
|
int points)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i67" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHunger(int)">setHunger</a></span>​(int hunger)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the player's hunger level.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i68" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMode(int)">setMode</a></span>​(int type)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i69" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(double,double,double)">setPosition</a></span>​(double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Teleports the player to the specified coordinates in the current dimension.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i70" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(double,double,double,int)">setPosition</a></span>​(double x,
|
|
double y,
|
|
double z,
|
|
int dimensionId)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Teleports the player to the specified coordinates in the given dimension.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i71" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(double,double,double,noppes.npcs.api.IWorld)">setPosition</a></span>​(double x,
|
|
double y,
|
|
double z,
|
|
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Teleports the player to the specified coordinates in the dimension of the provided world.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i72" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(noppes.npcs.api.IPos)">setPosition</a></span>​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Teleports the player to the coordinates specified by the given position.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i73" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(noppes.npcs.api.IPos,int)">setPosition</a></span>​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos,
|
|
int dimensionId)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Teleports the player to the position in the specified dimension.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i74" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(noppes.npcs.api.IPos,noppes.npcs.api.IWorld)">setPosition</a></span>​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos,
|
|
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Teleports the player to the position specified by the given position in the dimension of the provided world.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i75" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotation(float,float)">setRotation</a></span>​(float rotationYaw,
|
|
float rotationPitch)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the player's rotation.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i76" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSaturation(float)">setSaturation</a></span>​(float saturation)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the player's saturation level.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i77" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSpawnpoint(int,int,int)">setSpawnpoint</a></span>​(int x,
|
|
int y,
|
|
int z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Same as the /spawnpoint command.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i78" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSpawnpoint(noppes.npcs.api.IPos)">setSpawnpoint</a></span>​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the player's spawnpoint to the coordinates of the provided position.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i79" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#showCustomGui(noppes.npcs.api.gui.ICustomGui)">showCustomGui</a></span>​(<a href="../gui/ICustomGui.html" title="interface in noppes.npcs.api.gui">ICustomGui</a> gui)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Displays a custom GUI to the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i80" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#showCustomOverlay(noppes.npcs.api.overlay.ICustomOverlay)">showCustomOverlay</a></span>​(<a href="../overlay/ICustomOverlay.html" title="interface in noppes.npcs.api.overlay">ICustomOverlay</a> overlay)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Displays a custom overlay on the player's screen.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i81" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#showDialog(int)">showDialog</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Displays the dialog with the specified ID to the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i82" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#showDialog(noppes.npcs.api.handler.data.IDialog)">showDialog</a></span>​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Displays the specified dialog to the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i83" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#startQuest(int)">startQuest</a></span>​(int id)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i84" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#startQuest(noppes.npcs.api.handler.data.IQuest)">startQuest</a></span>​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Add the quest from active quest list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i85" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stopQuest(int)">stopQuest</a></span>​(int id)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i86" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stopQuest(noppes.npcs.api.handler.data.IQuest)">stopQuest</a></span>​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Removes the quest from active quest list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i87" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stopSound(int)">stopSound</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Stops the sound with the given identifier for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i88" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stopSounds()">stopSounds</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Stops all sounds currently playing for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i89" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stopUsingItem()">stopUsingItem</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Stops the player from using the currently active item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i90" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#typeOf(int)">typeOf</a></span>​(int type)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks if the player is of the specified entity type.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i91" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unreadDialog(int)">unreadDialog</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Marks the dialog with the specified ID as unread for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i92" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unreadDialog(noppes.npcs.api.handler.data.IDialog)">unreadDialog</a></span>​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Marks the specified dialog as unread for the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i93" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#updatePlayerInventory()">updatePlayerInventory</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates the player's inventory on the client side.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.entity.IEntity">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface noppes.npcs.api.entity.<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a></h3>
|
|
<code><a href="IEntity.html#capturesDrops()">capturesDrops</a>, <a href="IEntity.html#clearStoredData()">clearStoredData</a>, <a href="IEntity.html#clearTempData()">clearTempData</a>, <a href="IEntity.html#despawn()">despawn</a>, <a href="IEntity.html#dropItem(noppes.npcs.api.item.IItemStack)">dropItem</a>, <a href="IEntity.html#extinguish()">extinguish</a>, <a href="IEntity.html#getAge()">getAge</a>, <a href="IEntity.html#getAllNbt()">getAllNbt</a>, <a href="IEntity.html#getBlockX()">getBlockX</a>, <a href="IEntity.html#getBlockY()">getBlockY</a>, <a href="IEntity.html#getBlockZ()">getBlockZ</a>, <a href="IEntity.html#getCapturedDrops()">getCapturedDrops</a>, <a href="IEntity.html#getDimension()">getDimension</a>, <a href="IEntity.html#getEntityId()">getEntityId</a>, <a href="IEntity.html#getHeight()">getHeight</a>, <a href="IEntity.html#getMotion()">getMotion</a>, <a href="IEntity.html#getMotionX()">getMotionX</a>, <a href="IEntity.html#getMotionY()">getMotionY</a>, <a href="IEntity.html#getMotionZ()">getMotionZ</a>, <a href="IEntity.html#getMount()">getMount</a>, <a href="IEntity.html#getNbt()">getNbt</a>, <a href="IEntity.html#getNbtOptional()">getNbtOptional</a>, <a href="IEntity.html#getPitch()">getPitch</a>, <a href="IEntity.html#getPosition()">getPosition</a>, <a href="IEntity.html#getRider()">getRider</a>, <a href="IEntity.html#getRotation()">getRotation</a>, <a href="IEntity.html#getStoredData(java.lang.String)">getStoredData</a>, <a href="IEntity.html#getStoredDataKeys()">getStoredDataKeys</a>, <a href="IEntity.html#getSurroundingEntities(int)">getSurroundingEntities</a>, <a href="IEntity.html#getSurroundingEntities(int,int)">getSurroundingEntities</a>, <a href="IEntity.html#getTempData(java.lang.String)">getTempData</a>, <a href="IEntity.html#getTempDataKeys()">getTempDataKeys</a>, <a href="IEntity.html#getTypeName()">getTypeName</a>, <a href="IEntity.html#getUniqueID()">getUniqueID</a>, <a href="IEntity.html#getWidth()">getWidth</a>, <a href="IEntity.html#getWorld()">getWorld</a>, <a href="IEntity.html#getX()">getX</a>, <a href="IEntity.html#getY()">getY</a>, <a href="IEntity.html#getYOffset()">getYOffset</a>, <a href="IEntity.html#getZ()">getZ</a>, <a href="IEntity.html#hasCollided()">hasCollided</a>, <a href="IEntity.html#hasCollidedHorizontally()">hasCollidedHorizontally</a>, <a href="IEntity.html#hasCollidedVertically()">hasCollidedVertically</a>, <a href="IEntity.html#hasStoredData(java.lang.String)">hasStoredData</a>, <a href="IEntity.html#hasTempData(java.lang.String)">hasTempData</a>, <a href="IEntity.html#inFire()">inFire</a>, <a href="IEntity.html#inLava()">inLava</a>, <a href="IEntity.html#inWater()">inWater</a>, <a href="IEntity.html#isAirborne()">isAirborne</a>, <a href="IEntity.html#isAlive()">isAlive</a>, <a href="IEntity.html#isBurning()">isBurning</a>, <a href="IEntity.html#isSneaking()">isSneaking</a>, <a href="IEntity.html#isSprinting()">isSprinting</a>, <a href="IEntity.html#knockback(double,double,double,float)">knockback</a>, <a href="IEntity.html#knockback(int,float)">knockback</a>, <a href="IEntity.html#knockback(noppes.npcs.api.IPos,float)">knockback</a>, <a href="IEntity.html#removeStoredData(java.lang.String)">removeStoredData</a>, <a href="IEntity.html#removeTempData(java.lang.String)">removeTempData</a>, <a href="IEntity.html#setBurning(int)">setBurning</a>, <a href="IEntity.html#setCapturedDrops(noppes.npcs.api.entity.IEntity%5B%5D)">setCapturedDrops</a>, <a href="IEntity.html#setCapturesDrops(boolean)">setCapturesDrops</a>, <a href="IEntity.html#setImmune(int)">setImmune</a>, <a href="IEntity.html#setInvisible(boolean)">setInvisible</a>, <a href="IEntity.html#setMotion(double,double,double)">setMotion</a>, <a href="IEntity.html#setMotion(noppes.npcs.api.IPos)">setMotion</a>, <a href="IEntity.html#setMotionX(double)">setMotionX</a>, <a href="IEntity.html#setMotionY(double)">setMotionY</a>, <a href="IEntity.html#setMotionZ(double)">setMotionZ</a>, <a href="IEntity.html#setMount(noppes.npcs.api.entity.IEntity)">setMount</a>, <a href="IEntity.html#setNbt(noppes.npcs.api.INbt)">setNbt</a>, <a href="IEntity.html#setPitch(float)">setPitch</a>, <a href="IEntity.html#setRider(noppes.npcs.api.entity.IEntity)">setRider</a>, <a href="IEntity.html#setRotation(float)">setRotation</a>, <a href="IEntity.html#setSneaking(boolean)">setSneaking</a>, <a href="IEntity.html#setSprinting(boolean)">setSprinting</a>, <a href="IEntity.html#setStoredData(java.lang.String,java.lang.Object)">setStoredData</a>, <a href="IEntity.html#setTempData(java.lang.String,java.lang.Object)">setTempData</a>, <a href="IEntity.html#setX(double)">setX</a>, <a href="IEntity.html#setY(double)">setY</a>, <a href="IEntity.html#setZ(double)">setZ</a>, <a href="IEntity.html#spawnParticle(noppes.npcs.api.IParticle)">spawnParticle</a>, <a href="IEntity.html#storeAsClone(int,java.lang.String)">storeAsClone</a>, <a href="IEntity.html#updateEntity()">updateEntity</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.entity.IEntityLivingBase">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface noppes.npcs.api.entity.<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a></h3>
|
|
<code><a href="IEntityLivingBase.html#addPotionEffect(int,int,int,boolean)">addPotionEffect</a>, <a href="IEntityLivingBase.html#canBreatheUnderwater()">canBreatheUnderwater</a>, <a href="IEntityLivingBase.html#clearPotionEffects()">clearPotionEffects</a>, <a href="IEntityLivingBase.html#dismountEntity(noppes.npcs.api.entity.IEntity)">dismountEntity</a>, <a href="IEntityLivingBase.html#getAbsorptionAmount()">getAbsorptionAmount</a>, <a href="IEntityLivingBase.html#getAIMoveSpeed()">getAIMoveSpeed</a>, <a href="IEntityLivingBase.html#getArmor(int)">getArmor</a>, <a href="IEntityLivingBase.html#getArrowCountInEntity()">getArrowCountInEntity</a>, <a href="IEntityLivingBase.html#getAttackTarget()">getAttackTarget</a>, <a href="IEntityLivingBase.html#getAttackTargetTime()">getAttackTargetTime</a>, <a href="IEntityLivingBase.html#getFollowRange()">getFollowRange</a>, <a href="IEntityLivingBase.html#getHealth()">getHealth</a>, <a href="IEntityLivingBase.html#getHeldItem()">getHeldItem</a>, <a href="IEntityLivingBase.html#getKnockbackResistance()">getKnockbackResistance</a>, <a href="IEntityLivingBase.html#getLastAttacker()">getLastAttacker</a>, <a href="IEntityLivingBase.html#getLastAttackerTime()">getLastAttackerTime</a>, <a href="IEntityLivingBase.html#getLookingAtBlock(int)">getLookingAtBlock</a>, <a href="IEntityLivingBase.html#getLookingAtBlock(int,boolean,boolean,boolean)">getLookingAtBlock</a>, <a href="IEntityLivingBase.html#getLookingAtEntities(int,double,double)">getLookingAtEntities</a>, <a href="IEntityLivingBase.html#getLookingAtEntities(int,double,double,boolean,boolean,boolean)">getLookingAtEntities</a>, <a href="IEntityLivingBase.html#getLookingAtEntities(noppes.npcs.api.entity.IEntity%5B%5D,int,double,double,boolean,boolean,boolean)">getLookingAtEntities</a>, <a href="IEntityLivingBase.html#getLookingAtPos(int)">getLookingAtPos</a>, <a href="IEntityLivingBase.html#getLookingAtPos(int,boolean,boolean,boolean)">getLookingAtPos</a>, <a href="IEntityLivingBase.html#getLookVector()">getLookVector</a>, <a href="IEntityLivingBase.html#getMaxHealth()">getMaxHealth</a>, <a href="IEntityLivingBase.html#getMaxHurtTime()">getMaxHurtTime</a>, <a href="IEntityLivingBase.html#getMCEntity()">getMCEntity</a>, <a href="IEntityLivingBase.html#getMeleeStrength()">getMeleeStrength</a>, <a href="IEntityLivingBase.html#getPotionEffect(int)">getPotionEffect</a>, <a href="IEntityLivingBase.html#getSpeed()">getSpeed</a>, <a href="IEntityLivingBase.html#getTotalArmorValue()">getTotalArmorValue</a>, <a href="IEntityLivingBase.html#hurt(float)">hurt</a>, <a href="IEntityLivingBase.html#hurt(float,noppes.npcs.api.entity.IEntity)">hurt</a>, <a href="IEntityLivingBase.html#hurt(float,noppes.npcs.api.IDamageSource)">hurt</a>, <a href="IEntityLivingBase.html#isAttacking()">isAttacking</a>, <a href="IEntityLivingBase.html#isChild()">isChild</a>, <a href="IEntityLivingBase.html#isOnLadder()">isOnLadder</a>, <a href="IEntityLivingBase.html#renderBrokenItemStack(noppes.npcs.api.item.IItemStack)">renderBrokenItemStack</a>, <a href="IEntityLivingBase.html#setAbsorptionAmount(float)">setAbsorptionAmount</a>, <a href="IEntityLivingBase.html#setAIMoveSpeed(float)">setAIMoveSpeed</a>, <a href="IEntityLivingBase.html#setArmor(int,noppes.npcs.api.item.IItemStack)">setArmor</a>, <a href="IEntityLivingBase.html#setArrowCountInEntity(int)">setArrowCountInEntity</a>, <a href="IEntityLivingBase.html#setAttackTarget(noppes.npcs.api.entity.IEntityLivingBase)">setAttackTarget</a>, <a href="IEntityLivingBase.html#setFollowRange(double)">setFollowRange</a>, <a href="IEntityLivingBase.html#setHealth(float)">setHealth</a>, <a href="IEntityLivingBase.html#setHeldItem(noppes.npcs.api.item.IItemStack)">setHeldItem</a>, <a href="IEntityLivingBase.html#setKnockbackResistance(double)">setKnockbackResistance</a>, <a href="IEntityLivingBase.html#setLastAttacker(noppes.npcs.api.entity.IEntity)">setLastAttacker</a>, <a href="IEntityLivingBase.html#setMaxHealth(double)">setMaxHealth</a>, <a href="IEntityLivingBase.html#setMaxHurtTime(int)">setMaxHurtTime</a>, <a href="IEntityLivingBase.html#setMeleeStrength(double)">setMeleeStrength</a>, <a href="IEntityLivingBase.html#setSpeed(double)">setSpeed</a>, <a href="IEntityLivingBase.html#swingHand()">swingHand</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="getDisplayName()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDisplayName</h4>
|
|
<pre class="methodSignature">java.lang.String getDisplayName()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the displayed name of the player</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getName()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getName</h4>
|
|
<pre class="methodSignature">java.lang.String getName()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the player's name</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="kick(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>kick</h4>
|
|
<pre class="methodSignature">void kick​(java.lang.String reason)</pre>
|
|
<div class="block">Kicks the player from the server with the specified reason.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>reason</code> - The reason for kicking the player.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Teleports the player to the specified coordinates in the current dimension.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#setPosition(double,double,double)">setPosition</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - The x-coordinate.</dd>
|
|
<dd><code>y</code> - The y-coordinate.</dd>
|
|
<dd><code>z</code> - The z-coordinate.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
<div class="block">Teleports the player to the coordinates specified by the given position.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#setPosition(noppes.npcs.api.IPos)">setPosition</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The position object containing coordinates.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(double,double,double,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(double x,
|
|
double y,
|
|
double z,
|
|
int dimensionId)</pre>
|
|
<div class="block">Teleports the player to the specified coordinates in the given dimension.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - The x-coordinate.</dd>
|
|
<dd><code>y</code> - The y-coordinate.</dd>
|
|
<dd><code>z</code> - The z-coordinate.</dd>
|
|
<dd><code>dimensionId</code> - The dimension ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(noppes.npcs.api.IPos,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos,
|
|
int dimensionId)</pre>
|
|
<div class="block">Teleports the player to the position in the specified dimension.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The position object containing coordinates.</dd>
|
|
<dd><code>dimensionId</code> - The dimension ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(double,double,double,noppes.npcs.api.IWorld)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(double x,
|
|
double y,
|
|
double z,
|
|
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</pre>
|
|
<div class="block">Teleports the player to the specified coordinates in the dimension of the provided world.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - The x-coordinate.</dd>
|
|
<dd><code>y</code> - The y-coordinate.</dd>
|
|
<dd><code>z</code> - The z-coordinate.</dd>
|
|
<dd><code>world</code> - The world whose dimension will be used.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(noppes.npcs.api.IPos,noppes.npcs.api.IWorld)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos,
|
|
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</pre>
|
|
<div class="block">Teleports the player to the position specified by the given position in the dimension of the provided world.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The position object containing coordinates.</dd>
|
|
<dd><code>world</code> - The world whose dimension will be used.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setDimension(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDimension</h4>
|
|
<pre class="methodSignature">void setDimension​(int dimension)</pre>
|
|
<div class="block">Changes the player's dimension by teleporting them to their current position in the specified dimension.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#setDimension(int)">setDimension</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dimension</code> - The dimension ID to move the player to.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getHunger()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHunger</h4>
|
|
<pre class="methodSignature">int getHunger()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the player's current hunger level.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setHunger(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHunger</h4>
|
|
<pre class="methodSignature">void setHunger​(int hunger)</pre>
|
|
<div class="block">Sets the player's hunger level.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>hunger</code> - The new hunger level.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getSaturation()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSaturation</h4>
|
|
<pre class="methodSignature">float getSaturation()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the player's current saturation level.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setSaturation(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSaturation</h4>
|
|
<pre class="methodSignature">void setSaturation​(float saturation)</pre>
|
|
<div class="block">Sets the player's saturation level.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>saturation</code> - The new saturation level.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="showDialog(noppes.npcs.api.handler.data.IDialog)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>showDialog</h4>
|
|
<pre class="methodSignature">void showDialog​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</pre>
|
|
<div class="block">Displays the specified dialog to the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dialog</code> - The dialog to display.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasReadDialog(noppes.npcs.api.handler.data.IDialog)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasReadDialog</h4>
|
|
<pre class="methodSignature">boolean hasReadDialog​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</pre>
|
|
<div class="block">Checks whether the player has read the specified dialog.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dialog</code> - The dialog to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the dialog has been read, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="readDialog(noppes.npcs.api.handler.data.IDialog)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readDialog</h4>
|
|
<pre class="methodSignature">void readDialog​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</pre>
|
|
<div class="block">Marks the specified dialog as read for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dialog</code> - The dialog to mark as read.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="unreadDialog(noppes.npcs.api.handler.data.IDialog)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unreadDialog</h4>
|
|
<pre class="methodSignature">void unreadDialog​(<a href="../handler/data/IDialog.html" title="interface in noppes.npcs.api.handler.data">IDialog</a> dialog)</pre>
|
|
<div class="block">Marks the specified dialog as unread for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dialog</code> - The dialog to mark as unread.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="showDialog(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>showDialog</h4>
|
|
<pre class="methodSignature">void showDialog​(int id)</pre>
|
|
<div class="block">Displays the dialog with the specified ID to the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The dialog ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasReadDialog(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasReadDialog</h4>
|
|
<pre class="methodSignature">boolean hasReadDialog​(int id)</pre>
|
|
<div class="block">Checks whether the player has read the dialog with the specified ID.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The dialog ID.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the dialog has been read, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="readDialog(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>readDialog</h4>
|
|
<pre class="methodSignature">void readDialog​(int id)</pre>
|
|
<div class="block">Marks the dialog with the specified ID as read for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The dialog ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="unreadDialog(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>unreadDialog</h4>
|
|
<pre class="methodSignature">void unreadDialog​(int id)</pre>
|
|
<div class="block">Marks the dialog with the specified ID as unread for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The dialog ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasFinishedQuest(noppes.npcs.api.handler.data.IQuest)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasFinishedQuest</h4>
|
|
<pre class="methodSignature">boolean hasFinishedQuest​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</pre>
|
|
<div class="block">Checks whether the player has finished the specified quest.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quest</code> - The quest to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the quest has been finished, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasActiveQuest(noppes.npcs.api.handler.data.IQuest)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasActiveQuest</h4>
|
|
<pre class="methodSignature">boolean hasActiveQuest​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</pre>
|
|
<div class="block">Checks whether the player has an active quest matching the specified quest.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quest</code> - The quest to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the quest is active, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="startQuest(noppes.npcs.api.handler.data.IQuest)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>startQuest</h4>
|
|
<pre class="methodSignature">void startQuest​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</pre>
|
|
<div class="block">Add the quest from active quest list.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quest</code> - The quest.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="finishQuest(noppes.npcs.api.handler.data.IQuest)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>finishQuest</h4>
|
|
<pre class="methodSignature">void finishQuest​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</pre>
|
|
<div class="block">Add the quest from finished quest list.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quest</code> - The quest.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="stopQuest(noppes.npcs.api.handler.data.IQuest)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stopQuest</h4>
|
|
<pre class="methodSignature">void stopQuest​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</pre>
|
|
<div class="block">Removes the quest from active quest list.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quest</code> - The quest.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="removeQuest(noppes.npcs.api.handler.data.IQuest)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeQuest</h4>
|
|
<pre class="methodSignature">void removeQuest​(<a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a> quest)</pre>
|
|
<div class="block">Removes the quest from active and finished quest list.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>quest</code> - The quest.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasFinishedQuest(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasFinishedQuest</h4>
|
|
<pre class="methodSignature">boolean hasFinishedQuest​(int id)</pre>
|
|
<div class="block">Checks whether the player has finished the quest with the given ID.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The quest ID.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the quest has been finished, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasActiveQuest(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasActiveQuest</h4>
|
|
<pre class="methodSignature">boolean hasActiveQuest​(int id)</pre>
|
|
<div class="block">Checks whether the player has an active quest with the given ID.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The quest ID.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the quest is active, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="startQuest(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>startQuest</h4>
|
|
<pre class="methodSignature">void startQuest​(int id)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The quest ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="finishQuest(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>finishQuest</h4>
|
|
<pre class="methodSignature">void finishQuest​(int id)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The quest ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="stopQuest(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stopQuest</h4>
|
|
<pre class="methodSignature">void stopQuest​(int id)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The quest ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="removeQuest(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeQuest</h4>
|
|
<pre class="methodSignature">void removeQuest​(int id)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The quest ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getFinishedQuests()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFinishedQuests</h4>
|
|
<pre class="methodSignature"><a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a>[] getFinishedQuests()</pre>
|
|
<div class="block">Returns an array of quests that the player has finished.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>An array of finished quests.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getType()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getType</h4>
|
|
<pre class="methodSignature">int getType()</pre>
|
|
<div class="block">Returns the entity type identifier for the player.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#getType()">getType</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntityLivingBase.html#getType()">getType</a></code> in interface <code><a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The type as an integer.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="typeOf(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>typeOf</h4>
|
|
<pre class="methodSignature">boolean typeOf​(int type)</pre>
|
|
<div class="block">Checks if the player is of the specified entity type.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#typeOf(int)">typeOf</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntityLivingBase.html#typeOf(int)">typeOf</a></code> in interface <code><a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>type</code> - The entity type to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the player is of the specified type, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="addFactionPoints(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addFactionPoints</h4>
|
|
<pre class="methodSignature">void addFactionPoints​(int faction,
|
|
int points)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>faction</code> - The faction id.</dd>
|
|
<dd><code>points</code> - The points to increase. Use negative values to decrease.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setFactionPoints(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFactionPoints</h4>
|
|
<pre class="methodSignature">void setFactionPoints​(int faction,
|
|
int points)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>faction</code> - The faction id.</dd>
|
|
<dd><code>points</code> - The new point value for this faction.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getFactionPoints(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFactionPoints</h4>
|
|
<pre class="methodSignature">int getFactionPoints​(int faction)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>faction</code> - The faction id.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The current point total for the faction.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="sendMessage(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>sendMessage</h4>
|
|
<pre class="methodSignature">void sendMessage​(java.lang.String message)</pre>
|
|
<div class="block">Sends a chat message to the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>message</code> - The message you want to send. Compatible with formatting codes.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="https://static.wikia.nocookie.net/minecraft_gamepedia/images/7/7e/Minecraft_Formatting.gif/revision/latest/scale-to-width-down/200?cb=20200828001454">Minecraft formatting codes</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMode()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMode</h4>
|
|
<pre class="methodSignature">int getMode()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns gamemode. 0: Survival, 1: Creative, 2: Adventure.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setMode(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMode</h4>
|
|
<pre class="methodSignature">void setMode​(int type)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>type</code> - The gamemode type. 0:SURVIVAL, 1:CREATIVE, 2:ADVENTURE.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getInventory()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getInventory</h4>
|
|
<pre class="methodSignature"><a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a>[] getInventory()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns an IItemStack array of size 36 representing the player's inventory.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10d</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="inventoryItemCount(noppes.npcs.api.item.IItemStack,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>inventoryItemCount</h4>
|
|
<pre class="methodSignature">int inventoryItemCount​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
boolean ignoreNBT,
|
|
boolean ignoreDamage)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>item</code> - The item to be checked.</dd>
|
|
<dd><code>ignoreNBT</code> - Whether the item's NBT tags will be checked for equality.</dd>
|
|
<dd><code>ignoreDamage</code> - Whether the item's damage will be checked for equality.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The total count of the specified item in the player's inventory.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="removeItem(java.lang.String,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeItem</h4>
|
|
<pre class="methodSignature">boolean removeItem​(java.lang.String id,
|
|
int damage,
|
|
int amount)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The item's name.</dd>
|
|
<dd><code>damage</code> - The damage value.</dd>
|
|
<dd><code>amount</code> - How many items will be removed.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the items were removed successfully, false if the amount exceeds what the player has or the item doesn't exist.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10c</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="removeItem(noppes.npcs.api.item.IItemStack,int,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeItem</h4>
|
|
<pre class="methodSignature">boolean removeItem​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
int amount,
|
|
boolean ignoreNBT,
|
|
boolean ignoreDamage)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>item</code> - The item type to be removed.</dd>
|
|
<dd><code>amount</code> - The number of items to remove.</dd>
|
|
<dd><code>ignoreNBT</code> - Whether the item's NBT tags will be checked for equality.</dd>
|
|
<dd><code>ignoreDamage</code> - Whether the item's damage will be checked for equality.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the items were removed successfully, false if the removal amount exceeds the player's count.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="removeAllItems(noppes.npcs.api.item.IItemStack,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeAllItems</h4>
|
|
<pre class="methodSignature">int removeAllItems​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
boolean ignoreNBT,
|
|
boolean ignoreDamage)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>item</code> - The item to be removed from the player's inventory.</dd>
|
|
<dd><code>ignoreNBT</code> - Whether the item's NBT tags will be checked for equality.</dd>
|
|
<dd><code>ignoreDamage</code> - Whether the item's damage will be checked for equality.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The number of item stacks that were removed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="giveItem(noppes.npcs.api.item.IItemStack,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>giveItem</h4>
|
|
<pre class="methodSignature">boolean giveItem​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item,
|
|
int amount)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>item</code> - The item to be added.</dd>
|
|
<dd><code>amount</code> - The number of items to add.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the item was given successfully, false otherwise.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10c</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="giveItem(java.lang.String,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>giveItem</h4>
|
|
<pre class="methodSignature">boolean giveItem​(java.lang.String id,
|
|
int damage,
|
|
int amount)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The item's name.</dd>
|
|
<dd><code>damage</code> - The damage value.</dd>
|
|
<dd><code>amount</code> - The number of items to add.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the item was given successfully, false otherwise.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10c</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setSpawnpoint(int,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSpawnpoint</h4>
|
|
<pre class="methodSignature">void setSpawnpoint​(int x,
|
|
int y,
|
|
int z)</pre>
|
|
<div class="block">Same as the /spawnpoint command.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - The x-coordinate.</dd>
|
|
<dd><code>y</code> - The y-coordinate.</dd>
|
|
<dd><code>z</code> - The z-coordinate.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setSpawnpoint(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSpawnpoint</h4>
|
|
<pre class="methodSignature">void setSpawnpoint​(<a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
<div class="block">Sets the player's spawnpoint to the coordinates of the provided position.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pos</code> - The position containing the spawn coordinates.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="resetSpawnpoint()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>resetSpawnpoint</h4>
|
|
<pre class="methodSignature">void resetSpawnpoint()</pre>
|
|
<div class="block">Resets the player's spawnpoint to the default spawn.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="setRotation(float,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotation</h4>
|
|
<pre class="methodSignature">void setRotation​(float rotationYaw,
|
|
float rotationPitch)</pre>
|
|
<div class="block">Sets the player's rotation.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#setRotation(float,float)">setRotation</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IPlayer.html" title="type parameter in IPlayer">T</a> extends net.minecraft.entity.player.EntityPlayerMP></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotationYaw</code> - The horizontal rotation (yaw).</dd>
|
|
<dd><code>rotationPitch</code> - The vertical rotation (pitch).</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="disableMouseInput(long,int...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>disableMouseInput</h4>
|
|
<pre class="methodSignature">void disableMouseInput​(long time,
|
|
int... buttonIds)</pre>
|
|
<div class="block">Disables mouse input for the specified time and buttons for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>time</code> - The duration for which mouse input is disabled.</dd>
|
|
<dd><code>buttonIds</code> - The IDs of the mouse buttons to disable.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="stopUsingItem()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stopUsingItem</h4>
|
|
<pre class="methodSignature">void stopUsingItem()</pre>
|
|
<div class="block">Stops the player from using the currently active item.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="clearItemInUse()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clearItemInUse</h4>
|
|
<pre class="methodSignature">void clearItemInUse()</pre>
|
|
<div class="block">Clears the currently in-use item.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="clearInventory()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clearInventory</h4>
|
|
<pre class="methodSignature">void clearInventory()</pre>
|
|
<div class="block">Clears the player's entire inventory, including main and armor slots.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="playSound(java.lang.String,float,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>playSound</h4>
|
|
<pre class="methodSignature">void playSound​(java.lang.String name,
|
|
float volume,
|
|
float pitch)</pre>
|
|
<div class="block">Plays the specified sound at the given volume and pitch for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - The sound name.</dd>
|
|
<dd><code>volume</code> - The volume level.</dd>
|
|
<dd><code>pitch</code> - The pitch level.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="playSound(int,noppes.npcs.api.handler.data.ISound)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>playSound</h4>
|
|
<pre class="methodSignature">void playSound​(int id,
|
|
<a href="../handler/data/ISound.html" title="interface in noppes.npcs.api.handler.data">ISound</a> sound)</pre>
|
|
<div class="block">Plays the specified sound with an identifier for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The sound identifier.</dd>
|
|
<dd><code>sound</code> - The sound to play.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="playSound(noppes.npcs.api.handler.data.ISound)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>playSound</h4>
|
|
<pre class="methodSignature">void playSound​(<a href="../handler/data/ISound.html" title="interface in noppes.npcs.api.handler.data">ISound</a> sound)</pre>
|
|
<div class="block">Plays the specified sound for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>sound</code> - The sound to play.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="stopSound(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stopSound</h4>
|
|
<pre class="methodSignature">void stopSound​(int id)</pre>
|
|
<div class="block">Stops the sound with the given identifier for the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The sound identifier.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="pauseSounds()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>pauseSounds</h4>
|
|
<pre class="methodSignature">void pauseSounds()</pre>
|
|
<div class="block">Pauses all sounds currently playing for the player.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="continueSounds()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>continueSounds</h4>
|
|
<pre class="methodSignature">void continueSounds()</pre>
|
|
<div class="block">Resumes paused sounds for the player.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="stopSounds()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>stopSounds</h4>
|
|
<pre class="methodSignature">void stopSounds()</pre>
|
|
<div class="block">Stops all sounds currently playing for the player.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="mountEntity(net.minecraft.entity.Entity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mountEntity</h4>
|
|
<pre class="methodSignature">void mountEntity​(net.minecraft.entity.Entity ridingEntity)</pre>
|
|
<div class="block">Mounts the specified entity onto the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>ridingEntity</code> - The entity to mount.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="dropOneItem(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>dropOneItem</h4>
|
|
<pre class="methodSignature"><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> dropOneItem​(boolean dropStack)</pre>
|
|
<div class="block">Drops one item from the player's inventory.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dropStack</code> - If true, drops the entire stack; otherwise, drops a single item.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The dropped item as an IEntity.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="canHarvestBlock(noppes.npcs.api.IBlock)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>canHarvestBlock</h4>
|
|
<pre class="methodSignature">boolean canHarvestBlock​(<a href="../IBlock.html" title="interface in noppes.npcs.api">IBlock</a> block)</pre>
|
|
<div class="block">Checks if the player can harvest the specified block.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>block</code> - The block to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the player can harvest the block, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="interactWith(noppes.npcs.api.entity.IEntity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>interactWith</h4>
|
|
<pre class="methodSignature">boolean interactWith​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</pre>
|
|
<div class="block">Interacts with the specified entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>entity</code> - The entity to interact with.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the interaction was successful, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasAchievement(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasAchievement</h4>
|
|
<pre class="methodSignature">boolean hasAchievement​(java.lang.String achievement)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>achievement</code> - The achievement id. For a complete list see http://minecraft.wiki/w/Achievements</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns whether or not the player has this achievement.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasBukkitPermission(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasBukkitPermission</h4>
|
|
<pre class="methodSignature">boolean hasBukkitPermission​(java.lang.String permission)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>permission</code> - Bukkit/Cauldron permission.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns whether or not the player has the specified permission.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getExpLevel()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getExpLevel</h4>
|
|
<pre class="methodSignature">int getExpLevel()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the player's experience level.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10c</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setExpLevel(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setExpLevel</h4>
|
|
<pre class="methodSignature">void setExpLevel​(int level)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>level</code> - The new experience level to set.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10c</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getPixelmonData()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPixelmonData</h4>
|
|
<pre class="methodSignature"><a href="../IPixelmonPlayerData.html" title="interface in noppes.npcs.api">IPixelmonPlayerData</a> getPixelmonData()</pre>
|
|
<div class="block">Requires Pixelmon to be installed.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Returns the player's Pixelmon data, or null if Pixelmon is not enabled.</dd>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>1.7.10d</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getTimers()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTimers</h4>
|
|
<pre class="methodSignature"><a href="../ITimers.html" title="interface in noppes.npcs.api">ITimers</a> getTimers()</pre>
|
|
<div class="block">Returns the player's timers.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The timers associated with the player.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="updatePlayerInventory()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updatePlayerInventory</h4>
|
|
<pre class="methodSignature">void updatePlayerInventory()</pre>
|
|
<div class="block">Updates the player's inventory on the client side.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getDBCPlayer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDBCPlayer</h4>
|
|
<pre class="methodSignature"><a href="IDBCPlayer.html" title="interface in noppes.npcs.api.entity">IDBCPlayer</a> getDBCPlayer()</pre>
|
|
<div class="block">Returns the player's DBC (database) data, if available.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The DBC data, or null if not applicable.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="blocking()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>blocking</h4>
|
|
<pre class="methodSignature">boolean blocking()</pre>
|
|
<div class="block">Checks if the player is currently blocking.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if blocking, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getData()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getData</h4>
|
|
<pre class="methodSignature"><a href="../handler/IPlayerData.html" title="interface in noppes.npcs.api.handler">IPlayerData</a> getData()</pre>
|
|
<div class="block">Returns the player's associated data (quest, faction, timers, etc.).</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The player's data.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isScriptingDev()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isScriptingDev</h4>
|
|
<pre class="methodSignature">boolean isScriptingDev()</pre>
|
|
<div class="block">Checks if the player is flagged as a scripting developer.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the player is a scripting developer, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getActiveQuests()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getActiveQuests</h4>
|
|
<pre class="methodSignature"><a href="../handler/data/IQuest.html" title="interface in noppes.npcs.api.handler.data">IQuest</a>[] getActiveQuests()</pre>
|
|
<div class="block">Returns an array of quests that the player is actively undertaking.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>An array of active quests.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOpenContainer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOpenContainer</h4>
|
|
<pre class="methodSignature"><a href="../IContainer.html" title="interface in noppes.npcs.api">IContainer</a> getOpenContainer()</pre>
|
|
<div class="block">Returns the container (GUI) that the player currently has open, if any.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The open container, or null if none is open.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="showCustomGui(noppes.npcs.api.gui.ICustomGui)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>showCustomGui</h4>
|
|
<pre class="methodSignature">void showCustomGui​(<a href="../gui/ICustomGui.html" title="interface in noppes.npcs.api.gui">ICustomGui</a> gui)</pre>
|
|
<div class="block">Displays a custom GUI to the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>gui</code> - The custom GUI to show.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getCustomGui()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCustomGui</h4>
|
|
<pre class="methodSignature"><a href="../gui/ICustomGui.html" title="interface in noppes.npcs.api.gui">ICustomGui</a> getCustomGui()</pre>
|
|
<div class="block">Returns the custom GUI currently open for the player.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The custom GUI, or null if none is open.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="closeGui()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>closeGui</h4>
|
|
<pre class="methodSignature">void closeGui()</pre>
|
|
<div class="block">Closes the currently open GUI for the player.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="showCustomOverlay(noppes.npcs.api.overlay.ICustomOverlay)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>showCustomOverlay</h4>
|
|
<pre class="methodSignature">void showCustomOverlay​(<a href="../overlay/ICustomOverlay.html" title="interface in noppes.npcs.api.overlay">ICustomOverlay</a> overlay)</pre>
|
|
<div class="block">Displays a custom overlay on the player's screen.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>overlay</code> - The custom overlay to display.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="closeOverlay(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>closeOverlay</h4>
|
|
<pre class="methodSignature">void closeOverlay​(int id)</pre>
|
|
<div class="block">Closes the custom overlay with the specified identifier.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - The overlay ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOverlays()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOverlays</h4>
|
|
<pre class="methodSignature"><a href="../handler/IOverlayHandler.html" title="interface in noppes.npcs.api.handler">IOverlayHandler</a> getOverlays()</pre>
|
|
<div class="block">Returns the player's overlay handler which manages custom overlays.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The overlay handler.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAnimationData()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimationData</h4>
|
|
<pre class="methodSignature"><a href="../handler/data/IAnimationData.html" title="interface in noppes.npcs.api.handler.data">IAnimationData</a> getAnimationData()</pre>
|
|
<div class="block">Returns the player's animation data.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IAnimatable.html#getAnimationData()">getAnimationData</a></code> in interface <code><a href="IAnimatable.html" title="interface in noppes.npcs.api.entity">IAnimatable</a></code></dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The animation data.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setConqueredEnd(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setConqueredEnd</h4>
|
|
<pre class="methodSignature">void setConqueredEnd​(boolean conqueredEnd)</pre>
|
|
<div class="block">Sets whether the player has conquered the End dimension.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>conqueredEnd</code> - True if the End is conquered, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="conqueredEnd()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>conqueredEnd</h4>
|
|
<pre class="methodSignature">boolean conqueredEnd()</pre>
|
|
<div class="block">Checks whether the player has conquered the End dimension.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>True if the End has been conquered, false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getScreenSize()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScreenSize</h4>
|
|
<pre class="methodSignature"><a href="../IScreenSize.html" title="interface in noppes.npcs.api">IScreenSize</a> getScreenSize()</pre>
|
|
<div class="block">Returns the player's screen size information.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The screen size.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMagicData()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMagicData</h4>
|
|
<pre class="methodSignature"><a href="../handler/data/IMagicData.html" title="interface in noppes.npcs.api.handler.data">IMagicData</a> getMagicData()</pre>
|
|
<div class="block">Returns the player's magic-related data.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The magic data.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAttributes()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getAttributes</h4>
|
|
<pre class="methodSignature"><a href="../handler/data/IPlayerAttributes.html" title="interface in noppes.npcs.api.handler.data">IPlayerAttributes</a> getAttributes()</pre>
|
|
<div class="block">Returns the player's item attribute combination</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>Player Attributes Data</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<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-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<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>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|