Class ItemColor

  • All Implemented Interfaces:

    
    public class ItemColor
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Map<String, ChatColor> colors
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemColor()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Map<String, ChatColor> getColors() 获取物品光效颜色对应Map
      static void initTeam(@NonNull() Player player) 根据玩家当前计分板进行Team初始化.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ItemColor

        ItemColor()
    • Method Detail

      • getColors

        @NonNull() static Map<String, ChatColor> getColors()

        获取物品光效颜色对应Map

      • initTeam

         static void initTeam(@NonNull() Player player)

        根据玩家当前计分板进行Team初始化. 玩家的计分板不一定一成不变, 可能刚进服时玩家是主计分板, 过一段时间其他插件又根据需要切换了玩家的计分板. 需要保证每个计分板内都存在对应的Team, 不然玩家的客户端将认为掉落物所在的Team与玩家无关, 从而导致掉落物只发出白色光效.

        Parameters:
        player - 待操作玩家