Java 类net.minecraft.entity.monster.EntityElderGuardian 实例源码

项目:Backmemed    文件:StructureOceanMonumentPieces.java   
protected boolean spawnElder(World worldIn, StructureBoundingBox p_175817_2_, int p_175817_3_, int p_175817_4_, int p_175817_5_)
{
    int i = this.getXWithOffset(p_175817_3_, p_175817_5_);
    int j = this.getYWithOffset(p_175817_4_);
    int k = this.getZWithOffset(p_175817_3_, p_175817_5_);

    if (p_175817_2_.isVecInside(new BlockPos(i, j, k)))
    {
        EntityElderGuardian entityelderguardian = new EntityElderGuardian(worldIn);
        entityelderguardian.heal(entityelderguardian.getMaxHealth());
        entityelderguardian.setLocationAndAngles((double)i + 0.5D, (double)j, (double)k + 0.5D, 0.0F, 0.0F);
        entityelderguardian.onInitialSpawn(worldIn.getDifficultyForLocation(new BlockPos(entityelderguardian)), (IEntityLivingData)null);
        worldIn.spawnEntityInWorld(entityelderguardian);
        return true;
    }
    else
    {
        return false;
    }
}
项目:Backmemed    文件:ParticleMobAppearance.java   
public void onUpdate()
{
    super.onUpdate();

    if (this.entity == null)
    {
        EntityElderGuardian entityelderguardian = new EntityElderGuardian(this.worldObj);
        entityelderguardian.func_190767_di();
        this.entity = entityelderguardian;
    }
}
项目:EnderIO    文件:CapturedMob.java   
public static boolean isBlacklisted(@Nonnull Entity entity) {
  ResourceLocation entityId = EntityList.getKey(entity);
  if (entityId == null || (!Config.soulVesselCapturesBosses && !entity.isNonBoss())
      || (!Config.soulVesselCapturesBosses && entity instanceof EntityElderGuardian)) {
    return true;
  }
  return Config.soulVesselBlackList.contains(entityId) || blacklist.contains(entityId);
}