2024-03-20 02:28:51 -04:00
<!DOCTYPE HTML>
<!-- NewPage -->
< html lang = "en" >
< head >
2025-05-29 16:27:42 -04:00
<!-- Generated by javadoc (11.0.20) on Thu May 29 16:24:46 EDT 2025 -->
2024-03-20 02:28:51 -04:00
< title > ICustomGui</ title >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
2025-05-29 16:27:42 -04:00
< meta name = "dc.created" content = "2025-05-29" >
2024-03-20 02:28:51 -04:00
< 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 = "ICustomGui" ;
}
}
catch ( err ) {
}
//-->
var data = { "i0" : 6 , "i1" : 6 , "i2" : 38 , "i3" : 6 , "i4" : 6 , "i5" : 38 , "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 };
var tabs = { 65535 : [ "t0" , "All Methods" ], 2 : [ "t2" , "Instance Methods" ], 4 : [ "t3" , "Abstract Methods" ], 32 : [ "t6" , "Deprecated 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.gui</ a ></ div >
< h2 title = "Interface ICustomGui" class = "title" > Interface ICustomGui</ h2 >
</ div >
< div class = "contentContainer" >
< div class = "description" >
< ul class = "blockList" >
< li class = "blockList" >
< hr >
< pre > public interface < span class = "typeNameLabel" > ICustomGui</ span ></ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Represents a custom graphical user interface (GUI) that can contain various components
such as buttons, labels, text fields, item slots, etc.</ div >
2024-03-20 02:28:51 -04:00
</ 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 >< span id = "t6" class = "tableTab" >< span >< a href = "javascript:show(32);" > Deprecated 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 >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addButton(int,java.lang.String,int,int)" > addButton</ a ></ span > ​ (int id,
java.lang.String text,
int x,
int y)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a button to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i1" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addButton(int,java.lang.String,int,int,int,int)" > addButton</ a ></ span > ​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a button to the GUI with a specified size.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i2" class = "altColor" >
< td class = "colFirst" >< code >< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addItemSlot(int,int)" > addItemSlot</ a ></ span > ​ (int x,
int y)</ code ></ th >
< td class = "colLast" >
2025-05-29 16:27:42 -04:00
< div class = "block" >< span class = "deprecatedLabel" > Deprecated.</ span >
< div class = "deprecationComment" > Use addItemSlot(int, int, IItemStack) with an ID instead.</ div >
</ div >
2024-03-20 02:28:51 -04:00
</ td >
</ tr >
< tr id = "i3" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addItemSlot(int,int,int)" > addItemSlot</ a ></ span > ​ (int id,
int x,
int y)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds an item slot component to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i4" class = "altColor" >
< td class = "colFirst" >< code >< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addItemSlot(int,int,int,noppes.npcs.api.item.IItemStack)" > addItemSlot</ a ></ span > ​ (int id,
int x,
int y,
< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > itemStack)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds an item slot component with an initial item stack.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i5" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addItemSlot(int,int,noppes.npcs.api.item.IItemStack)" > addItemSlot</ a ></ span > ​ (int x,
int y,
< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > itemStack)</ code ></ th >
< td class = "colLast" >
2025-05-29 16:27:42 -04:00
< div class = "block" >< span class = "deprecatedLabel" > Deprecated.</ span >
< div class = "deprecationComment" > Use addItemSlot(int, int, IItemStack) with an ID instead.</ div >
</ div >
2024-03-20 02:28:51 -04:00
</ td >
</ tr >
< tr id = "i6" class = "altColor" >
< td class = "colFirst" >< code >< a href = "ILabel.html" title = "interface in noppes.npcs.api.gui" > ILabel</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addLabel(int,java.lang.String,int,int,int,int)" > addLabel</ a ></ span > ​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a label component to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i7" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "ILabel.html" title = "interface in noppes.npcs.api.gui" > ILabel</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addLabel(int,java.lang.String,int,int,int,int,int)" > addLabel</ a ></ span > ​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height,
int color)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a label component with a specified text color.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i8" class = "altColor" >
< td class = "colFirst" >< code >< a href = "ILine.html" title = "interface in noppes.npcs.api.gui" > ILine</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addLine(int,int,int,int,int)" > addLine</ a ></ span > ​ (int id,
int x1,
int y1,
int x2,
int y2)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a line component with default thickness.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i9" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "ILine.html" title = "interface in noppes.npcs.api.gui" > ILine</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addLine(int,int,int,int,int,int,int)" > addLine</ a ></ span > ​ (int id,
int x1,
int y1,
int x2,
int y2,
int color,
int thickness)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a line component to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i10" class = "altColor" >
< td class = "colFirst" >< code >< a href = "IScroll.html" title = "interface in noppes.npcs.api.gui" > IScroll</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addScroll(int,int,int,int,int,java.lang.String%5B%5D)" > addScroll</ a ></ span > ​ (int id,
int x,
int y,
int width,
int height,
java.lang.String[] list)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a scroll component to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i11" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "ITextField.html" title = "interface in noppes.npcs.api.gui" > ITextField</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addTextField(int,int,int,int,int)" > addTextField</ a ></ span > ​ (int id,
int x,
int y,
int width,
int height)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a text field component to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i12" class = "altColor" >
< td class = "colFirst" >< code >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addTexturedButton(int,java.lang.String,int,int,int,int,java.lang.String)" > addTexturedButton</ a ></ span > ​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height,
java.lang.String texture)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a textured button to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i13" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addTexturedButton(int,java.lang.String,int,int,int,int,java.lang.String,int,int)" > addTexturedButton</ a ></ span > ​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height,
java.lang.String texture,
int textureX,
int textureY)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a textured button with texture offset.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i14" class = "altColor" >
< td class = "colFirst" >< code >< a href = "ITexturedRect.html" title = "interface in noppes.npcs.api.gui" > ITexturedRect</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addTexturedRect(int,java.lang.String,int,int,int,int)" > addTexturedRect</ a ></ span > ​ (int id,
java.lang.String texture,
int x,
int y,
int width,
int height)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a textured rectangle component to the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i15" class = "rowColor" >
< td class = "colFirst" >< code >< a href = "ITexturedRect.html" title = "interface in noppes.npcs.api.gui" > ITexturedRect</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#addTexturedRect(int,java.lang.String,int,int,int,int,int,int)" > addTexturedRect</ a ></ span > ​ (int id,
java.lang.String texture,
int x,
int y,
int width,
int height,
int textureX,
int textureY)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Adds a textured rectangle component with texture offset.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i16" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#clear()" > clear</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Clears all components from the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i17" class = "rowColor" >
< td class = "colFirst" >< code > boolean</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#doesPauseGame()" > doesPauseGame</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Checks if the GUI pauses the game.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i18" class = "altColor" >
< td class = "colFirst" >< code >< a href = "ICustomGui.html" title = "interface in noppes.npcs.api.gui" > ICustomGui</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#fromNBT(net.minecraft.nbt.NBTTagCompound)" > fromNBT</ a ></ span > ​ (net.minecraft.nbt.NBTTagCompound tag)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Recreates the GUI from NBT data.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ 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 = "#getBackgroundTexture()" > getBackgroundTexture</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns the background texture resource location.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i20" class = "altColor" >
< td class = "colFirst" >< code >< a href = "ICustomGuiComponent.html" title = "interface in noppes.npcs.api.gui" > ICustomGuiComponent</ a ></ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getComponent(int)" > getComponent</ a ></ span > ​ (int id)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Retrieves the GUI component with the given ID.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i21" class = "rowColor" >
< td class = "colFirst" >< code > java.util.List< < a href = "ICustomGuiComponent.html" title = "interface in noppes.npcs.api.gui" > ICustomGuiComponent</ a > > </ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getComponents()" > getComponents</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns a list of all components contained in this GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i22" class = "altColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getHeight()" > getHeight</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns the height of the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i23" class = "rowColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getID()" > getID</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns the unique ID of the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i24" class = "altColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getPlayerInvX()" > getPlayerInvX</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i25" class = "rowColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getPlayerInvY()" > getPlayerInvY</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i26" class = "altColor" >
< td class = "colFirst" >< code > boolean</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getShowPlayerInv()" > getShowPlayerInv</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i27" class = "rowColor" >
< td class = "colFirst" >< code > java.util.List< < a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a > > </ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getSlots()" > getSlots</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns a list of item slot components in this GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i28" class = "altColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getWidth()" > getWidth</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns the width of the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i29" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#removeComponent(int)" > removeComponent</ a ></ span > ​ (int id)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Removes the GUI component with the specified ID.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i30" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setBackgroundTexture(java.lang.String)" > setBackgroundTexture</ a ></ span > ​ (java.lang.String resourceLocation)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the background texture resource location for the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i31" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setDoesPauseGame(boolean)" > setDoesPauseGame</ a ></ span > ​ (boolean pauseGame)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Specifies whether the GUI pauses the game.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i32" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setSize(int,int)" > setSize</ a ></ span > ​ (int width,
int height)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the size of the GUI.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i33" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#showPlayerInventory(int,int)" > showPlayerInventory</ a ></ span > ​ (int x,
int y)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Displays the player's inventory at the specified position.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i34" class = "altColor" >
< td class = "colFirst" >< code > net.minecraft.nbt.NBTTagCompound</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#toNBT()" > toNBT</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Serializes the GUI to an NBT tag.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i35" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#update(noppes.npcs.api.entity.IPlayer)" > update</ a ></ span > ​ (< a href = "../entity/IPlayer.html" title = "interface in noppes.npcs.api.entity" > IPlayer</ a > player)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sends an update of the GUI to the given player.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i36" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#updateComponent(noppes.npcs.api.gui.ICustomGuiComponent)" > updateComponent</ a ></ span > ​ (< a href = "ICustomGuiComponent.html" title = "interface in noppes.npcs.api.gui" > ICustomGuiComponent</ a > component)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Updates the specified GUI component.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ 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 = "getID()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getID</ h4 >
< pre class = "methodSignature" > int getID()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns the unique ID of the GUI.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the GUI ID.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getWidth()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getWidth</ h4 >
< pre class = "methodSignature" > int getWidth()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns the width of the GUI.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the width in pixels.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getHeight()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getHeight</ h4 >
< pre class = "methodSignature" > int getHeight()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns the height of the GUI.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the height in pixels.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getComponents()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getComponents</ h4 >
< pre class = "methodSignature" > java.util.List< < a href = "ICustomGuiComponent.html" title = "interface in noppes.npcs.api.gui" > ICustomGuiComponent</ a > > getComponents()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns a list of all components contained in this GUI.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the list of components.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "clear()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > clear</ h4 >
< pre class = "methodSignature" > void clear()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Clears all components from the GUI.</ div >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getSlots()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getSlots</ h4 >
< pre class = "methodSignature" > java.util.List< < a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a > > getSlots()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns a list of item slot components in this GUI.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the list of item slots.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "setSize(int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setSize</ h4 >
< pre class = "methodSignature" > void setSize​ (int width,
int height)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the size of the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > width</ code > - the new width.</ dd >
< dd >< code > height</ code > - the new height.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "setDoesPauseGame(boolean)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setDoesPauseGame</ h4 >
< pre class = "methodSignature" > void setDoesPauseGame​ (boolean pauseGame)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Specifies whether the GUI pauses the game.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > pauseGame</ code > - true to pause the game.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "doesPauseGame()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > doesPauseGame</ h4 >
< pre class = "methodSignature" > boolean doesPauseGame()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Checks if the GUI pauses the game.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > true if it pauses the game; false otherwise.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "setBackgroundTexture(java.lang.String)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setBackgroundTexture</ h4 >
< pre class = "methodSignature" > void setBackgroundTexture​ (java.lang.String resourceLocation)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the background texture resource location for the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > resourceLocation</ code > - the texture resource location.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getBackgroundTexture()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getBackgroundTexture</ h4 >
< pre class = "methodSignature" > java.lang.String getBackgroundTexture()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns the background texture resource location.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the texture as a string.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addButton(int,java.lang.String,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addButton</ h4 >
< pre class = "methodSignature" >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a > addButton​ (int id,
java.lang.String text,
int x,
int y)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a button to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > text</ code > - the button label.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created button.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addButton(int,java.lang.String,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addButton</ h4 >
< pre class = "methodSignature" >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a > addButton​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a button to the GUI with a specified size.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > text</ code > - the button label.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the button width.</ dd >
< dd >< code > height</ code > - the button height.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created button.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addTexturedButton(int,java.lang.String,int,int,int,int,java.lang.String)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addTexturedButton</ h4 >
< pre class = "methodSignature" >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a > addTexturedButton​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height,
java.lang.String texture)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a textured button to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > text</ code > - the button label.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the button width.</ dd >
< dd >< code > height</ code > - the button height.</ dd >
< dd >< code > texture</ code > - the texture resource location.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created button.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addTexturedButton(int,java.lang.String,int,int,int,int,java.lang.String,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addTexturedButton</ h4 >
< pre class = "methodSignature" >< a href = "IButton.html" title = "interface in noppes.npcs.api.gui" > IButton</ a > addTexturedButton​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height,
java.lang.String texture,
int textureX,
int textureY)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a textured button with texture offset.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > text</ code > - the button label.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the button width.</ dd >
< dd >< code > height</ code > - the button height.</ dd >
< dd >< code > texture</ code > - the texture resource location.</ dd >
< dd >< code > textureX</ code > - the x offset in the texture.</ dd >
< dd >< code > textureY</ code > - the y offset in the texture.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created button.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addLabel(int,java.lang.String,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addLabel</ h4 >
< pre class = "methodSignature" >< a href = "ILabel.html" title = "interface in noppes.npcs.api.gui" > ILabel</ a > addLabel​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a label component to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > text</ code > - the label text.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the width.</ dd >
< dd >< code > height</ code > - the height.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created label.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addLabel(int,java.lang.String,int,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addLabel</ h4 >
< pre class = "methodSignature" >< a href = "ILabel.html" title = "interface in noppes.npcs.api.gui" > ILabel</ a > addLabel​ (int id,
java.lang.String text,
int x,
int y,
int width,
int height,
int color)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a label component with a specified text color.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > text</ code > - the label text.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the width.</ dd >
< dd >< code > height</ code > - the height.</ dd >
< dd >< code > color</ code > - the text color.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created label.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addTextField(int,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addTextField</ h4 >
< pre class = "methodSignature" >< a href = "ITextField.html" title = "interface in noppes.npcs.api.gui" > ITextField</ a > addTextField​ (int id,
int x,
int y,
int width,
int height)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a text field component to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the width.</ dd >
< dd >< code > height</ code > - the height.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created text field.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addTexturedRect(int,java.lang.String,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addTexturedRect</ h4 >
< pre class = "methodSignature" >< a href = "ITexturedRect.html" title = "interface in noppes.npcs.api.gui" > ITexturedRect</ a > addTexturedRect​ (int id,
java.lang.String texture,
int x,
int y,
int width,
int height)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a textured rectangle component to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > texture</ code > - the texture resource location.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the width.</ dd >
< dd >< code > height</ code > - the height.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created textured rectangle.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addTexturedRect(int,java.lang.String,int,int,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addTexturedRect</ h4 >
< pre class = "methodSignature" >< a href = "ITexturedRect.html" title = "interface in noppes.npcs.api.gui" > ITexturedRect</ a > addTexturedRect​ (int id,
java.lang.String texture,
int x,
int y,
int width,
int height,
int textureX,
int textureY)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds a textured rectangle component with texture offset.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > texture</ code > - the texture resource location.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the width.</ dd >
< dd >< code > height</ code > - the height.</ dd >
< dd >< code > textureX</ code > - the x offset within the texture.</ dd >
< dd >< code > textureY</ code > - the y offset within the texture.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created textured rectangle.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addItemSlot(int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addItemSlot</ h4 >
< pre class = "methodSignature" >< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a > addItemSlot​ (int id,
int x,
int y)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds an item slot component to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created item slot.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addItemSlot(int,int,int,noppes.npcs.api.item.IItemStack)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addItemSlot</ h4 >
< pre class = "methodSignature" >< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a > addItemSlot​ (int id,
int x,
int y,
< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > itemStack)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Adds an item slot component with an initial item stack.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > itemStack</ code > - the initial item.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created item slot.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addItemSlot(int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addItemSlot</ h4 >
< pre class = "methodSignature" > @Deprecated
< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a > addItemSlot​ (int x,
int y)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "deprecationBlock" >< span class = "deprecatedLabel" > Deprecated.</ span >
< div class = "deprecationComment" > Use addItemSlot(int, int, IItemStack) with an ID instead.</ div >
</ div >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "addItemSlot(int,int,noppes.npcs.api.item.IItemStack)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addItemSlot</ h4 >
< pre class = "methodSignature" > @Deprecated
< a href = "IItemSlot.html" title = "interface in noppes.npcs.api.gui" > IItemSlot</ a > addItemSlot​ (int x,
int y,
< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > itemStack)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "deprecationBlock" >< span class = "deprecatedLabel" > Deprecated.</ span >
< div class = "deprecationComment" > Use addItemSlot(int, int, IItemStack) with an ID instead.</ div >
</ div >
</ li >
</ ul >
< a id = "addScroll(int,int,int,int,int,java.lang.String[])" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addScroll</ h4 >
< pre class = "methodSignature" >< a href = "IScroll.html" title = "interface in noppes.npcs.api.gui" > IScroll</ a > addScroll​ (int id,
int x,
int y,
int width,
int height,
java.lang.String[] list)</ pre >
< div class = "block" > Adds a scroll component to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
< dd >< code > width</ code > - the width.</ dd >
< dd >< code > height</ code > - the height.</ dd >
< dd >< code > list</ code > - the list of strings to display.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created scroll component.</ dd >
</ dl >
</ li >
</ ul >
< a id = "addLine(int,int,int,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addLine</ h4 >
< pre class = "methodSignature" >< a href = "ILine.html" title = "interface in noppes.npcs.api.gui" > ILine</ a > addLine​ (int id,
int x1,
int y1,
int x2,
int y2,
int color,
int thickness)</ pre >
< div class = "block" > Adds a line component to the GUI.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > x1</ code > - the start x position.</ dd >
< dd >< code > y1</ code > - the start y position.</ dd >
< dd >< code > x2</ code > - the end x position.</ dd >
< dd >< code > y2</ code > - the end y position.</ dd >
< dd >< code > color</ code > - the line color.</ dd >
< dd >< code > thickness</ code > - the line thickness.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created line component.</ dd >
</ dl >
</ li >
</ ul >
< a id = "addLine(int,int,int,int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > addLine</ h4 >
< pre class = "methodSignature" >< a href = "ILine.html" title = "interface in noppes.npcs.api.gui" > ILine</ a > addLine​ (int id,
int x1,
int y1,
int x2,
int y2)</ pre >
< div class = "block" > Adds a line component with default thickness.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dd >< code > x1</ code > - the start x position.</ dd >
< dd >< code > y1</ code > - the start y position.</ dd >
< dd >< code > x2</ code > - the end x position.</ dd >
< dd >< code > y2</ code > - the end y position.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the created line component.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "showPlayerInventory(int,int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > showPlayerInventory</ h4 >
< pre class = "methodSignature" > void showPlayerInventory​ (int x,
int y)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Displays the player's inventory at the specified position.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > x</ code > - the x position.</ dd >
< dd >< code > y</ code > - the y position.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getComponent(int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getComponent</ h4 >
< pre class = "methodSignature" >< a href = "ICustomGuiComponent.html" title = "interface in noppes.npcs.api.gui" > ICustomGuiComponent</ a > getComponent​ (int id)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Retrieves the GUI component with the given ID.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the component.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "removeComponent(int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > removeComponent</ h4 >
< pre class = "methodSignature" > void removeComponent​ (int id)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Removes the GUI component with the specified ID.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > id</ code > - the component ID.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "updateComponent(noppes.npcs.api.gui.ICustomGuiComponent)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > updateComponent</ h4 >
< pre class = "methodSignature" > void updateComponent​ (< a href = "ICustomGuiComponent.html" title = "interface in noppes.npcs.api.gui" > ICustomGuiComponent</ a > component)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Updates the specified GUI component.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > component</ code > - the component to update.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "update(noppes.npcs.api.entity.IPlayer)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > update</ h4 >
< pre class = "methodSignature" > void update​ (< a href = "../entity/IPlayer.html" title = "interface in noppes.npcs.api.entity" > IPlayer</ a > player)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sends an update of the GUI to the given player.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > player</ code > - the player to update.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getShowPlayerInv()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getShowPlayerInv</ h4 >
< pre class = "methodSignature" > boolean getShowPlayerInv()</ pre >
2025-05-29 16:27:42 -04:00
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > true if the player inventory is shown.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getPlayerInvX()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getPlayerInvX</ h4 >
< pre class = "methodSignature" > int getPlayerInvX()</ pre >
2025-05-29 16:27:42 -04:00
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the x position where the player inventory is displayed.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getPlayerInvY()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getPlayerInvY</ h4 >
< pre class = "methodSignature" > int getPlayerInvY()</ pre >
2025-05-29 16:27:42 -04:00
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the y position where the player inventory is displayed.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "fromNBT(net.minecraft.nbt.NBTTagCompound)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > fromNBT</ h4 >
< pre class = "methodSignature" >< a href = "ICustomGui.html" title = "interface in noppes.npcs.api.gui" > ICustomGui</ a > fromNBT​ (net.minecraft.nbt.NBTTagCompound tag)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Recreates the GUI from NBT data.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > tag</ code > - the NBT tag.</ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > this GUI.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "toNBT()" >
<!-- -->
</ a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > toNBT</ h4 >
< pre class = "methodSignature" > net.minecraft.nbt.NBTTagCompound toNBT()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Serializes the GUI to an NBT tag.</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the NBT data.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ 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 >