本文整理了Java中org.bukkit.entity.Entity.playEffect()
方法的一些代码示例,展示了Entity.playEffect()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.playEffect()
方法的具体详情如下:
包路径:org.bukkit.entity.Entity
类名称:Entity
方法名:playEffect
[英]Performs the specified EntityEffect for this entity.
This will be viewable to all players near the entity.
[中]为此实体执行指定的EntityEffect。
这将对实体附近的所有玩家可见。
代码示例来源:origin: bergerkiller/BKCommonLib
@Override
public void playEffect(EntityEffect arg0) {
base.playEffect(arg0);
}
代码示例来源:origin: bergerkiller/BKCommonLib
public void playEffect(EntityEffect arg0) {
entity.playEffect(arg0);
}
代码示例来源:origin: EngineHub/CommandHelper
@Override
public void playEffect(MCEntityEffect type) {
e.playEffect(EntityEffect.valueOf(type.name()));
}
代码示例来源:origin: Slikey/EffectLib
@Override
public void onRun() {
// Location to spawn the blood-item.
Location location = getLocation();
location.add(0, RandomUtils.random.nextFloat() * height, 0);
location.getWorld().playEffect(location, Effect.STEP_SOUND, color);
Entity entity = getEntity();
if (hurt && entity != null) {
entity.playEffect(org.bukkit.EntityEffect.HURT);
}
}
}
代码示例来源:origin: elBukkit/MagicPlugin
sourceEntity.playEffect(entityEffect);
内容来源于网络,如有侵权,请联系作者删除!