Files
2026-03-13 21:21:55 +00:00

708 lines
31 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>ITelegraphHandler (CustomNPC-Plus 1.11.1 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../javadoc-theme.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.7.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="ITelegraphHandler (CustomNPC-Plus 1.11.1 API)";
}
}
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};
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-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div id="javadoc-header"> <a href="/CustomNPC-Plus/" class="header-brand"> <div class="header-title"> CustomNPC+ <span>Javadoc Reference</span> </div> </a> <a href="/CustomNPC-Plus/" class="header-back"> Back to Index </a> </div></div>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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">&nbsp;</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>&nbsp;<a href="package-summary.html">noppes.npcs.api.handler</a></div>
<h2 title="Interface ITelegraphHandler" class="title">Interface ITelegraphHandler</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public interface <span class="typeNameLabel">ITelegraphHandler</span></pre>
<div class="block">Handler for creating and managing telegraphs.
Access via API.getTelegraphs()
<p>
Example usage:
<pre>
// Create a telegraph
var telegraph = API.getTelegraphs().createCircle(5.0);
telegraph.setDuration(60); // 3 seconds
telegraph.setColor(0x80FF0000); // Semi-transparent red
// Spawn it
var instance = telegraph.spawn(world, x, y, z);
// Or save as a preset for reuse
API.getTelegraphs().save("myCircle", telegraph);
// Load preset later
var loaded = API.getTelegraphs().get("myCircle");
loaded.spawn(world, x, y, z);
</pre></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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</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><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#create(java.lang.String)">create</a></span>&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Create a telegraph by type name.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createCircle(float)">createCircle</a></span>&#8203;(float&nbsp;radius)</code></th>
<td class="colLast">
<div class="block">Create a circle telegraph.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createCone(float,float)">createCone</a></span>&#8203;(float&nbsp;length,
float&nbsp;angle)</code></th>
<td class="colLast">
<div class="block">Create a cone telegraph.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createLine(float,float)">createLine</a></span>&#8203;(float&nbsp;length,
float&nbsp;width)</code></th>
<td class="colLast">
<div class="block">Create a line telegraph.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createPoint()">createPoint</a></span>()</code></th>
<td class="colLast">
<div class="block">Create a point telegraph.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createRing(float,float)">createRing</a></span>&#8203;(float&nbsp;outerRadius,
float&nbsp;innerRadius)</code></th>
<td class="colLast">
<div class="block">Create a ring telegraph.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSquare(float)">createSquare</a></span>&#8203;(float&nbsp;radius)</code></th>
<td class="colLast">
<div class="block">Create a square telegraph.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#delete(java.lang.String)">delete</a></span>&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Delete a saved preset.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#get(java.lang.String)">get</a></span>&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Get a saved telegraph preset by name.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSavedNames()">getSavedNames</a></span>()</code></th>
<td class="colLast">
<div class="block">Get all saved preset names.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#has(java.lang.String)">has</a></span>&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Check if a preset exists.</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="#remove(java.lang.String)">remove</a></span>&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;instanceId)</code></th>
<td class="colLast">
<div class="block">Remove an active telegraph by instance ID.</div>
</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="#remove(noppes.npcs.api.ITelegraphInstance)">remove</a></span>&#8203;(<a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a>&nbsp;instance)</code></th>
<td class="colLast">
<div class="block">Remove an active telegraph instance.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#save(java.lang.String,noppes.npcs.api.ITelegraph)">save</a></span>&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name,
<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph)</code></th>
<td class="colLast">
<div class="block">Save a telegraph as a preset.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.entity.IEntity)">spawn</a></span>&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;entity)</code></th>
<td class="colLast">
<div class="block">Spawn a telegraph following an entity.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.entity.IEntity,float)">spawn</a></span>&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;entity,
float&nbsp;yaw)</code></th>
<td class="colLast">
<div class="block">Spawn a telegraph following an entity with rotation.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.IWorld,double,double,double)">spawn</a></span>&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a>&nbsp;world,
double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</code></th>
<td class="colLast">
<div class="block">Spawn a telegraph at a position.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.IWorld,double,double,double,float)">spawn</a></span>&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a>&nbsp;world,
double&nbsp;x,
double&nbsp;y,
double&nbsp;z,
float&nbsp;yaw)</code></th>
<td class="colLast">
<div class="block">Spawn a telegraph at a position with rotation.</div>
</td>
</tr>
</table>
</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="createCircle(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCircle</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;createCircle&#8203;(float&nbsp;radius)</pre>
<div class="block">Create a circle telegraph.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>radius</code> - The radius of the circle</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration</dd>
</dl>
</li>
</ul>
<a id="createRing(float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createRing</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;createRing&#8203;(float&nbsp;outerRadius,
float&nbsp;innerRadius)</pre>
<div class="block">Create a ring telegraph.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>outerRadius</code> - The outer radius</dd>
<dd><code>innerRadius</code> - The inner radius</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration</dd>
</dl>
</li>
</ul>
<a id="createLine(float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createLine</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;createLine&#8203;(float&nbsp;length,
float&nbsp;width)</pre>
<div class="block">Create a line telegraph.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - The length of the line</dd>
<dd><code>width</code> - The width of the line</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration</dd>
</dl>
</li>
</ul>
<a id="createCone(float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCone</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;createCone&#8203;(float&nbsp;length,
float&nbsp;angle)</pre>
<div class="block">Create a cone telegraph.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - The length of the cone</dd>
<dd><code>angle</code> - The angle of the cone in degrees</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration</dd>
</dl>
</li>
</ul>
<a id="createSquare(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSquare</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;createSquare&#8203;(float&nbsp;radius)</pre>
<div class="block">Create a square telegraph.
The square is axis-aligned by default and can be rotated with yaw when spawned.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>radius</code> - The half-size of the square (distance from center to edge)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration</dd>
</dl>
</li>
</ul>
<a id="createPoint()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createPoint</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;createPoint()</pre>
<div class="block">Create a point telegraph.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration</dd>
</dl>
</li>
</ul>
<a id="create(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;create&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;type)</pre>
<div class="block">Create a telegraph by type name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type name: "circle", "ring", "line", "cone", "square", "point" (case insensitive)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new telegraph configuration, or null if type is invalid</dd>
</dl>
</li>
</ul>
<a id="spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.IWorld,double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spawn</h4>
<pre class="methodSignature"><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a>&nbsp;spawn&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a>&nbsp;world,
double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</pre>
<div class="block">Spawn a telegraph at a position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>telegraph</code> - The telegraph configuration</dd>
<dd><code>world</code> - The world</dd>
<dd><code>x</code> - X position</dd>
<dd><code>y</code> - Y position</dd>
<dd><code>z</code> - Z position</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The spawned instance</dd>
</dl>
</li>
</ul>
<a id="spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.IWorld,double,double,double,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spawn</h4>
<pre class="methodSignature"><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a>&nbsp;spawn&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../IWorld.html" title="interface in noppes.npcs.api">IWorld</a>&nbsp;world,
double&nbsp;x,
double&nbsp;y,
double&nbsp;z,
float&nbsp;yaw)</pre>
<div class="block">Spawn a telegraph at a position with rotation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>telegraph</code> - The telegraph configuration</dd>
<dd><code>world</code> - The world</dd>
<dd><code>x</code> - X position</dd>
<dd><code>y</code> - Y position</dd>
<dd><code>z</code> - Z position</dd>
<dd><code>yaw</code> - Rotation yaw</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The spawned instance</dd>
</dl>
</li>
</ul>
<a id="spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.entity.IEntity)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spawn</h4>
<pre class="methodSignature"><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a>&nbsp;spawn&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;entity)</pre>
<div class="block">Spawn a telegraph following an entity.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>telegraph</code> - The telegraph configuration</dd>
<dd><code>entity</code> - The entity to follow</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The spawned instance</dd>
</dl>
</li>
</ul>
<a id="spawn(noppes.npcs.api.ITelegraph,noppes.npcs.api.entity.IEntity,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>spawn</h4>
<pre class="methodSignature"><a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a>&nbsp;spawn&#8203;(<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph,
<a href="../entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;entity,
float&nbsp;yaw)</pre>
<div class="block">Spawn a telegraph following an entity with rotation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>telegraph</code> - The telegraph configuration</dd>
<dd><code>entity</code> - The entity to follow</dd>
<dd><code>yaw</code> - Rotation yaw</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The spawned instance</dd>
</dl>
</li>
</ul>
<a id="get(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre class="methodSignature"><a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;get&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name)</pre>
<div class="block">Get a saved telegraph preset by name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The preset name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The telegraph configuration, or null if not found</dd>
</dl>
</li>
</ul>
<a id="save(java.lang.String,noppes.npcs.api.ITelegraph)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>save</h4>
<pre class="methodSignature">void&nbsp;save&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name,
<a href="../ITelegraph.html" title="interface in noppes.npcs.api">ITelegraph</a>&nbsp;telegraph)</pre>
<div class="block">Save a telegraph as a preset.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name for the preset</dd>
<dd><code>telegraph</code> - The telegraph configuration to save</dd>
</dl>
</li>
</ul>
<a id="delete(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delete</h4>
<pre class="methodSignature">void&nbsp;delete&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name)</pre>
<div class="block">Delete a saved preset.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The preset name</dd>
</dl>
</li>
</ul>
<a id="has(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>has</h4>
<pre class="methodSignature">boolean&nbsp;has&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;name)</pre>
<div class="block">Check if a preset exists.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The preset name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the preset exists</dd>
</dl>
</li>
</ul>
<a id="getSavedNames()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSavedNames</h4>
<pre class="methodSignature"><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>[]&nbsp;getSavedNames()</pre>
<div class="block">Get all saved preset names.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Array of preset names</dd>
</dl>
</li>
</ul>
<a id="remove(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remove</h4>
<pre class="methodSignature">void&nbsp;remove&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a>&nbsp;instanceId)</pre>
<div class="block">Remove an active telegraph by instance ID.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instanceId</code> - The instance ID to remove</dd>
</dl>
</li>
</ul>
<a id="remove(noppes.npcs.api.ITelegraphInstance)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>remove</h4>
<pre class="methodSignature">void&nbsp;remove&#8203;(<a href="../ITelegraphInstance.html" title="interface in noppes.npcs.api">ITelegraphInstance</a>&nbsp;instance)</pre>
<div class="block">Remove an active telegraph instance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - The instance to remove</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-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><script> (function() { // Fix uppercase text in table cells // Javadoc 11: method names are in th[scope="row"] a, not td a function fixCase() { document.querySelectorAll("th[scope='row'] a, td a, .memberNameLink a").forEach(function(el) { var t = el.textContent.trim(); if (t.length > 2 && t === t.toUpperCase() && t.indexOf(" ") === -1) { el.textContent = t.toLowerCase(); } }); } // Correct navPadding = topNav height + subNav height // Uses !important to override jQuery's inline style function fixPadding() { var topNav = document.querySelector(".topNav"); var subNav = document.querySelector(".subNav"); var pad = document.querySelector(".navPadding"); if (!pad) return; var h = (topNav ? topNav.offsetHeight : 0) + (subNav ? subNav.offsetHeight : 0); if (h > 0) { pad.style.setProperty("padding-top", h + "px", "important"); } } document.addEventListener("DOMContentLoaded", function() { fixCase(); // Run fixPadding after jQuery has had its chance setTimeout(fixPadding, 0); setTimeout(fixPadding, 50); setTimeout(fixPadding, 200); // Use MutationObserver to permanently override any further jQuery writes var pad = document.querySelector(".navPadding"); if (pad) { var observer = new MutationObserver(function() { fixPadding(); }); observer.observe(pad, { attributes: true, attributeFilter: ["style"] }); } }); })(); </script></div>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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>