Class UtilKt
-
- All Implemented Interfaces:
public final class UtilKt
-
-
Method Summary
Modifier and Type Method Description final static UnitaddFlag(Entity $self, String key, Long durationTick)添加标记 final static Set<Entity>getEntities(String flag)获取拥有某个标记的所有实体 final static UnitremoveFlag(Entity $self, String key)删除实体上的某个标记 final static EntityTargettoTarget(Entity $self)转为目标 final static LocTargettoTarget(Location $self)转为目标 final static LocTargettoTarget(Location $self)转为目标 -
-
Method Detail
-
addFlag
final static Unit addFlag(Entity $self, String key, Long durationTick)
添加标记
- Parameters:
key- String 标识符durationTick- Long 持续tick
-
getEntities
final static Set<Entity> getEntities(String flag)
获取拥有某个标记的所有实体
- Parameters:
flag- 标识符- Returns:
结果
-
removeFlag
final static Unit removeFlag(Entity $self, String key)
删除实体上的某个标记
- Parameters:
key- 标识符
-
toTarget
final static EntityTarget toTarget(Entity $self)
转为目标
-
-
-
-