本文整理了Java中net.minecraft.world.World.isAnyPlayerWithinRangeAt()
方法的一些代码示例,展示了World.isAnyPlayerWithinRangeAt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.isAnyPlayerWithinRangeAt()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:isAnyPlayerWithinRangeAt
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public boolean isAnyPlayerWithinRangeAt(double x, double y, double z, double range) {
return wrapped.isAnyPlayerWithinRangeAt(x, y, z, range);
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public boolean isAnyPlayerWithinRangeAt(double x, double y, double z, double range) {
return getActualWorld().isAnyPlayerWithinRangeAt(x, y, z, range);
}
代码示例来源:origin: TeamLapen/Vampirism
public boolean isActivated() {
if (entityName == null) return false;
BlockPos blockpos = this.getSpawnerPosition();
return this.getSpawnerWorld().isAnyPlayerWithinRangeAt((double) blockpos.getX() + 0.5D, (double) blockpos.getY() + 0.5D, (double) blockpos.getZ() + 0.5D, (double) this.activateRange);
}
内容来源于网络,如有侵权,请联系作者删除!