本文整理了Java中net.minecraft.entity.Entity.isImmuneToExplosions()
方法的一些代码示例,展示了Entity.isImmuneToExplosions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.isImmuneToExplosions()
方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称:Entity
方法名:isImmuneToExplosions
暂无
代码示例来源:origin: Darkhax-Minecraft/Bookshelf
public boolean canAffectEntity (Entity entity) {
return !entity.isImmuneToExplosions();
}
代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped
Entity entity = (Entity) list.get(k2);
if (!entity.isImmuneToExplosions()) {
double d12 = entity.getDistance(this.x, this.y, this.z) / f3;
代码示例来源:origin: PrinceOfAmber/Cyclic
for (int k2 = 0; k2 < list.size(); ++k2) {
Entity entity = (Entity) list.get(k2);
if (!entity.isImmuneToExplosions()) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / (double) f3;
if (d12 <= 1.0D) {
代码示例来源:origin: PrinceOfAmber/Cyclic
for (int k2 = 0; k2 < list.size(); ++k2) {
Entity entity = (Entity) list.get(k2);
if (!entity.isImmuneToExplosions()) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / (double) f3;
if (d12 <= 1.0D) {
代码示例来源:origin: ValkyrienWarfare/Valkyrien-Warfare-Revamped
Entity entity = (Entity) list.get(k2);
if (!entity.isImmuneToExplosions()) {
double d12 = entity.getDistance(this.x, this.y, this.z) / f3;
代码示例来源:origin: Alex-the-666/Ice_and_Fire
if (!entity.isImmuneToExplosions()) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / f3;
代码示例来源:origin: Alex-the-666/Ice_and_Fire
if (!entity.isImmuneToExplosions()) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / f3;
代码示例来源:origin: Alex-the-666/Ice_and_Fire
Entity entity = (Entity) list.get(k2);
if (!entity.isImmuneToExplosions() && !entity.isEntityEqual(exploder)) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / (double) f3;
代码示例来源:origin: Alex-the-666/Ice_and_Fire
if (!entity.isImmuneToExplosions() && !entity.isEntityEqual(exploder)) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / f3;
代码示例来源:origin: Alex-the-666/Ice_and_Fire
if (!entity.isImmuneToExplosions() && !entity.isEntityEqual(exploder)) {
double d12 = entity.getDistance(this.explosionX, this.explosionY, this.explosionZ) / f3;
内容来源于网络,如有侵权,请联系作者删除!