Class CustomEntityUtils

java.lang.Object
cn.lanink.gamecore.utils.CustomEntityUtils

@Deprecated @DeprecationDetails(since="At the beginning", reason="PNX\u8bf7\u4f7f\u7528\u6838\u5fc3\u81ea\u5e26\u7684\u81ea\u5b9a\u4e49\u5b9e\u4f53\u529f\u80fd\uff01") public class CustomEntityUtils extends Object
Deprecated.
Author:
LT_Name
  • Constructor Details

    • CustomEntityUtils

      private CustomEntityUtils()
      Deprecated.
  • Method Details

    • hasCustomEntity

      public static boolean hasCustomEntity(String name)
      Deprecated.
      是否已注册此实体标识符的自定义实体
      Parameters:
      name - 实体标识符
      Returns:
      是否已注册
    • getRuntimeId

      public static int getRuntimeId(String identifier)
      Deprecated.
      根据实体标识符获取RuntimeId(NetworkID)
      Parameters:
      identifier - 实体标识符
      Returns:
      RuntimeId
    • registerCustomEntity

      public static void registerCustomEntity(String identifier)
      Deprecated.
      注册自定义实体标识符
      Parameters:
      identifier - 实体标识符