Package cc.carm.plugin.userprefix.hooker
Class UserNameTag
- java.lang.Object
-
- cc.carm.plugin.userprefix.hooker.UserNameTag
-
public class UserNameTag extends Object
用户头顶标签。- Author:
- LSeng, Tony, Carm
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_ORDER
-
Constructor Summary
Constructors Constructor Description UserNameTag(Player viewer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setOrder(@org.jetbrains.annotations.Range(from=0L, to=999L) int order)
设置名字在TabList中的顺序void
setOrder(Player target, @org.jetbrains.annotations.Range(from=0L, to=999L) int order)
设置名字在TabList中的顺序void
setPrefix(String prefix)
设置自己的前缀void
setPrefix(Player target, String prefix)
设置某个玩家的前缀void
update(Player target)
-
-
-
Field Detail
-
MAX_ORDER
public static final int MAX_ORDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserNameTag
public UserNameTag(Player viewer)
-
-
Method Detail
-
setPrefix
public void setPrefix(String prefix)
设置自己的前缀- Parameters:
prefix
- 前缀内容
-
setPrefix
public void setPrefix(Player target, String prefix)
设置某个玩家的前缀- Parameters:
target
- 目标prefix
- 前缀内容
-
setOrder
public void setOrder(@org.jetbrains.annotations.Range(from=0L, to=999L) int order)
设置名字在TabList中的顺序- Parameters:
order
- 顺序 (0~999)
-
setOrder
public void setOrder(Player target, @org.jetbrains.annotations.Range(from=0L, to=999L) int order)
设置名字在TabList中的顺序- Parameters:
order
- 顺序
-
update
public void update(Player target)
-
-