mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 20:49:05 +00:00
Added setVisibleTo(player,visible) and isVisibleTo(player) to ScriptNpc
This commit is contained in:
1 parent
8a7f40189e
commit
d24422c3a1
5 files changed
+78
-5
No files matched your search
@@ -225,6 +225,22 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
*/
|
||||
public int getVisibleType();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param player The player this NPC becomes visible/invisible to
|
||||
* @param visible True if you want the NPC to be invisible to the player, false otherwise
|
||||
*/
|
||||
public void setVisibleTo(ScriptPlayer player, boolean visible);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param player The player this NPC is visible/invisible to
|
||||
* @return False if the NPC has been toggled to be invisible to this player, true otherwise.
|
||||
* If setVisibleTo(player,visible) was not called to make this NPC invisible to the player at any point
|
||||
* in the NPC's life, this function will return true regardless of the value of isVisible().
|
||||
*/
|
||||
public boolean isVisibleTo(ScriptPlayer player);
|
||||
|
||||
/**
|
||||
* @param type The visibility type of the name, 0:visible, 1:invisible, 2:when-attacking
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user