mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 01:45:08 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -2,19 +2,46 @@ package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.entity.IEntityLivingBase;
|
||||
|
||||
/**
|
||||
* Represents a single NPC dialog line with text, an optional sound, and target formatting.
|
||||
*/
|
||||
public interface ILine {
|
||||
|
||||
/**
|
||||
* Returns a copy of this line with target-specific placeholders resolved.
|
||||
*
|
||||
* @param entityLivingBase the target entity used for placeholder substitution.
|
||||
* @return the formatted line.
|
||||
*/
|
||||
ILine formatTarget(IEntityLivingBase entityLivingBase);
|
||||
|
||||
/** @return the text content of this line. */
|
||||
String getText();
|
||||
|
||||
/**
|
||||
* Sets the text content of this line.
|
||||
*
|
||||
* @param text the new text.
|
||||
*/
|
||||
void setText(String text);
|
||||
|
||||
/** @return the sound resource to play with this line, or null if none. */
|
||||
String getSound();
|
||||
|
||||
/**
|
||||
* Sets the sound resource to play with this line.
|
||||
*
|
||||
* @param sound the sound resource path, or null for none.
|
||||
*/
|
||||
void setSound(String sound);
|
||||
|
||||
/**
|
||||
* Sets whether the text of this line should be hidden when spoken.
|
||||
*
|
||||
* @param hide true to hide the text; false to show.
|
||||
*/
|
||||
void hideText(boolean hide);
|
||||
|
||||
/** @return true if the text is hidden when this line is spoken. */
|
||||
boolean hideText();
|
||||
}
|
||||
Reference in new issue
Block a user