public final class EntityHelper
extends Object
- Author:
- ybw0014
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EntityHelper
public EntityHelper()
-
Method Details
-
getDisplayName
@Nonnull
public static String getDisplayName(@Nonnull
Entity entity)
- Parameters:
entity - Entity 实体
- Returns:
- 实体的显示名称
-
getName
@Nonnull
public static String getName(@Nonnull
Entity entity)
- Parameters:
entity - Entity 实体
- Returns:
- 实体的中文名称, 如果获取失败则返回键名