net.minecraft.entity.Entity.isImmuneToExplosions()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中net.minecraft.entity.Entity.isImmuneToExplosions()方法的一些代码示例,展示了Entity.isImmuneToExplosions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.isImmuneToExplosions()方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称:Entity
方法名:isImmuneToExplosions

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;

相关文章

Entity类方法